mcxa_pac/mrcc0/
mrcc_glb_rst0.rs

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