ra6t2/icu/
wupen0.rs

1#[doc = "Register `WUPEN0` reader"]
2pub struct R(crate::R<WUPEN0_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<WUPEN0_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<WUPEN0_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<WUPEN0_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `WUPEN0` writer"]
17pub struct W(crate::W<WUPEN0_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<WUPEN0_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<WUPEN0_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<WUPEN0_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `IRQWUPEN` reader - IRQn Interrupt Software Standby/Snooze Mode Returns Enable bit (n = 0 to 15)"]
38pub type IRQWUPEN_R = crate::FieldReader<u16, IRQWUPEN_A>;
39#[doc = "IRQn Interrupt Software Standby/Snooze Mode Returns Enable bit (n = 0 to 15)\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u16)]
42pub enum IRQWUPEN_A {
43    #[doc = "0: Software Standby/Snooze Mode returns by IRQn interrupt is disabled"]
44    _0 = 0,
45    #[doc = "1: Software Standby/Snooze Mode returns by IRQn interrupt is enabled"]
46    _1 = 1,
47}
48impl From<IRQWUPEN_A> for u16 {
49    #[inline(always)]
50    fn from(variant: IRQWUPEN_A) -> Self {
51        variant as _
52    }
53}
54impl IRQWUPEN_R {
55    #[doc = "Get enumerated values variant"]
56    #[inline(always)]
57    pub fn variant(&self) -> Option<IRQWUPEN_A> {
58        match self.bits {
59            0 => Some(IRQWUPEN_A::_0),
60            1 => Some(IRQWUPEN_A::_1),
61            _ => None,
62        }
63    }
64    #[doc = "Checks if the value of the field is `_0`"]
65    #[inline(always)]
66    pub fn is_0(&self) -> bool {
67        *self == IRQWUPEN_A::_0
68    }
69    #[doc = "Checks if the value of the field is `_1`"]
70    #[inline(always)]
71    pub fn is_1(&self) -> bool {
72        *self == IRQWUPEN_A::_1
73    }
74}
75#[doc = "Field `IRQWUPEN` writer - IRQn Interrupt Software Standby/Snooze Mode Returns Enable bit (n = 0 to 15)"]
76pub type IRQWUPEN_W<'a, const O: u8> =
77    crate::FieldWriter<'a, u32, WUPEN0_SPEC, u16, IRQWUPEN_A, 16, O>;
78impl<'a, const O: u8> IRQWUPEN_W<'a, O> {
79    #[doc = "Software Standby/Snooze Mode returns by IRQn interrupt is disabled"]
80    #[inline(always)]
81    pub fn _0(self) -> &'a mut W {
82        self.variant(IRQWUPEN_A::_0)
83    }
84    #[doc = "Software Standby/Snooze Mode returns by IRQn interrupt is enabled"]
85    #[inline(always)]
86    pub fn _1(self) -> &'a mut W {
87        self.variant(IRQWUPEN_A::_1)
88    }
89}
90#[doc = "Field `IWDTWUPEN` reader - IWDT Interrupt Software Standby/Snooze Mode Returns Enable bit"]
91pub type IWDTWUPEN_R = crate::BitReader<IWDTWUPEN_A>;
92#[doc = "IWDT Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
93#[derive(Clone, Copy, Debug, PartialEq, Eq)]
94pub enum IWDTWUPEN_A {
95    #[doc = "0: Software Standby/Snooze Mode returns by IWDT interrupt is disabled"]
96    _0 = 0,
97    #[doc = "1: Software Standby/Snooze Mode returns by IWDT interrupt is enabled"]
98    _1 = 1,
99}
100impl From<IWDTWUPEN_A> for bool {
101    #[inline(always)]
102    fn from(variant: IWDTWUPEN_A) -> Self {
103        variant as u8 != 0
104    }
105}
106impl IWDTWUPEN_R {
107    #[doc = "Get enumerated values variant"]
108    #[inline(always)]
109    pub fn variant(&self) -> IWDTWUPEN_A {
110        match self.bits {
111            false => IWDTWUPEN_A::_0,
112            true => IWDTWUPEN_A::_1,
113        }
114    }
115    #[doc = "Checks if the value of the field is `_0`"]
116    #[inline(always)]
117    pub fn is_0(&self) -> bool {
118        *self == IWDTWUPEN_A::_0
119    }
120    #[doc = "Checks if the value of the field is `_1`"]
121    #[inline(always)]
122    pub fn is_1(&self) -> bool {
123        *self == IWDTWUPEN_A::_1
124    }
125}
126#[doc = "Field `IWDTWUPEN` writer - IWDT Interrupt Software Standby/Snooze Mode Returns Enable bit"]
127pub type IWDTWUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, IWDTWUPEN_A, O>;
128impl<'a, const O: u8> IWDTWUPEN_W<'a, O> {
129    #[doc = "Software Standby/Snooze Mode returns by IWDT interrupt is disabled"]
130    #[inline(always)]
131    pub fn _0(self) -> &'a mut W {
132        self.variant(IWDTWUPEN_A::_0)
133    }
134    #[doc = "Software Standby/Snooze Mode returns by IWDT interrupt is enabled"]
135    #[inline(always)]
136    pub fn _1(self) -> &'a mut W {
137        self.variant(IWDTWUPEN_A::_1)
138    }
139}
140#[doc = "Field `KEYWUPEN` reader - Key interrupt S/W standby returns enable bit"]
141pub type KEYWUPEN_R = crate::BitReader<KEYWUPEN_A>;
142#[doc = "Key interrupt S/W standby returns enable bit\n\nValue on reset: 0"]
143#[derive(Clone, Copy, Debug, PartialEq, Eq)]
144pub enum KEYWUPEN_A {
145    #[doc = "0: S/W standby returns by KEY interrupt is disabled"]
146    _0 = 0,
147    #[doc = "1: S/W standby returns by KEY interrupt is enabled"]
148    _1 = 1,
149}
150impl From<KEYWUPEN_A> for bool {
151    #[inline(always)]
152    fn from(variant: KEYWUPEN_A) -> Self {
153        variant as u8 != 0
154    }
155}
156impl KEYWUPEN_R {
157    #[doc = "Get enumerated values variant"]
158    #[inline(always)]
159    pub fn variant(&self) -> KEYWUPEN_A {
160        match self.bits {
161            false => KEYWUPEN_A::_0,
162            true => KEYWUPEN_A::_1,
163        }
164    }
165    #[doc = "Checks if the value of the field is `_0`"]
166    #[inline(always)]
167    pub fn is_0(&self) -> bool {
168        *self == KEYWUPEN_A::_0
169    }
170    #[doc = "Checks if the value of the field is `_1`"]
171    #[inline(always)]
172    pub fn is_1(&self) -> bool {
173        *self == KEYWUPEN_A::_1
174    }
175}
176#[doc = "Field `KEYWUPEN` writer - Key interrupt S/W standby returns enable bit"]
177pub type KEYWUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, KEYWUPEN_A, O>;
178impl<'a, const O: u8> KEYWUPEN_W<'a, O> {
179    #[doc = "S/W standby returns by KEY interrupt is disabled"]
180    #[inline(always)]
181    pub fn _0(self) -> &'a mut W {
182        self.variant(KEYWUPEN_A::_0)
183    }
184    #[doc = "S/W standby returns by KEY interrupt is enabled"]
185    #[inline(always)]
186    pub fn _1(self) -> &'a mut W {
187        self.variant(KEYWUPEN_A::_1)
188    }
189}
190#[doc = "Field `LVD1WUPEN` reader - LVD1 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
191pub type LVD1WUPEN_R = crate::BitReader<LVD1WUPEN_A>;
192#[doc = "LVD1 Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
193#[derive(Clone, Copy, Debug, PartialEq, Eq)]
194pub enum LVD1WUPEN_A {
195    #[doc = "0: Software Standby/Snooze Mode returns by LVD1 interrupt is disabled"]
196    _0 = 0,
197    #[doc = "1: Software Standby/Snooze Mode returns by LVD1 interrupt is enabled"]
198    _1 = 1,
199}
200impl From<LVD1WUPEN_A> for bool {
201    #[inline(always)]
202    fn from(variant: LVD1WUPEN_A) -> Self {
203        variant as u8 != 0
204    }
205}
206impl LVD1WUPEN_R {
207    #[doc = "Get enumerated values variant"]
208    #[inline(always)]
209    pub fn variant(&self) -> LVD1WUPEN_A {
210        match self.bits {
211            false => LVD1WUPEN_A::_0,
212            true => LVD1WUPEN_A::_1,
213        }
214    }
215    #[doc = "Checks if the value of the field is `_0`"]
216    #[inline(always)]
217    pub fn is_0(&self) -> bool {
218        *self == LVD1WUPEN_A::_0
219    }
220    #[doc = "Checks if the value of the field is `_1`"]
221    #[inline(always)]
222    pub fn is_1(&self) -> bool {
223        *self == LVD1WUPEN_A::_1
224    }
225}
226#[doc = "Field `LVD1WUPEN` writer - LVD1 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
227pub type LVD1WUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, LVD1WUPEN_A, O>;
228impl<'a, const O: u8> LVD1WUPEN_W<'a, O> {
229    #[doc = "Software Standby/Snooze Mode returns by LVD1 interrupt is disabled"]
230    #[inline(always)]
231    pub fn _0(self) -> &'a mut W {
232        self.variant(LVD1WUPEN_A::_0)
233    }
234    #[doc = "Software Standby/Snooze Mode returns by LVD1 interrupt is enabled"]
235    #[inline(always)]
236    pub fn _1(self) -> &'a mut W {
237        self.variant(LVD1WUPEN_A::_1)
238    }
239}
240#[doc = "Field `LVD2WUPEN` reader - LVD2 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
241pub type LVD2WUPEN_R = crate::BitReader<LVD2WUPEN_A>;
242#[doc = "LVD2 Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
243#[derive(Clone, Copy, Debug, PartialEq, Eq)]
244pub enum LVD2WUPEN_A {
245    #[doc = "0: Software Standby/Snooze Mode returns by LVD2 interrupt is disabled"]
246    _0 = 0,
247    #[doc = "1: Software Standby/Snooze Mode returns by LVD2 interrupt is enabled"]
248    _1 = 1,
249}
250impl From<LVD2WUPEN_A> for bool {
251    #[inline(always)]
252    fn from(variant: LVD2WUPEN_A) -> Self {
253        variant as u8 != 0
254    }
255}
256impl LVD2WUPEN_R {
257    #[doc = "Get enumerated values variant"]
258    #[inline(always)]
259    pub fn variant(&self) -> LVD2WUPEN_A {
260        match self.bits {
261            false => LVD2WUPEN_A::_0,
262            true => LVD2WUPEN_A::_1,
263        }
264    }
265    #[doc = "Checks if the value of the field is `_0`"]
266    #[inline(always)]
267    pub fn is_0(&self) -> bool {
268        *self == LVD2WUPEN_A::_0
269    }
270    #[doc = "Checks if the value of the field is `_1`"]
271    #[inline(always)]
272    pub fn is_1(&self) -> bool {
273        *self == LVD2WUPEN_A::_1
274    }
275}
276#[doc = "Field `LVD2WUPEN` writer - LVD2 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
277pub type LVD2WUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, LVD2WUPEN_A, O>;
278impl<'a, const O: u8> LVD2WUPEN_W<'a, O> {
279    #[doc = "Software Standby/Snooze Mode returns by LVD2 interrupt is disabled"]
280    #[inline(always)]
281    pub fn _0(self) -> &'a mut W {
282        self.variant(LVD2WUPEN_A::_0)
283    }
284    #[doc = "Software Standby/Snooze Mode returns by LVD2 interrupt is enabled"]
285    #[inline(always)]
286    pub fn _1(self) -> &'a mut W {
287        self.variant(LVD2WUPEN_A::_1)
288    }
289}
290#[doc = "Field `AGT1UDWUPEN` reader - AGT1 Underflow Interrupt Software Standby/Snooze Mode Returns Enable bit"]
291pub type AGT1UDWUPEN_R = crate::BitReader<AGT1UDWUPEN_A>;
292#[doc = "AGT1 Underflow Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
293#[derive(Clone, Copy, Debug, PartialEq, Eq)]
294pub enum AGT1UDWUPEN_A {
295    #[doc = "0: Software Standby/Snooze Mode returns by AGT1 underflow interrupt is disabled"]
296    _0 = 0,
297    #[doc = "1: Software Standby/Snooze Mode returns by AGT1 underflow interrupt is enabled"]
298    _1 = 1,
299}
300impl From<AGT1UDWUPEN_A> for bool {
301    #[inline(always)]
302    fn from(variant: AGT1UDWUPEN_A) -> Self {
303        variant as u8 != 0
304    }
305}
306impl AGT1UDWUPEN_R {
307    #[doc = "Get enumerated values variant"]
308    #[inline(always)]
309    pub fn variant(&self) -> AGT1UDWUPEN_A {
310        match self.bits {
311            false => AGT1UDWUPEN_A::_0,
312            true => AGT1UDWUPEN_A::_1,
313        }
314    }
315    #[doc = "Checks if the value of the field is `_0`"]
316    #[inline(always)]
317    pub fn is_0(&self) -> bool {
318        *self == AGT1UDWUPEN_A::_0
319    }
320    #[doc = "Checks if the value of the field is `_1`"]
321    #[inline(always)]
322    pub fn is_1(&self) -> bool {
323        *self == AGT1UDWUPEN_A::_1
324    }
325}
326#[doc = "Field `AGT1UDWUPEN` writer - AGT1 Underflow Interrupt Software Standby/Snooze Mode Returns Enable bit"]
327pub type AGT1UDWUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, AGT1UDWUPEN_A, O>;
328impl<'a, const O: u8> AGT1UDWUPEN_W<'a, O> {
329    #[doc = "Software Standby/Snooze Mode returns by AGT1 underflow interrupt is disabled"]
330    #[inline(always)]
331    pub fn _0(self) -> &'a mut W {
332        self.variant(AGT1UDWUPEN_A::_0)
333    }
334    #[doc = "Software Standby/Snooze Mode returns by AGT1 underflow interrupt is enabled"]
335    #[inline(always)]
336    pub fn _1(self) -> &'a mut W {
337        self.variant(AGT1UDWUPEN_A::_1)
338    }
339}
340#[doc = "Field `AGT1CAWUPEN` reader - AGT1 Compare Match A Interrupt Software Standby/Snooze Mode Returns Enable bit"]
341pub type AGT1CAWUPEN_R = crate::BitReader<AGT1CAWUPEN_A>;
342#[doc = "AGT1 Compare Match A Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
343#[derive(Clone, Copy, Debug, PartialEq, Eq)]
344pub enum AGT1CAWUPEN_A {
345    #[doc = "0: Software Standby/Snooze Mode returns by AGT1 compare match A interrupt is disabled"]
346    _0 = 0,
347    #[doc = "1: Software Standby/Snooze Mode returns by AGT1 compare match A interrupt is enabled"]
348    _1 = 1,
349}
350impl From<AGT1CAWUPEN_A> for bool {
351    #[inline(always)]
352    fn from(variant: AGT1CAWUPEN_A) -> Self {
353        variant as u8 != 0
354    }
355}
356impl AGT1CAWUPEN_R {
357    #[doc = "Get enumerated values variant"]
358    #[inline(always)]
359    pub fn variant(&self) -> AGT1CAWUPEN_A {
360        match self.bits {
361            false => AGT1CAWUPEN_A::_0,
362            true => AGT1CAWUPEN_A::_1,
363        }
364    }
365    #[doc = "Checks if the value of the field is `_0`"]
366    #[inline(always)]
367    pub fn is_0(&self) -> bool {
368        *self == AGT1CAWUPEN_A::_0
369    }
370    #[doc = "Checks if the value of the field is `_1`"]
371    #[inline(always)]
372    pub fn is_1(&self) -> bool {
373        *self == AGT1CAWUPEN_A::_1
374    }
375}
376#[doc = "Field `AGT1CAWUPEN` writer - AGT1 Compare Match A Interrupt Software Standby/Snooze Mode Returns Enable bit"]
377pub type AGT1CAWUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, AGT1CAWUPEN_A, O>;
378impl<'a, const O: u8> AGT1CAWUPEN_W<'a, O> {
379    #[doc = "Software Standby/Snooze Mode returns by AGT1 compare match A interrupt is disabled"]
380    #[inline(always)]
381    pub fn _0(self) -> &'a mut W {
382        self.variant(AGT1CAWUPEN_A::_0)
383    }
384    #[doc = "Software Standby/Snooze Mode returns by AGT1 compare match A interrupt is enabled"]
385    #[inline(always)]
386    pub fn _1(self) -> &'a mut W {
387        self.variant(AGT1CAWUPEN_A::_1)
388    }
389}
390#[doc = "Field `AGT1CBWUPEN` reader - AGT1 Compare Match B Interrupt Software Standby/Snooze Mode Returns Enable bit"]
391pub type AGT1CBWUPEN_R = crate::BitReader<AGT1CBWUPEN_A>;
392#[doc = "AGT1 Compare Match B Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
393#[derive(Clone, Copy, Debug, PartialEq, Eq)]
394pub enum AGT1CBWUPEN_A {
395    #[doc = "0: Software Standby/Snooze Mode returns by AGT1 compare match B interrupt is disabled"]
396    _0 = 0,
397    #[doc = "1: Software Standby/Snooze Mode returns by AGT1 compare match B interrupt is enabled"]
398    _1 = 1,
399}
400impl From<AGT1CBWUPEN_A> for bool {
401    #[inline(always)]
402    fn from(variant: AGT1CBWUPEN_A) -> Self {
403        variant as u8 != 0
404    }
405}
406impl AGT1CBWUPEN_R {
407    #[doc = "Get enumerated values variant"]
408    #[inline(always)]
409    pub fn variant(&self) -> AGT1CBWUPEN_A {
410        match self.bits {
411            false => AGT1CBWUPEN_A::_0,
412            true => AGT1CBWUPEN_A::_1,
413        }
414    }
415    #[doc = "Checks if the value of the field is `_0`"]
416    #[inline(always)]
417    pub fn is_0(&self) -> bool {
418        *self == AGT1CBWUPEN_A::_0
419    }
420    #[doc = "Checks if the value of the field is `_1`"]
421    #[inline(always)]
422    pub fn is_1(&self) -> bool {
423        *self == AGT1CBWUPEN_A::_1
424    }
425}
426#[doc = "Field `AGT1CBWUPEN` writer - AGT1 Compare Match B Interrupt Software Standby/Snooze Mode Returns Enable bit"]
427pub type AGT1CBWUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, AGT1CBWUPEN_A, O>;
428impl<'a, const O: u8> AGT1CBWUPEN_W<'a, O> {
429    #[doc = "Software Standby/Snooze Mode returns by AGT1 compare match B interrupt is disabled"]
430    #[inline(always)]
431    pub fn _0(self) -> &'a mut W {
432        self.variant(AGT1CBWUPEN_A::_0)
433    }
434    #[doc = "Software Standby/Snooze Mode returns by AGT1 compare match B interrupt is enabled"]
435    #[inline(always)]
436    pub fn _1(self) -> &'a mut W {
437        self.variant(AGT1CBWUPEN_A::_1)
438    }
439}
440#[doc = "Field `IIC0WUPEN` reader - IIC0 Address Match Interrupt Software Standby/Snooze Mode Returns Enable bit"]
441pub type IIC0WUPEN_R = crate::BitReader<IIC0WUPEN_A>;
442#[doc = "IIC0 Address Match Interrupt Software Standby/Snooze Mode Returns Enable bit\n\nValue on reset: 0"]
443#[derive(Clone, Copy, Debug, PartialEq, Eq)]
444pub enum IIC0WUPEN_A {
445    #[doc = "0: Software Standby/Snooze Mode returns by IIC0 address match interrupt is disabled"]
446    _0 = 0,
447    #[doc = "1: Software Standby/Snooze Mode returns by IIC0 address match interrupt is enabled"]
448    _1 = 1,
449}
450impl From<IIC0WUPEN_A> for bool {
451    #[inline(always)]
452    fn from(variant: IIC0WUPEN_A) -> Self {
453        variant as u8 != 0
454    }
455}
456impl IIC0WUPEN_R {
457    #[doc = "Get enumerated values variant"]
458    #[inline(always)]
459    pub fn variant(&self) -> IIC0WUPEN_A {
460        match self.bits {
461            false => IIC0WUPEN_A::_0,
462            true => IIC0WUPEN_A::_1,
463        }
464    }
465    #[doc = "Checks if the value of the field is `_0`"]
466    #[inline(always)]
467    pub fn is_0(&self) -> bool {
468        *self == IIC0WUPEN_A::_0
469    }
470    #[doc = "Checks if the value of the field is `_1`"]
471    #[inline(always)]
472    pub fn is_1(&self) -> bool {
473        *self == IIC0WUPEN_A::_1
474    }
475}
476#[doc = "Field `IIC0WUPEN` writer - IIC0 Address Match Interrupt Software Standby/Snooze Mode Returns Enable bit"]
477pub type IIC0WUPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUPEN0_SPEC, IIC0WUPEN_A, O>;
478impl<'a, const O: u8> IIC0WUPEN_W<'a, O> {
479    #[doc = "Software Standby/Snooze Mode returns by IIC0 address match interrupt is disabled"]
480    #[inline(always)]
481    pub fn _0(self) -> &'a mut W {
482        self.variant(IIC0WUPEN_A::_0)
483    }
484    #[doc = "Software Standby/Snooze Mode returns by IIC0 address match interrupt is enabled"]
485    #[inline(always)]
486    pub fn _1(self) -> &'a mut W {
487        self.variant(IIC0WUPEN_A::_1)
488    }
489}
490impl R {
491    #[doc = "Bits 0:15 - IRQn Interrupt Software Standby/Snooze Mode Returns Enable bit (n = 0 to 15)"]
492    #[inline(always)]
493    pub fn irqwupen(&self) -> IRQWUPEN_R {
494        IRQWUPEN_R::new((self.bits & 0xffff) as u16)
495    }
496    #[doc = "Bit 16 - IWDT Interrupt Software Standby/Snooze Mode Returns Enable bit"]
497    #[inline(always)]
498    pub fn iwdtwupen(&self) -> IWDTWUPEN_R {
499        IWDTWUPEN_R::new(((self.bits >> 16) & 1) != 0)
500    }
501    #[doc = "Bit 17 - Key interrupt S/W standby returns enable bit"]
502    #[inline(always)]
503    pub fn keywupen(&self) -> KEYWUPEN_R {
504        KEYWUPEN_R::new(((self.bits >> 17) & 1) != 0)
505    }
506    #[doc = "Bit 18 - LVD1 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
507    #[inline(always)]
508    pub fn lvd1wupen(&self) -> LVD1WUPEN_R {
509        LVD1WUPEN_R::new(((self.bits >> 18) & 1) != 0)
510    }
511    #[doc = "Bit 19 - LVD2 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
512    #[inline(always)]
513    pub fn lvd2wupen(&self) -> LVD2WUPEN_R {
514        LVD2WUPEN_R::new(((self.bits >> 19) & 1) != 0)
515    }
516    #[doc = "Bit 28 - AGT1 Underflow Interrupt Software Standby/Snooze Mode Returns Enable bit"]
517    #[inline(always)]
518    pub fn agt1udwupen(&self) -> AGT1UDWUPEN_R {
519        AGT1UDWUPEN_R::new(((self.bits >> 28) & 1) != 0)
520    }
521    #[doc = "Bit 29 - AGT1 Compare Match A Interrupt Software Standby/Snooze Mode Returns Enable bit"]
522    #[inline(always)]
523    pub fn agt1cawupen(&self) -> AGT1CAWUPEN_R {
524        AGT1CAWUPEN_R::new(((self.bits >> 29) & 1) != 0)
525    }
526    #[doc = "Bit 30 - AGT1 Compare Match B Interrupt Software Standby/Snooze Mode Returns Enable bit"]
527    #[inline(always)]
528    pub fn agt1cbwupen(&self) -> AGT1CBWUPEN_R {
529        AGT1CBWUPEN_R::new(((self.bits >> 30) & 1) != 0)
530    }
531    #[doc = "Bit 31 - IIC0 Address Match Interrupt Software Standby/Snooze Mode Returns Enable bit"]
532    #[inline(always)]
533    pub fn iic0wupen(&self) -> IIC0WUPEN_R {
534        IIC0WUPEN_R::new(((self.bits >> 31) & 1) != 0)
535    }
536}
537impl W {
538    #[doc = "Bits 0:15 - IRQn Interrupt Software Standby/Snooze Mode Returns Enable bit (n = 0 to 15)"]
539    #[inline(always)]
540    #[must_use]
541    pub fn irqwupen(&mut self) -> IRQWUPEN_W<0> {
542        IRQWUPEN_W::new(self)
543    }
544    #[doc = "Bit 16 - IWDT Interrupt Software Standby/Snooze Mode Returns Enable bit"]
545    #[inline(always)]
546    #[must_use]
547    pub fn iwdtwupen(&mut self) -> IWDTWUPEN_W<16> {
548        IWDTWUPEN_W::new(self)
549    }
550    #[doc = "Bit 17 - Key interrupt S/W standby returns enable bit"]
551    #[inline(always)]
552    #[must_use]
553    pub fn keywupen(&mut self) -> KEYWUPEN_W<17> {
554        KEYWUPEN_W::new(self)
555    }
556    #[doc = "Bit 18 - LVD1 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
557    #[inline(always)]
558    #[must_use]
559    pub fn lvd1wupen(&mut self) -> LVD1WUPEN_W<18> {
560        LVD1WUPEN_W::new(self)
561    }
562    #[doc = "Bit 19 - LVD2 Interrupt Software Standby/Snooze Mode Returns Enable bit"]
563    #[inline(always)]
564    #[must_use]
565    pub fn lvd2wupen(&mut self) -> LVD2WUPEN_W<19> {
566        LVD2WUPEN_W::new(self)
567    }
568    #[doc = "Bit 28 - AGT1 Underflow Interrupt Software Standby/Snooze Mode Returns Enable bit"]
569    #[inline(always)]
570    #[must_use]
571    pub fn agt1udwupen(&mut self) -> AGT1UDWUPEN_W<28> {
572        AGT1UDWUPEN_W::new(self)
573    }
574    #[doc = "Bit 29 - AGT1 Compare Match A Interrupt Software Standby/Snooze Mode Returns Enable bit"]
575    #[inline(always)]
576    #[must_use]
577    pub fn agt1cawupen(&mut self) -> AGT1CAWUPEN_W<29> {
578        AGT1CAWUPEN_W::new(self)
579    }
580    #[doc = "Bit 30 - AGT1 Compare Match B Interrupt Software Standby/Snooze Mode Returns Enable bit"]
581    #[inline(always)]
582    #[must_use]
583    pub fn agt1cbwupen(&mut self) -> AGT1CBWUPEN_W<30> {
584        AGT1CBWUPEN_W::new(self)
585    }
586    #[doc = "Bit 31 - IIC0 Address Match Interrupt Software Standby/Snooze Mode Returns Enable bit"]
587    #[inline(always)]
588    #[must_use]
589    pub fn iic0wupen(&mut self) -> IIC0WUPEN_W<31> {
590        IIC0WUPEN_W::new(self)
591    }
592    #[doc = "Writes raw bits to the register."]
593    #[inline(always)]
594    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
595        self.0.bits(bits);
596        self
597    }
598}
599#[doc = "Wake Up Interrupt Enable Register 0\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 [wupen0](index.html) module"]
600pub struct WUPEN0_SPEC;
601impl crate::RegisterSpec for WUPEN0_SPEC {
602    type Ux = u32;
603}
604#[doc = "`read()` method returns [wupen0::R](R) reader structure"]
605impl crate::Readable for WUPEN0_SPEC {
606    type Reader = R;
607}
608#[doc = "`write(|w| ..)` method takes [wupen0::W](W) writer structure"]
609impl crate::Writable for WUPEN0_SPEC {
610    type Writer = W;
611    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
612    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
613}
614#[doc = "`reset()` method sets WUPEN0 to value 0"]
615impl crate::Resettable for WUPEN0_SPEC {
616    const RESET_VALUE: Self::Ux = 0;
617}