xmc4400/scu_interrupt/
srraw.rs

1#[doc = "Register `SRRAW` reader"]
2pub type R = crate::R<SRRAW_SPEC>;
3#[doc = "WDT pre-warning Interrupt Status Before Masking\n\nValue on reset: 0"]
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub enum PRWARN_A {
6    #[doc = "0: Inactive"]
7    VALUE1 = 0,
8    #[doc = "1: Active"]
9    VALUE2 = 1,
10}
11impl From<PRWARN_A> for bool {
12    #[inline(always)]
13    fn from(variant: PRWARN_A) -> Self {
14        variant as u8 != 0
15    }
16}
17#[doc = "Field `PRWARN` reader - WDT pre-warning Interrupt Status Before Masking"]
18pub type PRWARN_R = crate::BitReader<PRWARN_A>;
19impl PRWARN_R {
20    #[doc = "Get enumerated values variant"]
21    #[inline(always)]
22    pub const fn variant(&self) -> PRWARN_A {
23        match self.bits {
24            false => PRWARN_A::VALUE1,
25            true => PRWARN_A::VALUE2,
26        }
27    }
28    #[doc = "Inactive"]
29    #[inline(always)]
30    pub fn is_value1(&self) -> bool {
31        *self == PRWARN_A::VALUE1
32    }
33    #[doc = "Active"]
34    #[inline(always)]
35    pub fn is_value2(&self) -> bool {
36        *self == PRWARN_A::VALUE2
37    }
38}
39#[doc = "Field `PI` reader - RTC Raw Periodic Interrupt Status Before Masking"]
40pub type PI_R = crate::BitReader;
41#[doc = "Field `AI` reader - RTC Raw Alarm Interrupt Status Before Masking"]
42pub type AI_R = crate::BitReader;
43#[doc = "Field `DLROVR` reader - DLR Request Overrun Interrupt Status Before Masking"]
44pub type DLROVR_R = crate::BitReader;
45#[doc = "LPACLR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
46#[derive(Clone, Copy, Debug, PartialEq, Eq)]
47pub enum LPACCR_A {
48    #[doc = "0: Not updated"]
49    VALUE1 = 0,
50    #[doc = "1: Update completed"]
51    VALUE2 = 1,
52}
53impl From<LPACCR_A> for bool {
54    #[inline(always)]
55    fn from(variant: LPACCR_A) -> Self {
56        variant as u8 != 0
57    }
58}
59#[doc = "Field `LPACCR` reader - LPACLR Mirror Register Update Status Before Masking"]
60pub type LPACCR_R = crate::BitReader<LPACCR_A>;
61impl LPACCR_R {
62    #[doc = "Get enumerated values variant"]
63    #[inline(always)]
64    pub const fn variant(&self) -> LPACCR_A {
65        match self.bits {
66            false => LPACCR_A::VALUE1,
67            true => LPACCR_A::VALUE2,
68        }
69    }
70    #[doc = "Not updated"]
71    #[inline(always)]
72    pub fn is_value1(&self) -> bool {
73        *self == LPACCR_A::VALUE1
74    }
75    #[doc = "Update completed"]
76    #[inline(always)]
77    pub fn is_value2(&self) -> bool {
78        *self == LPACCR_A::VALUE2
79    }
80}
81#[doc = "LPACTH0 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
82#[derive(Clone, Copy, Debug, PartialEq, Eq)]
83pub enum LPACTH0_A {
84    #[doc = "0: Not updated"]
85    VALUE1 = 0,
86    #[doc = "1: Update completed"]
87    VALUE2 = 1,
88}
89impl From<LPACTH0_A> for bool {
90    #[inline(always)]
91    fn from(variant: LPACTH0_A) -> Self {
92        variant as u8 != 0
93    }
94}
95#[doc = "Field `LPACTH0` reader - LPACTH0 Mirror Register Update Status Before Masking"]
96pub type LPACTH0_R = crate::BitReader<LPACTH0_A>;
97impl LPACTH0_R {
98    #[doc = "Get enumerated values variant"]
99    #[inline(always)]
100    pub const fn variant(&self) -> LPACTH0_A {
101        match self.bits {
102            false => LPACTH0_A::VALUE1,
103            true => LPACTH0_A::VALUE2,
104        }
105    }
106    #[doc = "Not updated"]
107    #[inline(always)]
108    pub fn is_value1(&self) -> bool {
109        *self == LPACTH0_A::VALUE1
110    }
111    #[doc = "Update completed"]
112    #[inline(always)]
113    pub fn is_value2(&self) -> bool {
114        *self == LPACTH0_A::VALUE2
115    }
116}
117#[doc = "LPACTH1 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
118#[derive(Clone, Copy, Debug, PartialEq, Eq)]
119pub enum LPACTH1_A {
120    #[doc = "0: Not updated"]
121    VALUE1 = 0,
122    #[doc = "1: Update completed"]
123    VALUE2 = 1,
124}
125impl From<LPACTH1_A> for bool {
126    #[inline(always)]
127    fn from(variant: LPACTH1_A) -> Self {
128        variant as u8 != 0
129    }
130}
131#[doc = "Field `LPACTH1` reader - LPACTH1 Mirror Register Update Status Before Masking"]
132pub type LPACTH1_R = crate::BitReader<LPACTH1_A>;
133impl LPACTH1_R {
134    #[doc = "Get enumerated values variant"]
135    #[inline(always)]
136    pub const fn variant(&self) -> LPACTH1_A {
137        match self.bits {
138            false => LPACTH1_A::VALUE1,
139            true => LPACTH1_A::VALUE2,
140        }
141    }
142    #[doc = "Not updated"]
143    #[inline(always)]
144    pub fn is_value1(&self) -> bool {
145        *self == LPACTH1_A::VALUE1
146    }
147    #[doc = "Update completed"]
148    #[inline(always)]
149    pub fn is_value2(&self) -> bool {
150        *self == LPACTH1_A::VALUE2
151    }
152}
153#[doc = "LPACST Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq, Eq)]
155pub enum LPACST_A {
156    #[doc = "0: Not updated"]
157    VALUE1 = 0,
158    #[doc = "1: Update completed"]
159    VALUE2 = 1,
160}
161impl From<LPACST_A> for bool {
162    #[inline(always)]
163    fn from(variant: LPACST_A) -> Self {
164        variant as u8 != 0
165    }
166}
167#[doc = "Field `LPACST` reader - LPACST Mirror Register Update Status Before Masking"]
168pub type LPACST_R = crate::BitReader<LPACST_A>;
169impl LPACST_R {
170    #[doc = "Get enumerated values variant"]
171    #[inline(always)]
172    pub const fn variant(&self) -> LPACST_A {
173        match self.bits {
174            false => LPACST_A::VALUE1,
175            true => LPACST_A::VALUE2,
176        }
177    }
178    #[doc = "Not updated"]
179    #[inline(always)]
180    pub fn is_value1(&self) -> bool {
181        *self == LPACST_A::VALUE1
182    }
183    #[doc = "Update completed"]
184    #[inline(always)]
185    pub fn is_value2(&self) -> bool {
186        *self == LPACST_A::VALUE2
187    }
188}
189#[doc = "LPACCLR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum LPACCLR_A {
192    #[doc = "0: Not updated"]
193    VALUE1 = 0,
194    #[doc = "1: Update completed"]
195    VALUE2 = 1,
196}
197impl From<LPACCLR_A> for bool {
198    #[inline(always)]
199    fn from(variant: LPACCLR_A) -> Self {
200        variant as u8 != 0
201    }
202}
203#[doc = "Field `LPACCLR` reader - LPACCLR Mirror Register Update Status Before Masking"]
204pub type LPACCLR_R = crate::BitReader<LPACCLR_A>;
205impl LPACCLR_R {
206    #[doc = "Get enumerated values variant"]
207    #[inline(always)]
208    pub const fn variant(&self) -> LPACCLR_A {
209        match self.bits {
210            false => LPACCLR_A::VALUE1,
211            true => LPACCLR_A::VALUE2,
212        }
213    }
214    #[doc = "Not updated"]
215    #[inline(always)]
216    pub fn is_value1(&self) -> bool {
217        *self == LPACCLR_A::VALUE1
218    }
219    #[doc = "Update completed"]
220    #[inline(always)]
221    pub fn is_value2(&self) -> bool {
222        *self == LPACCLR_A::VALUE2
223    }
224}
225#[doc = "LPACSET Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
226#[derive(Clone, Copy, Debug, PartialEq, Eq)]
227pub enum LPACSET_A {
228    #[doc = "0: Not updated"]
229    VALUE1 = 0,
230    #[doc = "1: Update completed"]
231    VALUE2 = 1,
232}
233impl From<LPACSET_A> for bool {
234    #[inline(always)]
235    fn from(variant: LPACSET_A) -> Self {
236        variant as u8 != 0
237    }
238}
239#[doc = "Field `LPACSET` reader - LPACSET Mirror Register Update Status Before Masking"]
240pub type LPACSET_R = crate::BitReader<LPACSET_A>;
241impl LPACSET_R {
242    #[doc = "Get enumerated values variant"]
243    #[inline(always)]
244    pub const fn variant(&self) -> LPACSET_A {
245        match self.bits {
246            false => LPACSET_A::VALUE1,
247            true => LPACSET_A::VALUE2,
248        }
249    }
250    #[doc = "Not updated"]
251    #[inline(always)]
252    pub fn is_value1(&self) -> bool {
253        *self == LPACSET_A::VALUE1
254    }
255    #[doc = "Update completed"]
256    #[inline(always)]
257    pub fn is_value2(&self) -> bool {
258        *self == LPACSET_A::VALUE2
259    }
260}
261#[doc = "HINTST Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
262#[derive(Clone, Copy, Debug, PartialEq, Eq)]
263pub enum HINTST_A {
264    #[doc = "0: Not updated"]
265    VALUE1 = 0,
266    #[doc = "1: Update completed"]
267    VALUE2 = 1,
268}
269impl From<HINTST_A> for bool {
270    #[inline(always)]
271    fn from(variant: HINTST_A) -> Self {
272        variant as u8 != 0
273    }
274}
275#[doc = "Field `HINTST` reader - HINTST Mirror Register Update Status Before Masking"]
276pub type HINTST_R = crate::BitReader<HINTST_A>;
277impl HINTST_R {
278    #[doc = "Get enumerated values variant"]
279    #[inline(always)]
280    pub const fn variant(&self) -> HINTST_A {
281        match self.bits {
282            false => HINTST_A::VALUE1,
283            true => HINTST_A::VALUE2,
284        }
285    }
286    #[doc = "Not updated"]
287    #[inline(always)]
288    pub fn is_value1(&self) -> bool {
289        *self == HINTST_A::VALUE1
290    }
291    #[doc = "Update completed"]
292    #[inline(always)]
293    pub fn is_value2(&self) -> bool {
294        *self == HINTST_A::VALUE2
295    }
296}
297#[doc = "HINTCLR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
298#[derive(Clone, Copy, Debug, PartialEq, Eq)]
299pub enum HINTCLR_A {
300    #[doc = "0: Not updated"]
301    VALUE1 = 0,
302    #[doc = "1: Update completed"]
303    VALUE2 = 1,
304}
305impl From<HINTCLR_A> for bool {
306    #[inline(always)]
307    fn from(variant: HINTCLR_A) -> Self {
308        variant as u8 != 0
309    }
310}
311#[doc = "Field `HINTCLR` reader - HINTCLR Mirror Register Update Status Before Masking"]
312pub type HINTCLR_R = crate::BitReader<HINTCLR_A>;
313impl HINTCLR_R {
314    #[doc = "Get enumerated values variant"]
315    #[inline(always)]
316    pub const fn variant(&self) -> HINTCLR_A {
317        match self.bits {
318            false => HINTCLR_A::VALUE1,
319            true => HINTCLR_A::VALUE2,
320        }
321    }
322    #[doc = "Not updated"]
323    #[inline(always)]
324    pub fn is_value1(&self) -> bool {
325        *self == HINTCLR_A::VALUE1
326    }
327    #[doc = "Update completed"]
328    #[inline(always)]
329    pub fn is_value2(&self) -> bool {
330        *self == HINTCLR_A::VALUE2
331    }
332}
333#[doc = "HINTSET Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
334#[derive(Clone, Copy, Debug, PartialEq, Eq)]
335pub enum HINTSET_A {
336    #[doc = "0: Not updated"]
337    VALUE1 = 0,
338    #[doc = "1: Update completed"]
339    VALUE2 = 1,
340}
341impl From<HINTSET_A> for bool {
342    #[inline(always)]
343    fn from(variant: HINTSET_A) -> Self {
344        variant as u8 != 0
345    }
346}
347#[doc = "Field `HINTSET` reader - HINTSET Mirror Register Update Status Before Masking"]
348pub type HINTSET_R = crate::BitReader<HINTSET_A>;
349impl HINTSET_R {
350    #[doc = "Get enumerated values variant"]
351    #[inline(always)]
352    pub const fn variant(&self) -> HINTSET_A {
353        match self.bits {
354            false => HINTSET_A::VALUE1,
355            true => HINTSET_A::VALUE2,
356        }
357    }
358    #[doc = "Not updated"]
359    #[inline(always)]
360    pub fn is_value1(&self) -> bool {
361        *self == HINTSET_A::VALUE1
362    }
363    #[doc = "Update completed"]
364    #[inline(always)]
365    pub fn is_value2(&self) -> bool {
366        *self == HINTSET_A::VALUE2
367    }
368}
369#[doc = "HDCLR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
370#[derive(Clone, Copy, Debug, PartialEq, Eq)]
371pub enum HDCLR_A {
372    #[doc = "0: Not updated"]
373    VALUE1 = 0,
374    #[doc = "1: Update completed"]
375    VALUE2 = 1,
376}
377impl From<HDCLR_A> for bool {
378    #[inline(always)]
379    fn from(variant: HDCLR_A) -> Self {
380        variant as u8 != 0
381    }
382}
383#[doc = "Field `HDCLR` reader - HDCLR Mirror Register Update Status Before Masking"]
384pub type HDCLR_R = crate::BitReader<HDCLR_A>;
385impl HDCLR_R {
386    #[doc = "Get enumerated values variant"]
387    #[inline(always)]
388    pub const fn variant(&self) -> HDCLR_A {
389        match self.bits {
390            false => HDCLR_A::VALUE1,
391            true => HDCLR_A::VALUE2,
392        }
393    }
394    #[doc = "Not updated"]
395    #[inline(always)]
396    pub fn is_value1(&self) -> bool {
397        *self == HDCLR_A::VALUE1
398    }
399    #[doc = "Update completed"]
400    #[inline(always)]
401    pub fn is_value2(&self) -> bool {
402        *self == HDCLR_A::VALUE2
403    }
404}
405#[doc = "HDSET Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
406#[derive(Clone, Copy, Debug, PartialEq, Eq)]
407pub enum HDSET_A {
408    #[doc = "0: Not updated"]
409    VALUE1 = 0,
410    #[doc = "1: Update completed"]
411    VALUE2 = 1,
412}
413impl From<HDSET_A> for bool {
414    #[inline(always)]
415    fn from(variant: HDSET_A) -> Self {
416        variant as u8 != 0
417    }
418}
419#[doc = "Field `HDSET` reader - HDSET Mirror Register Update Status Before Masking"]
420pub type HDSET_R = crate::BitReader<HDSET_A>;
421impl HDSET_R {
422    #[doc = "Get enumerated values variant"]
423    #[inline(always)]
424    pub const fn variant(&self) -> HDSET_A {
425        match self.bits {
426            false => HDSET_A::VALUE1,
427            true => HDSET_A::VALUE2,
428        }
429    }
430    #[doc = "Not updated"]
431    #[inline(always)]
432    pub fn is_value1(&self) -> bool {
433        *self == HDSET_A::VALUE1
434    }
435    #[doc = "Update completed"]
436    #[inline(always)]
437    pub fn is_value2(&self) -> bool {
438        *self == HDSET_A::VALUE2
439    }
440}
441#[doc = "HDCR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
442#[derive(Clone, Copy, Debug, PartialEq, Eq)]
443pub enum HDCR_A {
444    #[doc = "0: Not updated"]
445    VALUE1 = 0,
446    #[doc = "1: Update completed"]
447    VALUE2 = 1,
448}
449impl From<HDCR_A> for bool {
450    #[inline(always)]
451    fn from(variant: HDCR_A) -> Self {
452        variant as u8 != 0
453    }
454}
455#[doc = "Field `HDCR` reader - HDCR Mirror Register Update Status Before Masking"]
456pub type HDCR_R = crate::BitReader<HDCR_A>;
457impl HDCR_R {
458    #[doc = "Get enumerated values variant"]
459    #[inline(always)]
460    pub const fn variant(&self) -> HDCR_A {
461        match self.bits {
462            false => HDCR_A::VALUE1,
463            true => HDCR_A::VALUE2,
464        }
465    }
466    #[doc = "Not updated"]
467    #[inline(always)]
468    pub fn is_value1(&self) -> bool {
469        *self == HDCR_A::VALUE1
470    }
471    #[doc = "Update completed"]
472    #[inline(always)]
473    pub fn is_value2(&self) -> bool {
474        *self == HDCR_A::VALUE2
475    }
476}
477#[doc = "OSCSICTRL Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
478#[derive(Clone, Copy, Debug, PartialEq, Eq)]
479pub enum OSCSICTRL_A {
480    #[doc = "0: Not updated"]
481    VALUE1 = 0,
482    #[doc = "1: Update completed"]
483    VALUE2 = 1,
484}
485impl From<OSCSICTRL_A> for bool {
486    #[inline(always)]
487    fn from(variant: OSCSICTRL_A) -> Self {
488        variant as u8 != 0
489    }
490}
491#[doc = "Field `OSCSICTRL` reader - OSCSICTRL Mirror Register Update Status Before Masking"]
492pub type OSCSICTRL_R = crate::BitReader<OSCSICTRL_A>;
493impl OSCSICTRL_R {
494    #[doc = "Get enumerated values variant"]
495    #[inline(always)]
496    pub const fn variant(&self) -> OSCSICTRL_A {
497        match self.bits {
498            false => OSCSICTRL_A::VALUE1,
499            true => OSCSICTRL_A::VALUE2,
500        }
501    }
502    #[doc = "Not updated"]
503    #[inline(always)]
504    pub fn is_value1(&self) -> bool {
505        *self == OSCSICTRL_A::VALUE1
506    }
507    #[doc = "Update completed"]
508    #[inline(always)]
509    pub fn is_value2(&self) -> bool {
510        *self == OSCSICTRL_A::VALUE2
511    }
512}
513#[doc = "OSCULCTRL Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
514#[derive(Clone, Copy, Debug, PartialEq, Eq)]
515pub enum OSCULCTRL_A {
516    #[doc = "0: Not updated"]
517    VALUE1 = 0,
518    #[doc = "1: Update completed"]
519    VALUE2 = 1,
520}
521impl From<OSCULCTRL_A> for bool {
522    #[inline(always)]
523    fn from(variant: OSCULCTRL_A) -> Self {
524        variant as u8 != 0
525    }
526}
527#[doc = "Field `OSCULCTRL` reader - OSCULCTRL Mirror Register Update Status Before Masking"]
528pub type OSCULCTRL_R = crate::BitReader<OSCULCTRL_A>;
529impl OSCULCTRL_R {
530    #[doc = "Get enumerated values variant"]
531    #[inline(always)]
532    pub const fn variant(&self) -> OSCULCTRL_A {
533        match self.bits {
534            false => OSCULCTRL_A::VALUE1,
535            true => OSCULCTRL_A::VALUE2,
536        }
537    }
538    #[doc = "Not updated"]
539    #[inline(always)]
540    pub fn is_value1(&self) -> bool {
541        *self == OSCULCTRL_A::VALUE1
542    }
543    #[doc = "Update completed"]
544    #[inline(always)]
545    pub fn is_value2(&self) -> bool {
546        *self == OSCULCTRL_A::VALUE2
547    }
548}
549#[doc = "RTC CTR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
550#[derive(Clone, Copy, Debug, PartialEq, Eq)]
551pub enum RTC_CTR_A {
552    #[doc = "0: Not updated"]
553    VALUE1 = 0,
554    #[doc = "1: Update completed"]
555    VALUE2 = 1,
556}
557impl From<RTC_CTR_A> for bool {
558    #[inline(always)]
559    fn from(variant: RTC_CTR_A) -> Self {
560        variant as u8 != 0
561    }
562}
563#[doc = "Field `RTC_CTR` reader - RTC CTR Mirror Register Update Status Before Masking"]
564pub type RTC_CTR_R = crate::BitReader<RTC_CTR_A>;
565impl RTC_CTR_R {
566    #[doc = "Get enumerated values variant"]
567    #[inline(always)]
568    pub const fn variant(&self) -> RTC_CTR_A {
569        match self.bits {
570            false => RTC_CTR_A::VALUE1,
571            true => RTC_CTR_A::VALUE2,
572        }
573    }
574    #[doc = "Not updated"]
575    #[inline(always)]
576    pub fn is_value1(&self) -> bool {
577        *self == RTC_CTR_A::VALUE1
578    }
579    #[doc = "Update completed"]
580    #[inline(always)]
581    pub fn is_value2(&self) -> bool {
582        *self == RTC_CTR_A::VALUE2
583    }
584}
585#[doc = "RTC ATIM0 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
586#[derive(Clone, Copy, Debug, PartialEq, Eq)]
587pub enum RTC_ATIM0_A {
588    #[doc = "0: Not updated"]
589    VALUE1 = 0,
590    #[doc = "1: Update completed"]
591    VALUE2 = 1,
592}
593impl From<RTC_ATIM0_A> for bool {
594    #[inline(always)]
595    fn from(variant: RTC_ATIM0_A) -> Self {
596        variant as u8 != 0
597    }
598}
599#[doc = "Field `RTC_ATIM0` reader - RTC ATIM0 Mirror Register Update Status Before Masking"]
600pub type RTC_ATIM0_R = crate::BitReader<RTC_ATIM0_A>;
601impl RTC_ATIM0_R {
602    #[doc = "Get enumerated values variant"]
603    #[inline(always)]
604    pub const fn variant(&self) -> RTC_ATIM0_A {
605        match self.bits {
606            false => RTC_ATIM0_A::VALUE1,
607            true => RTC_ATIM0_A::VALUE2,
608        }
609    }
610    #[doc = "Not updated"]
611    #[inline(always)]
612    pub fn is_value1(&self) -> bool {
613        *self == RTC_ATIM0_A::VALUE1
614    }
615    #[doc = "Update completed"]
616    #[inline(always)]
617    pub fn is_value2(&self) -> bool {
618        *self == RTC_ATIM0_A::VALUE2
619    }
620}
621#[doc = "RTC ATIM1 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
622#[derive(Clone, Copy, Debug, PartialEq, Eq)]
623pub enum RTC_ATIM1_A {
624    #[doc = "0: Not updated"]
625    VALUE1 = 0,
626    #[doc = "1: Update completed"]
627    VALUE2 = 1,
628}
629impl From<RTC_ATIM1_A> for bool {
630    #[inline(always)]
631    fn from(variant: RTC_ATIM1_A) -> Self {
632        variant as u8 != 0
633    }
634}
635#[doc = "Field `RTC_ATIM1` reader - RTC ATIM1 Mirror Register Update Status Before Masking"]
636pub type RTC_ATIM1_R = crate::BitReader<RTC_ATIM1_A>;
637impl RTC_ATIM1_R {
638    #[doc = "Get enumerated values variant"]
639    #[inline(always)]
640    pub const fn variant(&self) -> RTC_ATIM1_A {
641        match self.bits {
642            false => RTC_ATIM1_A::VALUE1,
643            true => RTC_ATIM1_A::VALUE2,
644        }
645    }
646    #[doc = "Not updated"]
647    #[inline(always)]
648    pub fn is_value1(&self) -> bool {
649        *self == RTC_ATIM1_A::VALUE1
650    }
651    #[doc = "Update completed"]
652    #[inline(always)]
653    pub fn is_value2(&self) -> bool {
654        *self == RTC_ATIM1_A::VALUE2
655    }
656}
657#[doc = "RTC TIM0 Mirror Register Update Before Masking Status\n\nValue on reset: 0"]
658#[derive(Clone, Copy, Debug, PartialEq, Eq)]
659pub enum RTC_TIM0_A {
660    #[doc = "0: Not updated"]
661    VALUE1 = 0,
662    #[doc = "1: Update completed"]
663    VALUE2 = 1,
664}
665impl From<RTC_TIM0_A> for bool {
666    #[inline(always)]
667    fn from(variant: RTC_TIM0_A) -> Self {
668        variant as u8 != 0
669    }
670}
671#[doc = "Field `RTC_TIM0` reader - RTC TIM0 Mirror Register Update Before Masking Status"]
672pub type RTC_TIM0_R = crate::BitReader<RTC_TIM0_A>;
673impl RTC_TIM0_R {
674    #[doc = "Get enumerated values variant"]
675    #[inline(always)]
676    pub const fn variant(&self) -> RTC_TIM0_A {
677        match self.bits {
678            false => RTC_TIM0_A::VALUE1,
679            true => RTC_TIM0_A::VALUE2,
680        }
681    }
682    #[doc = "Not updated"]
683    #[inline(always)]
684    pub fn is_value1(&self) -> bool {
685        *self == RTC_TIM0_A::VALUE1
686    }
687    #[doc = "Update completed"]
688    #[inline(always)]
689    pub fn is_value2(&self) -> bool {
690        *self == RTC_TIM0_A::VALUE2
691    }
692}
693#[doc = "RTC TIM1 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
694#[derive(Clone, Copy, Debug, PartialEq, Eq)]
695pub enum RTC_TIM1_A {
696    #[doc = "0: Not updated"]
697    VALUE1 = 0,
698    #[doc = "1: Update completed"]
699    VALUE2 = 1,
700}
701impl From<RTC_TIM1_A> for bool {
702    #[inline(always)]
703    fn from(variant: RTC_TIM1_A) -> Self {
704        variant as u8 != 0
705    }
706}
707#[doc = "Field `RTC_TIM1` reader - RTC TIM1 Mirror Register Update Status Before Masking"]
708pub type RTC_TIM1_R = crate::BitReader<RTC_TIM1_A>;
709impl RTC_TIM1_R {
710    #[doc = "Get enumerated values variant"]
711    #[inline(always)]
712    pub const fn variant(&self) -> RTC_TIM1_A {
713        match self.bits {
714            false => RTC_TIM1_A::VALUE1,
715            true => RTC_TIM1_A::VALUE2,
716        }
717    }
718    #[doc = "Not updated"]
719    #[inline(always)]
720    pub fn is_value1(&self) -> bool {
721        *self == RTC_TIM1_A::VALUE1
722    }
723    #[doc = "Update completed"]
724    #[inline(always)]
725    pub fn is_value2(&self) -> bool {
726        *self == RTC_TIM1_A::VALUE2
727    }
728}
729#[doc = "Retention Memory Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
730#[derive(Clone, Copy, Debug, PartialEq, Eq)]
731pub enum RMX_A {
732    #[doc = "0: Not updated"]
733    VALUE1 = 0,
734    #[doc = "1: Update completed"]
735    VALUE2 = 1,
736}
737impl From<RMX_A> for bool {
738    #[inline(always)]
739    fn from(variant: RMX_A) -> Self {
740        variant as u8 != 0
741    }
742}
743#[doc = "Field `RMX` reader - Retention Memory Mirror Register Update Status Before Masking"]
744pub type RMX_R = crate::BitReader<RMX_A>;
745impl RMX_R {
746    #[doc = "Get enumerated values variant"]
747    #[inline(always)]
748    pub const fn variant(&self) -> RMX_A {
749        match self.bits {
750            false => RMX_A::VALUE1,
751            true => RMX_A::VALUE2,
752        }
753    }
754    #[doc = "Not updated"]
755    #[inline(always)]
756    pub fn is_value1(&self) -> bool {
757        *self == RMX_A::VALUE1
758    }
759    #[doc = "Update completed"]
760    #[inline(always)]
761    pub fn is_value2(&self) -> bool {
762        *self == RMX_A::VALUE2
763    }
764}
765impl R {
766    #[doc = "Bit 0 - WDT pre-warning Interrupt Status Before Masking"]
767    #[inline(always)]
768    pub fn prwarn(&self) -> PRWARN_R {
769        PRWARN_R::new((self.bits & 1) != 0)
770    }
771    #[doc = "Bit 1 - RTC Raw Periodic Interrupt Status Before Masking"]
772    #[inline(always)]
773    pub fn pi(&self) -> PI_R {
774        PI_R::new(((self.bits >> 1) & 1) != 0)
775    }
776    #[doc = "Bit 2 - RTC Raw Alarm Interrupt Status Before Masking"]
777    #[inline(always)]
778    pub fn ai(&self) -> AI_R {
779        AI_R::new(((self.bits >> 2) & 1) != 0)
780    }
781    #[doc = "Bit 3 - DLR Request Overrun Interrupt Status Before Masking"]
782    #[inline(always)]
783    pub fn dlrovr(&self) -> DLROVR_R {
784        DLROVR_R::new(((self.bits >> 3) & 1) != 0)
785    }
786    #[doc = "Bit 6 - LPACLR Mirror Register Update Status Before Masking"]
787    #[inline(always)]
788    pub fn lpaccr(&self) -> LPACCR_R {
789        LPACCR_R::new(((self.bits >> 6) & 1) != 0)
790    }
791    #[doc = "Bit 7 - LPACTH0 Mirror Register Update Status Before Masking"]
792    #[inline(always)]
793    pub fn lpacth0(&self) -> LPACTH0_R {
794        LPACTH0_R::new(((self.bits >> 7) & 1) != 0)
795    }
796    #[doc = "Bit 8 - LPACTH1 Mirror Register Update Status Before Masking"]
797    #[inline(always)]
798    pub fn lpacth1(&self) -> LPACTH1_R {
799        LPACTH1_R::new(((self.bits >> 8) & 1) != 0)
800    }
801    #[doc = "Bit 9 - LPACST Mirror Register Update Status Before Masking"]
802    #[inline(always)]
803    pub fn lpacst(&self) -> LPACST_R {
804        LPACST_R::new(((self.bits >> 9) & 1) != 0)
805    }
806    #[doc = "Bit 10 - LPACCLR Mirror Register Update Status Before Masking"]
807    #[inline(always)]
808    pub fn lpacclr(&self) -> LPACCLR_R {
809        LPACCLR_R::new(((self.bits >> 10) & 1) != 0)
810    }
811    #[doc = "Bit 11 - LPACSET Mirror Register Update Status Before Masking"]
812    #[inline(always)]
813    pub fn lpacset(&self) -> LPACSET_R {
814        LPACSET_R::new(((self.bits >> 11) & 1) != 0)
815    }
816    #[doc = "Bit 12 - HINTST Mirror Register Update Status Before Masking"]
817    #[inline(always)]
818    pub fn hintst(&self) -> HINTST_R {
819        HINTST_R::new(((self.bits >> 12) & 1) != 0)
820    }
821    #[doc = "Bit 13 - HINTCLR Mirror Register Update Status Before Masking"]
822    #[inline(always)]
823    pub fn hintclr(&self) -> HINTCLR_R {
824        HINTCLR_R::new(((self.bits >> 13) & 1) != 0)
825    }
826    #[doc = "Bit 14 - HINTSET Mirror Register Update Status Before Masking"]
827    #[inline(always)]
828    pub fn hintset(&self) -> HINTSET_R {
829        HINTSET_R::new(((self.bits >> 14) & 1) != 0)
830    }
831    #[doc = "Bit 17 - HDCLR Mirror Register Update Status Before Masking"]
832    #[inline(always)]
833    pub fn hdclr(&self) -> HDCLR_R {
834        HDCLR_R::new(((self.bits >> 17) & 1) != 0)
835    }
836    #[doc = "Bit 18 - HDSET Mirror Register Update Status Before Masking"]
837    #[inline(always)]
838    pub fn hdset(&self) -> HDSET_R {
839        HDSET_R::new(((self.bits >> 18) & 1) != 0)
840    }
841    #[doc = "Bit 19 - HDCR Mirror Register Update Status Before Masking"]
842    #[inline(always)]
843    pub fn hdcr(&self) -> HDCR_R {
844        HDCR_R::new(((self.bits >> 19) & 1) != 0)
845    }
846    #[doc = "Bit 21 - OSCSICTRL Mirror Register Update Status Before Masking"]
847    #[inline(always)]
848    pub fn oscsictrl(&self) -> OSCSICTRL_R {
849        OSCSICTRL_R::new(((self.bits >> 21) & 1) != 0)
850    }
851    #[doc = "Bit 23 - OSCULCTRL Mirror Register Update Status Before Masking"]
852    #[inline(always)]
853    pub fn osculctrl(&self) -> OSCULCTRL_R {
854        OSCULCTRL_R::new(((self.bits >> 23) & 1) != 0)
855    }
856    #[doc = "Bit 24 - RTC CTR Mirror Register Update Status Before Masking"]
857    #[inline(always)]
858    pub fn rtc_ctr(&self) -> RTC_CTR_R {
859        RTC_CTR_R::new(((self.bits >> 24) & 1) != 0)
860    }
861    #[doc = "Bit 25 - RTC ATIM0 Mirror Register Update Status Before Masking"]
862    #[inline(always)]
863    pub fn rtc_atim0(&self) -> RTC_ATIM0_R {
864        RTC_ATIM0_R::new(((self.bits >> 25) & 1) != 0)
865    }
866    #[doc = "Bit 26 - RTC ATIM1 Mirror Register Update Status Before Masking"]
867    #[inline(always)]
868    pub fn rtc_atim1(&self) -> RTC_ATIM1_R {
869        RTC_ATIM1_R::new(((self.bits >> 26) & 1) != 0)
870    }
871    #[doc = "Bit 27 - RTC TIM0 Mirror Register Update Before Masking Status"]
872    #[inline(always)]
873    pub fn rtc_tim0(&self) -> RTC_TIM0_R {
874        RTC_TIM0_R::new(((self.bits >> 27) & 1) != 0)
875    }
876    #[doc = "Bit 28 - RTC TIM1 Mirror Register Update Status Before Masking"]
877    #[inline(always)]
878    pub fn rtc_tim1(&self) -> RTC_TIM1_R {
879        RTC_TIM1_R::new(((self.bits >> 28) & 1) != 0)
880    }
881    #[doc = "Bit 29 - Retention Memory Mirror Register Update Status Before Masking"]
882    #[inline(always)]
883    pub fn rmx(&self) -> RMX_R {
884        RMX_R::new(((self.bits >> 29) & 1) != 0)
885    }
886}
887#[doc = "SCU Raw Service Request Status\n\nYou can [`read`](crate::Reg::read) this register and get [`srraw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
888pub struct SRRAW_SPEC;
889impl crate::RegisterSpec for SRRAW_SPEC {
890    type Ux = u32;
891}
892#[doc = "`read()` method returns [`srraw::R`](R) reader structure"]
893impl crate::Readable for SRRAW_SPEC {}
894#[doc = "`reset()` method sets SRRAW to value 0"]
895impl crate::Resettable for SRRAW_SPEC {
896    const RESET_VALUE: u32 = 0;
897}