Skip to main content

ra4m3_pac/
mstp.rs

1/*
2DISCLAIMER
3This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
4No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
5applicable laws, including copyright laws.
6THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
7OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
9LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
10INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
11ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
12Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
13of this software. By using this software, you agree to the additional terms and conditions found by accessing the
14following link:
15http://www.renesas.com/disclaimer
16
17*/
18// Generated from SVD 1.40.00, with svd2pac 0.6.1 on Sun, 15 Mar 2026 07:07:45 +0000
19
20#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"Module Stop Control"]
28unsafe impl ::core::marker::Send for super::Mstp {}
29unsafe impl ::core::marker::Sync for super::Mstp {}
30impl super::Mstp {
31    #[allow(unused)]
32    #[inline(always)]
33    pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34        self.ptr
35    }
36
37    #[doc = "Module Stop Control Register A"]
38    #[inline(always)]
39    pub const fn mstpcra(
40        &self,
41    ) -> &'static crate::common::Reg<self::Mstpcra_SPEC, crate::common::RW> {
42        unsafe {
43            crate::common::Reg::<self::Mstpcra_SPEC, crate::common::RW>::from_ptr(
44                self._svd2pac_as_ptr().add(0usize),
45            )
46        }
47    }
48
49    #[doc = "Module Stop Control Register B"]
50    #[inline(always)]
51    pub const fn mstpcrb(
52        &self,
53    ) -> &'static crate::common::Reg<self::Mstpcrb_SPEC, crate::common::RW> {
54        unsafe {
55            crate::common::Reg::<self::Mstpcrb_SPEC, crate::common::RW>::from_ptr(
56                self._svd2pac_as_ptr().add(4usize),
57            )
58        }
59    }
60
61    #[doc = "Module Stop Control Register C"]
62    #[inline(always)]
63    pub const fn mstpcrc(
64        &self,
65    ) -> &'static crate::common::Reg<self::Mstpcrc_SPEC, crate::common::RW> {
66        unsafe {
67            crate::common::Reg::<self::Mstpcrc_SPEC, crate::common::RW>::from_ptr(
68                self._svd2pac_as_ptr().add(8usize),
69            )
70        }
71    }
72
73    #[doc = "Module Stop Control Register D"]
74    #[inline(always)]
75    pub const fn mstpcrd(
76        &self,
77    ) -> &'static crate::common::Reg<self::Mstpcrd_SPEC, crate::common::RW> {
78        unsafe {
79            crate::common::Reg::<self::Mstpcrd_SPEC, crate::common::RW>::from_ptr(
80                self._svd2pac_as_ptr().add(12usize),
81            )
82        }
83    }
84
85    #[doc = "Module Stop Control Register E"]
86    #[inline(always)]
87    pub const fn mstpcre(
88        &self,
89    ) -> &'static crate::common::Reg<self::Mstpcre_SPEC, crate::common::RW> {
90        unsafe {
91            crate::common::Reg::<self::Mstpcre_SPEC, crate::common::RW>::from_ptr(
92                self._svd2pac_as_ptr().add(16usize),
93            )
94        }
95    }
96}
97#[doc(hidden)]
98#[derive(Copy, Clone, Eq, PartialEq)]
99pub struct Mstpcra_SPEC;
100impl crate::sealed::RegSpec for Mstpcra_SPEC {
101    type DataType = u32;
102}
103
104#[doc = "Module Stop Control Register A"]
105pub type Mstpcra = crate::RegValueT<Mstpcra_SPEC>;
106
107impl Mstpcra {
108    #[doc = "SRAM0 Module Stop"]
109    #[inline(always)]
110    pub fn mstpa0(
111        self,
112    ) -> crate::common::RegisterField<
113        0,
114        0x1,
115        1,
116        0,
117        mstpcra::Mstpa0,
118        mstpcra::Mstpa0,
119        Mstpcra_SPEC,
120        crate::common::RW,
121    > {
122        crate::common::RegisterField::<
123            0,
124            0x1,
125            1,
126            0,
127            mstpcra::Mstpa0,
128            mstpcra::Mstpa0,
129            Mstpcra_SPEC,
130            crate::common::RW,
131        >::from_register(self, 0)
132    }
133
134    #[doc = "Standby SRAM Module Stop"]
135    #[inline(always)]
136    pub fn mstpa7(
137        self,
138    ) -> crate::common::RegisterField<
139        7,
140        0x1,
141        1,
142        0,
143        mstpcra::Mstpa7,
144        mstpcra::Mstpa7,
145        Mstpcra_SPEC,
146        crate::common::RW,
147    > {
148        crate::common::RegisterField::<
149            7,
150            0x1,
151            1,
152            0,
153            mstpcra::Mstpa7,
154            mstpcra::Mstpa7,
155            Mstpcra_SPEC,
156            crate::common::RW,
157        >::from_register(self, 0)
158    }
159
160    #[doc = "DMA Controller/Data Transfer Controller Module Stop"]
161    #[inline(always)]
162    pub fn mstpa22(
163        self,
164    ) -> crate::common::RegisterField<
165        22,
166        0x1,
167        1,
168        0,
169        mstpcra::Mstpa22,
170        mstpcra::Mstpa22,
171        Mstpcra_SPEC,
172        crate::common::RW,
173    > {
174        crate::common::RegisterField::<
175            22,
176            0x1,
177            1,
178            0,
179            mstpcra::Mstpa22,
180            mstpcra::Mstpa22,
181            Mstpcra_SPEC,
182            crate::common::RW,
183        >::from_register(self, 0)
184    }
185}
186impl ::core::default::Default for Mstpcra {
187    #[inline(always)]
188    fn default() -> Mstpcra {
189        <crate::RegValueT<Mstpcra_SPEC> as RegisterValue<_>>::new(4290772862)
190    }
191}
192pub mod mstpcra {
193
194    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
195    pub struct Mstpa0_SPEC;
196    pub type Mstpa0 = crate::EnumBitfieldStruct<u8, Mstpa0_SPEC>;
197    impl Mstpa0 {
198        #[doc = "Cancel the module-stop state"]
199        pub const _0: Self = Self::new(0);
200
201        #[doc = "Enter the module-stop state"]
202        pub const _1: Self = Self::new(1);
203    }
204    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
205    pub struct Mstpa7_SPEC;
206    pub type Mstpa7 = crate::EnumBitfieldStruct<u8, Mstpa7_SPEC>;
207    impl Mstpa7 {
208        #[doc = "Cancel the module-stop state"]
209        pub const _0: Self = Self::new(0);
210
211        #[doc = "Enter the module-stop state"]
212        pub const _1: Self = Self::new(1);
213    }
214    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
215    pub struct Mstpa22_SPEC;
216    pub type Mstpa22 = crate::EnumBitfieldStruct<u8, Mstpa22_SPEC>;
217    impl Mstpa22 {
218        #[doc = "Cancel the module-stop state"]
219        pub const _0: Self = Self::new(0);
220
221        #[doc = "Enter the module-stop state"]
222        pub const _1: Self = Self::new(1);
223    }
224}
225#[doc(hidden)]
226#[derive(Copy, Clone, Eq, PartialEq)]
227pub struct Mstpcrb_SPEC;
228impl crate::sealed::RegSpec for Mstpcrb_SPEC {
229    type DataType = u32;
230}
231
232#[doc = "Module Stop Control Register B"]
233pub type Mstpcrb = crate::RegValueT<Mstpcrb_SPEC>;
234
235impl Mstpcrb {
236    #[doc = "Controller Area Network 1 Module Stop"]
237    #[inline(always)]
238    pub fn mstpb1(
239        self,
240    ) -> crate::common::RegisterField<
241        1,
242        0x1,
243        1,
244        0,
245        mstpcrb::Mstpb1,
246        mstpcrb::Mstpb1,
247        Mstpcrb_SPEC,
248        crate::common::RW,
249    > {
250        crate::common::RegisterField::<
251            1,
252            0x1,
253            1,
254            0,
255            mstpcrb::Mstpb1,
256            mstpcrb::Mstpb1,
257            Mstpcrb_SPEC,
258            crate::common::RW,
259        >::from_register(self, 0)
260    }
261
262    #[doc = "Controller Area Network 0 Module Stop"]
263    #[inline(always)]
264    pub fn mstpb2(
265        self,
266    ) -> crate::common::RegisterField<
267        2,
268        0x1,
269        1,
270        0,
271        mstpcrb::Mstpb2,
272        mstpcrb::Mstpb2,
273        Mstpcrb_SPEC,
274        crate::common::RW,
275    > {
276        crate::common::RegisterField::<
277            2,
278            0x1,
279            1,
280            0,
281            mstpcrb::Mstpb2,
282            mstpcrb::Mstpb2,
283            Mstpcrb_SPEC,
284            crate::common::RW,
285        >::from_register(self, 0)
286    }
287
288    #[doc = "Quad Serial Peripheral Interface Module Stop"]
289    #[inline(always)]
290    pub fn mstpb6(
291        self,
292    ) -> crate::common::RegisterField<
293        6,
294        0x1,
295        1,
296        0,
297        mstpcrb::Mstpb6,
298        mstpcrb::Mstpb6,
299        Mstpcrb_SPEC,
300        crate::common::RW,
301    > {
302        crate::common::RegisterField::<
303            6,
304            0x1,
305            1,
306            0,
307            mstpcrb::Mstpb6,
308            mstpcrb::Mstpb6,
309            Mstpcrb_SPEC,
310            crate::common::RW,
311        >::from_register(self, 0)
312    }
313
314    #[doc = "I2C Bus Interface 1 Module Stop"]
315    #[inline(always)]
316    pub fn mstpb8(
317        self,
318    ) -> crate::common::RegisterField<
319        8,
320        0x1,
321        1,
322        0,
323        mstpcrb::Mstpb8,
324        mstpcrb::Mstpb8,
325        Mstpcrb_SPEC,
326        crate::common::RW,
327    > {
328        crate::common::RegisterField::<
329            8,
330            0x1,
331            1,
332            0,
333            mstpcrb::Mstpb8,
334            mstpcrb::Mstpb8,
335            Mstpcrb_SPEC,
336            crate::common::RW,
337        >::from_register(self, 0)
338    }
339
340    #[doc = "I2C Bus Interface 0 Module Stop"]
341    #[inline(always)]
342    pub fn mstpb9(
343        self,
344    ) -> crate::common::RegisterField<
345        9,
346        0x1,
347        1,
348        0,
349        mstpcrb::Mstpb9,
350        mstpcrb::Mstpb9,
351        Mstpcrb_SPEC,
352        crate::common::RW,
353    > {
354        crate::common::RegisterField::<
355            9,
356            0x1,
357            1,
358            0,
359            mstpcrb::Mstpb9,
360            mstpcrb::Mstpb9,
361            Mstpcrb_SPEC,
362            crate::common::RW,
363        >::from_register(self, 0)
364    }
365
366    #[doc = "Universal Serial Bus 2.0 FS Interface 0 Module Stop"]
367    #[inline(always)]
368    pub fn mstpb11(
369        self,
370    ) -> crate::common::RegisterField<
371        11,
372        0x1,
373        1,
374        0,
375        mstpcrb::Mstpb11,
376        mstpcrb::Mstpb11,
377        Mstpcrb_SPEC,
378        crate::common::RW,
379    > {
380        crate::common::RegisterField::<
381            11,
382            0x1,
383            1,
384            0,
385            mstpcrb::Mstpb11,
386            mstpcrb::Mstpb11,
387            Mstpcrb_SPEC,
388            crate::common::RW,
389        >::from_register(self, 0)
390    }
391
392    #[doc = "Serial Peripheral Interface 0 Module Stop"]
393    #[inline(always)]
394    pub fn mstpb19(
395        self,
396    ) -> crate::common::RegisterField<
397        19,
398        0x1,
399        1,
400        0,
401        mstpcrb::Mstpb19,
402        mstpcrb::Mstpb19,
403        Mstpcrb_SPEC,
404        crate::common::RW,
405    > {
406        crate::common::RegisterField::<
407            19,
408            0x1,
409            1,
410            0,
411            mstpcrb::Mstpb19,
412            mstpcrb::Mstpb19,
413            Mstpcrb_SPEC,
414            crate::common::RW,
415        >::from_register(self, 0)
416    }
417
418    #[doc = "Serial Communication Interface 9 Module Stop"]
419    #[inline(always)]
420    pub fn mstpb22(
421        self,
422    ) -> crate::common::RegisterField<
423        22,
424        0x1,
425        1,
426        0,
427        mstpcrb::Mstpb22,
428        mstpcrb::Mstpb22,
429        Mstpcrb_SPEC,
430        crate::common::RW,
431    > {
432        crate::common::RegisterField::<
433            22,
434            0x1,
435            1,
436            0,
437            mstpcrb::Mstpb22,
438            mstpcrb::Mstpb22,
439            Mstpcrb_SPEC,
440            crate::common::RW,
441        >::from_register(self, 0)
442    }
443
444    #[doc = "Serial Communication Interface 4 Module Stop"]
445    #[inline(always)]
446    pub fn mstpb27(
447        self,
448    ) -> crate::common::RegisterField<
449        27,
450        0x1,
451        1,
452        0,
453        mstpcrb::Mstpb27,
454        mstpcrb::Mstpb27,
455        Mstpcrb_SPEC,
456        crate::common::RW,
457    > {
458        crate::common::RegisterField::<
459            27,
460            0x1,
461            1,
462            0,
463            mstpcrb::Mstpb27,
464            mstpcrb::Mstpb27,
465            Mstpcrb_SPEC,
466            crate::common::RW,
467        >::from_register(self, 0)
468    }
469
470    #[doc = "Serial Communication Interface 3 Module Stop"]
471    #[inline(always)]
472    pub fn mstpb28(
473        self,
474    ) -> crate::common::RegisterField<
475        28,
476        0x1,
477        1,
478        0,
479        mstpcrb::Mstpb28,
480        mstpcrb::Mstpb28,
481        Mstpcrb_SPEC,
482        crate::common::RW,
483    > {
484        crate::common::RegisterField::<
485            28,
486            0x1,
487            1,
488            0,
489            mstpcrb::Mstpb28,
490            mstpcrb::Mstpb28,
491            Mstpcrb_SPEC,
492            crate::common::RW,
493        >::from_register(self, 0)
494    }
495
496    #[doc = "Serial Communication Interface 2 Module Stop"]
497    #[inline(always)]
498    pub fn mstpb29(
499        self,
500    ) -> crate::common::RegisterField<
501        29,
502        0x1,
503        1,
504        0,
505        mstpcrb::Mstpb29,
506        mstpcrb::Mstpb29,
507        Mstpcrb_SPEC,
508        crate::common::RW,
509    > {
510        crate::common::RegisterField::<
511            29,
512            0x1,
513            1,
514            0,
515            mstpcrb::Mstpb29,
516            mstpcrb::Mstpb29,
517            Mstpcrb_SPEC,
518            crate::common::RW,
519        >::from_register(self, 0)
520    }
521
522    #[doc = "Serial Communication Interface 1 Module Stop"]
523    #[inline(always)]
524    pub fn mstpb30(
525        self,
526    ) -> crate::common::RegisterField<
527        30,
528        0x1,
529        1,
530        0,
531        mstpcrb::Mstpb30,
532        mstpcrb::Mstpb30,
533        Mstpcrb_SPEC,
534        crate::common::RW,
535    > {
536        crate::common::RegisterField::<
537            30,
538            0x1,
539            1,
540            0,
541            mstpcrb::Mstpb30,
542            mstpcrb::Mstpb30,
543            Mstpcrb_SPEC,
544            crate::common::RW,
545        >::from_register(self, 0)
546    }
547
548    #[doc = "Serial Communication Interface 0 Module Stop"]
549    #[inline(always)]
550    pub fn mstpb31(
551        self,
552    ) -> crate::common::RegisterField<
553        31,
554        0x1,
555        1,
556        0,
557        mstpcrb::Mstpb31,
558        mstpcrb::Mstpb31,
559        Mstpcrb_SPEC,
560        crate::common::RW,
561    > {
562        crate::common::RegisterField::<
563            31,
564            0x1,
565            1,
566            0,
567            mstpcrb::Mstpb31,
568            mstpcrb::Mstpb31,
569            Mstpcrb_SPEC,
570            crate::common::RW,
571        >::from_register(self, 0)
572    }
573}
574impl ::core::default::Default for Mstpcrb {
575    #[inline(always)]
576    fn default() -> Mstpcrb {
577        <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
578    }
579}
580pub mod mstpcrb {
581
582    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
583    pub struct Mstpb1_SPEC;
584    pub type Mstpb1 = crate::EnumBitfieldStruct<u8, Mstpb1_SPEC>;
585    impl Mstpb1 {
586        #[doc = "Cancel the module-stop state"]
587        pub const _0: Self = Self::new(0);
588
589        #[doc = "Enter the module-stop state"]
590        pub const _1: Self = Self::new(1);
591    }
592    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
593    pub struct Mstpb2_SPEC;
594    pub type Mstpb2 = crate::EnumBitfieldStruct<u8, Mstpb2_SPEC>;
595    impl Mstpb2 {
596        #[doc = "Cancel the module-stop state"]
597        pub const _0: Self = Self::new(0);
598
599        #[doc = "Enter the module-stop state"]
600        pub const _1: Self = Self::new(1);
601    }
602    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
603    pub struct Mstpb6_SPEC;
604    pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
605    impl Mstpb6 {
606        #[doc = "Cancel the module-stop state"]
607        pub const _0: Self = Self::new(0);
608
609        #[doc = "Enter the module-stop state"]
610        pub const _1: Self = Self::new(1);
611    }
612    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
613    pub struct Mstpb8_SPEC;
614    pub type Mstpb8 = crate::EnumBitfieldStruct<u8, Mstpb8_SPEC>;
615    impl Mstpb8 {
616        #[doc = "Cancel the module-stop state"]
617        pub const _0: Self = Self::new(0);
618
619        #[doc = "Enter the module-stop state"]
620        pub const _1: Self = Self::new(1);
621    }
622    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
623    pub struct Mstpb9_SPEC;
624    pub type Mstpb9 = crate::EnumBitfieldStruct<u8, Mstpb9_SPEC>;
625    impl Mstpb9 {
626        #[doc = "Cancel the module-stop state"]
627        pub const _0: Self = Self::new(0);
628
629        #[doc = "Enter the module-stop state"]
630        pub const _1: Self = Self::new(1);
631    }
632    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
633    pub struct Mstpb11_SPEC;
634    pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
635    impl Mstpb11 {
636        #[doc = "Cancel the module-stop state"]
637        pub const _0: Self = Self::new(0);
638
639        #[doc = "Enter the module-stop state"]
640        pub const _1: Self = Self::new(1);
641    }
642    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
643    pub struct Mstpb19_SPEC;
644    pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
645    impl Mstpb19 {
646        #[doc = "Cancel the module-stop state"]
647        pub const _0: Self = Self::new(0);
648
649        #[doc = "Enter the module-stop state"]
650        pub const _1: Self = Self::new(1);
651    }
652    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
653    pub struct Mstpb22_SPEC;
654    pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
655    impl Mstpb22 {
656        #[doc = "Cancel the module-stop state"]
657        pub const _0: Self = Self::new(0);
658
659        #[doc = "Enter the module-stop state"]
660        pub const _1: Self = Self::new(1);
661    }
662    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
663    pub struct Mstpb27_SPEC;
664    pub type Mstpb27 = crate::EnumBitfieldStruct<u8, Mstpb27_SPEC>;
665    impl Mstpb27 {
666        #[doc = "Cancel the module-stop state"]
667        pub const _0: Self = Self::new(0);
668
669        #[doc = "Enter the module-stop state"]
670        pub const _1: Self = Self::new(1);
671    }
672    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
673    pub struct Mstpb28_SPEC;
674    pub type Mstpb28 = crate::EnumBitfieldStruct<u8, Mstpb28_SPEC>;
675    impl Mstpb28 {
676        #[doc = "Cancel the module-stop state"]
677        pub const _0: Self = Self::new(0);
678
679        #[doc = "Enter the module-stop state"]
680        pub const _1: Self = Self::new(1);
681    }
682    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
683    pub struct Mstpb29_SPEC;
684    pub type Mstpb29 = crate::EnumBitfieldStruct<u8, Mstpb29_SPEC>;
685    impl Mstpb29 {
686        #[doc = "Cancel the module-stop state"]
687        pub const _0: Self = Self::new(0);
688
689        #[doc = "Enter the module-stop state"]
690        pub const _1: Self = Self::new(1);
691    }
692    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
693    pub struct Mstpb30_SPEC;
694    pub type Mstpb30 = crate::EnumBitfieldStruct<u8, Mstpb30_SPEC>;
695    impl Mstpb30 {
696        #[doc = "Cancel the module-stop state"]
697        pub const _0: Self = Self::new(0);
698
699        #[doc = "Enter the module-stop state"]
700        pub const _1: Self = Self::new(1);
701    }
702    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
703    pub struct Mstpb31_SPEC;
704    pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
705    impl Mstpb31 {
706        #[doc = "Cancel the module-stop state"]
707        pub const _0: Self = Self::new(0);
708
709        #[doc = "Enter the module-stop state"]
710        pub const _1: Self = Self::new(1);
711    }
712}
713#[doc(hidden)]
714#[derive(Copy, Clone, Eq, PartialEq)]
715pub struct Mstpcrc_SPEC;
716impl crate::sealed::RegSpec for Mstpcrc_SPEC {
717    type DataType = u32;
718}
719
720#[doc = "Module Stop Control Register C"]
721pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
722
723impl Mstpcrc {
724    #[doc = "Clock Frequency Accuracy Measurement Circuit Module Stop"]
725    #[inline(always)]
726    pub fn mstpc0(
727        self,
728    ) -> crate::common::RegisterField<
729        0,
730        0x1,
731        1,
732        0,
733        mstpcrc::Mstpc0,
734        mstpcrc::Mstpc0,
735        Mstpcrc_SPEC,
736        crate::common::RW,
737    > {
738        crate::common::RegisterField::<
739            0,
740            0x1,
741            1,
742            0,
743            mstpcrc::Mstpc0,
744            mstpcrc::Mstpc0,
745            Mstpcrc_SPEC,
746            crate::common::RW,
747        >::from_register(self, 0)
748    }
749
750    #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
751    #[inline(always)]
752    pub fn mstpc1(
753        self,
754    ) -> crate::common::RegisterField<
755        1,
756        0x1,
757        1,
758        0,
759        mstpcrc::Mstpc1,
760        mstpcrc::Mstpc1,
761        Mstpcrc_SPEC,
762        crate::common::RW,
763    > {
764        crate::common::RegisterField::<
765            1,
766            0x1,
767            1,
768            0,
769            mstpcrc::Mstpc1,
770            mstpcrc::Mstpc1,
771            Mstpcrc_SPEC,
772            crate::common::RW,
773        >::from_register(self, 0)
774    }
775
776    #[doc = "Capacitive Touch Sensing Unit Module Stop"]
777    #[inline(always)]
778    pub fn mstpc3(
779        self,
780    ) -> crate::common::RegisterField<
781        3,
782        0x1,
783        1,
784        0,
785        mstpcrc::Mstpc3,
786        mstpcrc::Mstpc3,
787        Mstpcrc_SPEC,
788        crate::common::RW,
789    > {
790        crate::common::RegisterField::<
791            3,
792            0x1,
793            1,
794            0,
795            mstpcrc::Mstpc3,
796            mstpcrc::Mstpc3,
797            Mstpcrc_SPEC,
798            crate::common::RW,
799        >::from_register(self, 0)
800    }
801
802    #[doc = "Serial Sound Interface Enhanced Module Stop"]
803    #[inline(always)]
804    pub fn mstpc8(
805        self,
806    ) -> crate::common::RegisterField<
807        8,
808        0x1,
809        1,
810        0,
811        mstpcrc::Mstpc8,
812        mstpcrc::Mstpc8,
813        Mstpcrc_SPEC,
814        crate::common::RW,
815    > {
816        crate::common::RegisterField::<
817            8,
818            0x1,
819            1,
820            0,
821            mstpcrc::Mstpc8,
822            mstpcrc::Mstpc8,
823            Mstpcrc_SPEC,
824            crate::common::RW,
825        >::from_register(self, 0)
826    }
827
828    #[doc = "Secure Digital HOST IF / Multi Media Card 0 Module Stop"]
829    #[inline(always)]
830    pub fn mstpc12(
831        self,
832    ) -> crate::common::RegisterField<
833        12,
834        0x1,
835        1,
836        0,
837        mstpcrc::Mstpc12,
838        mstpcrc::Mstpc12,
839        Mstpcrc_SPEC,
840        crate::common::RW,
841    > {
842        crate::common::RegisterField::<
843            12,
844            0x1,
845            1,
846            0,
847            mstpcrc::Mstpc12,
848            mstpcrc::Mstpc12,
849            Mstpcrc_SPEC,
850            crate::common::RW,
851        >::from_register(self, 0)
852    }
853
854    #[doc = "Data Operation Circuit Module Stop"]
855    #[inline(always)]
856    pub fn mstpc13(
857        self,
858    ) -> crate::common::RegisterField<
859        13,
860        0x1,
861        1,
862        0,
863        mstpcrc::Mstpc13,
864        mstpcrc::Mstpc13,
865        Mstpcrc_SPEC,
866        crate::common::RW,
867    > {
868        crate::common::RegisterField::<
869            13,
870            0x1,
871            1,
872            0,
873            mstpcrc::Mstpc13,
874            mstpcrc::Mstpc13,
875            Mstpcrc_SPEC,
876            crate::common::RW,
877        >::from_register(self, 0)
878    }
879
880    #[doc = "Event Link Controller Module Stop"]
881    #[inline(always)]
882    pub fn mstpc14(
883        self,
884    ) -> crate::common::RegisterField<
885        14,
886        0x1,
887        1,
888        0,
889        mstpcrc::Mstpc14,
890        mstpcrc::Mstpc14,
891        Mstpcrc_SPEC,
892        crate::common::RW,
893    > {
894        crate::common::RegisterField::<
895            14,
896            0x1,
897            1,
898            0,
899            mstpcrc::Mstpc14,
900            mstpcrc::Mstpc14,
901            Mstpcrc_SPEC,
902            crate::common::RW,
903        >::from_register(self, 0)
904    }
905
906    #[doc = "SCE9 Module Stop"]
907    #[inline(always)]
908    pub fn mstpc31(
909        self,
910    ) -> crate::common::RegisterField<
911        31,
912        0x1,
913        1,
914        0,
915        mstpcrc::Mstpc31,
916        mstpcrc::Mstpc31,
917        Mstpcrc_SPEC,
918        crate::common::RW,
919    > {
920        crate::common::RegisterField::<
921            31,
922            0x1,
923            1,
924            0,
925            mstpcrc::Mstpc31,
926            mstpcrc::Mstpc31,
927            Mstpcrc_SPEC,
928            crate::common::RW,
929        >::from_register(self, 0)
930    }
931}
932impl ::core::default::Default for Mstpcrc {
933    #[inline(always)]
934    fn default() -> Mstpcrc {
935        <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
936    }
937}
938pub mod mstpcrc {
939
940    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
941    pub struct Mstpc0_SPEC;
942    pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
943    impl Mstpc0 {
944        #[doc = "Cancel the module-stop state"]
945        pub const _0: Self = Self::new(0);
946
947        #[doc = "Enter the module-stop state"]
948        pub const _1: Self = Self::new(1);
949    }
950    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
951    pub struct Mstpc1_SPEC;
952    pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
953    impl Mstpc1 {
954        #[doc = "Cancel the module-stop state"]
955        pub const _0: Self = Self::new(0);
956
957        #[doc = "Enter the module-stop state"]
958        pub const _1: Self = Self::new(1);
959    }
960    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
961    pub struct Mstpc3_SPEC;
962    pub type Mstpc3 = crate::EnumBitfieldStruct<u8, Mstpc3_SPEC>;
963    impl Mstpc3 {
964        #[doc = "Cancel the module-stop state"]
965        pub const _0: Self = Self::new(0);
966
967        #[doc = "Enter the module-stop state"]
968        pub const _1: Self = Self::new(1);
969    }
970    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
971    pub struct Mstpc8_SPEC;
972    pub type Mstpc8 = crate::EnumBitfieldStruct<u8, Mstpc8_SPEC>;
973    impl Mstpc8 {
974        #[doc = "Cancel the module-stop state"]
975        pub const _0: Self = Self::new(0);
976
977        #[doc = "Enter the module-stop state"]
978        pub const _1: Self = Self::new(1);
979    }
980    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
981    pub struct Mstpc12_SPEC;
982    pub type Mstpc12 = crate::EnumBitfieldStruct<u8, Mstpc12_SPEC>;
983    impl Mstpc12 {
984        #[doc = "Cancel the module-stop state"]
985        pub const _0: Self = Self::new(0);
986
987        #[doc = "Enter the module-stop state"]
988        pub const _1: Self = Self::new(1);
989    }
990    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
991    pub struct Mstpc13_SPEC;
992    pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
993    impl Mstpc13 {
994        #[doc = "Cancel the module-stop state"]
995        pub const _0: Self = Self::new(0);
996
997        #[doc = "Enter the module-stop state"]
998        pub const _1: Self = Self::new(1);
999    }
1000    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1001    pub struct Mstpc14_SPEC;
1002    pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
1003    impl Mstpc14 {
1004        #[doc = "Cancel the module-stop state"]
1005        pub const _0: Self = Self::new(0);
1006
1007        #[doc = "Enter the module-stop state"]
1008        pub const _1: Self = Self::new(1);
1009    }
1010    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1011    pub struct Mstpc31_SPEC;
1012    pub type Mstpc31 = crate::EnumBitfieldStruct<u8, Mstpc31_SPEC>;
1013    impl Mstpc31 {
1014        #[doc = "Cancel the module-stop state"]
1015        pub const _0: Self = Self::new(0);
1016
1017        #[doc = "Enter the module-stop state"]
1018        pub const _1: Self = Self::new(1);
1019    }
1020}
1021#[doc(hidden)]
1022#[derive(Copy, Clone, Eq, PartialEq)]
1023pub struct Mstpcrd_SPEC;
1024impl crate::sealed::RegSpec for Mstpcrd_SPEC {
1025    type DataType = u32;
1026}
1027
1028#[doc = "Module Stop Control Register D"]
1029pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
1030
1031impl Mstpcrd {
1032    #[doc = "Low Power Asynchronous General Purpose Timer 3 Module Stop"]
1033    #[inline(always)]
1034    pub fn mstpd0(
1035        self,
1036    ) -> crate::common::RegisterField<
1037        0,
1038        0x1,
1039        1,
1040        0,
1041        mstpcrd::Mstpd0,
1042        mstpcrd::Mstpd0,
1043        Mstpcrd_SPEC,
1044        crate::common::RW,
1045    > {
1046        crate::common::RegisterField::<
1047            0,
1048            0x1,
1049            1,
1050            0,
1051            mstpcrd::Mstpd0,
1052            mstpcrd::Mstpd0,
1053            Mstpcrd_SPEC,
1054            crate::common::RW,
1055        >::from_register(self, 0)
1056    }
1057
1058    #[doc = "Low Power Asynchronous General Purpose Timer 2 Module Stop"]
1059    #[inline(always)]
1060    pub fn mstpd1(
1061        self,
1062    ) -> crate::common::RegisterField<
1063        1,
1064        0x1,
1065        1,
1066        0,
1067        mstpcrd::Mstpd1,
1068        mstpcrd::Mstpd1,
1069        Mstpcrd_SPEC,
1070        crate::common::RW,
1071    > {
1072        crate::common::RegisterField::<
1073            1,
1074            0x1,
1075            1,
1076            0,
1077            mstpcrd::Mstpd1,
1078            mstpcrd::Mstpd1,
1079            Mstpcrd_SPEC,
1080            crate::common::RW,
1081        >::from_register(self, 0)
1082    }
1083
1084    #[doc = "Low Power Asynchronous General Purpose Timer 1 Module Stop"]
1085    #[inline(always)]
1086    pub fn mstpd2(
1087        self,
1088    ) -> crate::common::RegisterField<
1089        2,
1090        0x1,
1091        1,
1092        0,
1093        mstpcrd::Mstpd2,
1094        mstpcrd::Mstpd2,
1095        Mstpcrd_SPEC,
1096        crate::common::RW,
1097    > {
1098        crate::common::RegisterField::<
1099            2,
1100            0x1,
1101            1,
1102            0,
1103            mstpcrd::Mstpd2,
1104            mstpcrd::Mstpd2,
1105            Mstpcrd_SPEC,
1106            crate::common::RW,
1107        >::from_register(self, 0)
1108    }
1109
1110    #[doc = "Low Power Asynchronous General Purpose Timer 0 Module Stop"]
1111    #[inline(always)]
1112    pub fn mstpd3(
1113        self,
1114    ) -> crate::common::RegisterField<
1115        3,
1116        0x1,
1117        1,
1118        0,
1119        mstpcrd::Mstpd3,
1120        mstpcrd::Mstpd3,
1121        Mstpcrd_SPEC,
1122        crate::common::RW,
1123    > {
1124        crate::common::RegisterField::<
1125            3,
1126            0x1,
1127            1,
1128            0,
1129            mstpcrd::Mstpd3,
1130            mstpcrd::Mstpd3,
1131            Mstpcrd_SPEC,
1132            crate::common::RW,
1133        >::from_register(self, 0)
1134    }
1135
1136    #[doc = "Port Output Enable for GPT Group D Module Stop"]
1137    #[inline(always)]
1138    pub fn mstpd11(
1139        self,
1140    ) -> crate::common::RegisterField<
1141        11,
1142        0x1,
1143        1,
1144        0,
1145        mstpcrd::Mstpd11,
1146        mstpcrd::Mstpd11,
1147        Mstpcrd_SPEC,
1148        crate::common::RW,
1149    > {
1150        crate::common::RegisterField::<
1151            11,
1152            0x1,
1153            1,
1154            0,
1155            mstpcrd::Mstpd11,
1156            mstpcrd::Mstpd11,
1157            Mstpcrd_SPEC,
1158            crate::common::RW,
1159        >::from_register(self, 0)
1160    }
1161
1162    #[doc = "Port Output Enable for GPT Group C Module Stop"]
1163    #[inline(always)]
1164    pub fn mstpd12(
1165        self,
1166    ) -> crate::common::RegisterField<
1167        12,
1168        0x1,
1169        1,
1170        0,
1171        mstpcrd::Mstpd12,
1172        mstpcrd::Mstpd12,
1173        Mstpcrd_SPEC,
1174        crate::common::RW,
1175    > {
1176        crate::common::RegisterField::<
1177            12,
1178            0x1,
1179            1,
1180            0,
1181            mstpcrd::Mstpd12,
1182            mstpcrd::Mstpd12,
1183            Mstpcrd_SPEC,
1184            crate::common::RW,
1185        >::from_register(self, 0)
1186    }
1187
1188    #[doc = "Port Output Enable for GPT Group B Module Stop"]
1189    #[inline(always)]
1190    pub fn mstpd13(
1191        self,
1192    ) -> crate::common::RegisterField<
1193        13,
1194        0x1,
1195        1,
1196        0,
1197        mstpcrd::Mstpd13,
1198        mstpcrd::Mstpd13,
1199        Mstpcrd_SPEC,
1200        crate::common::RW,
1201    > {
1202        crate::common::RegisterField::<
1203            13,
1204            0x1,
1205            1,
1206            0,
1207            mstpcrd::Mstpd13,
1208            mstpcrd::Mstpd13,
1209            Mstpcrd_SPEC,
1210            crate::common::RW,
1211        >::from_register(self, 0)
1212    }
1213
1214    #[doc = "Port Output Enable for GPT Group A Module Stop"]
1215    #[inline(always)]
1216    pub fn mstpd14(
1217        self,
1218    ) -> crate::common::RegisterField<
1219        14,
1220        0x1,
1221        1,
1222        0,
1223        mstpcrd::Mstpd14,
1224        mstpcrd::Mstpd14,
1225        Mstpcrd_SPEC,
1226        crate::common::RW,
1227    > {
1228        crate::common::RegisterField::<
1229            14,
1230            0x1,
1231            1,
1232            0,
1233            mstpcrd::Mstpd14,
1234            mstpcrd::Mstpd14,
1235            Mstpcrd_SPEC,
1236            crate::common::RW,
1237        >::from_register(self, 0)
1238    }
1239
1240    #[doc = "12-bit A/D Converter 1 Module Stop"]
1241    #[inline(always)]
1242    pub fn mstpd15(
1243        self,
1244    ) -> crate::common::RegisterField<
1245        15,
1246        0x1,
1247        1,
1248        0,
1249        mstpcrd::Mstpd15,
1250        mstpcrd::Mstpd15,
1251        Mstpcrd_SPEC,
1252        crate::common::RW,
1253    > {
1254        crate::common::RegisterField::<
1255            15,
1256            0x1,
1257            1,
1258            0,
1259            mstpcrd::Mstpd15,
1260            mstpcrd::Mstpd15,
1261            Mstpcrd_SPEC,
1262            crate::common::RW,
1263        >::from_register(self, 0)
1264    }
1265
1266    #[doc = "12-bit A/D Converter 0 Module Stop"]
1267    #[inline(always)]
1268    pub fn mstpd16(
1269        self,
1270    ) -> crate::common::RegisterField<
1271        16,
1272        0x1,
1273        1,
1274        0,
1275        mstpcrd::Mstpd16,
1276        mstpcrd::Mstpd16,
1277        Mstpcrd_SPEC,
1278        crate::common::RW,
1279    > {
1280        crate::common::RegisterField::<
1281            16,
1282            0x1,
1283            1,
1284            0,
1285            mstpcrd::Mstpd16,
1286            mstpcrd::Mstpd16,
1287            Mstpcrd_SPEC,
1288            crate::common::RW,
1289        >::from_register(self, 0)
1290    }
1291
1292    #[doc = "12-bit D/A Converter Module Stop"]
1293    #[inline(always)]
1294    pub fn mstpd20(
1295        self,
1296    ) -> crate::common::RegisterField<
1297        20,
1298        0x1,
1299        1,
1300        0,
1301        mstpcrd::Mstpd20,
1302        mstpcrd::Mstpd20,
1303        Mstpcrd_SPEC,
1304        crate::common::RW,
1305    > {
1306        crate::common::RegisterField::<
1307            20,
1308            0x1,
1309            1,
1310            0,
1311            mstpcrd::Mstpd20,
1312            mstpcrd::Mstpd20,
1313            Mstpcrd_SPEC,
1314            crate::common::RW,
1315        >::from_register(self, 0)
1316    }
1317
1318    #[doc = "Temperature Sensor Module Stop"]
1319    #[inline(always)]
1320    pub fn mstpd22(
1321        self,
1322    ) -> crate::common::RegisterField<
1323        22,
1324        0x1,
1325        1,
1326        0,
1327        mstpcrd::Mstpd22,
1328        mstpcrd::Mstpd22,
1329        Mstpcrd_SPEC,
1330        crate::common::RW,
1331    > {
1332        crate::common::RegisterField::<
1333            22,
1334            0x1,
1335            1,
1336            0,
1337            mstpcrd::Mstpd22,
1338            mstpcrd::Mstpd22,
1339            Mstpcrd_SPEC,
1340            crate::common::RW,
1341        >::from_register(self, 0)
1342    }
1343}
1344impl ::core::default::Default for Mstpcrd {
1345    #[inline(always)]
1346    fn default() -> Mstpcrd {
1347        <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
1348    }
1349}
1350pub mod mstpcrd {
1351
1352    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1353    pub struct Mstpd0_SPEC;
1354    pub type Mstpd0 = crate::EnumBitfieldStruct<u8, Mstpd0_SPEC>;
1355    impl Mstpd0 {
1356        #[doc = "Cancel the module-stop state"]
1357        pub const _0: Self = Self::new(0);
1358
1359        #[doc = "Enter the module-stop state"]
1360        pub const _1: Self = Self::new(1);
1361    }
1362    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1363    pub struct Mstpd1_SPEC;
1364    pub type Mstpd1 = crate::EnumBitfieldStruct<u8, Mstpd1_SPEC>;
1365    impl Mstpd1 {
1366        #[doc = "Cancel the module-stop state"]
1367        pub const _0: Self = Self::new(0);
1368
1369        #[doc = "Enter the module-stop state"]
1370        pub const _1: Self = Self::new(1);
1371    }
1372    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1373    pub struct Mstpd2_SPEC;
1374    pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
1375    impl Mstpd2 {
1376        #[doc = "Cancel the module-stop state"]
1377        pub const _0: Self = Self::new(0);
1378
1379        #[doc = "Enter the module-stop state"]
1380        pub const _1: Self = Self::new(1);
1381    }
1382    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1383    pub struct Mstpd3_SPEC;
1384    pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
1385    impl Mstpd3 {
1386        #[doc = "Cancel the module-stop state"]
1387        pub const _0: Self = Self::new(0);
1388
1389        #[doc = "Enter the module-stop state"]
1390        pub const _1: Self = Self::new(1);
1391    }
1392    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1393    pub struct Mstpd11_SPEC;
1394    pub type Mstpd11 = crate::EnumBitfieldStruct<u8, Mstpd11_SPEC>;
1395    impl Mstpd11 {
1396        #[doc = "Cancel the module-stop state"]
1397        pub const _0: Self = Self::new(0);
1398
1399        #[doc = "Enter the module-stop state"]
1400        pub const _1: Self = Self::new(1);
1401    }
1402    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1403    pub struct Mstpd12_SPEC;
1404    pub type Mstpd12 = crate::EnumBitfieldStruct<u8, Mstpd12_SPEC>;
1405    impl Mstpd12 {
1406        #[doc = "Cancel the module-stop state"]
1407        pub const _0: Self = Self::new(0);
1408
1409        #[doc = "Enter the module-stop state"]
1410        pub const _1: Self = Self::new(1);
1411    }
1412    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1413    pub struct Mstpd13_SPEC;
1414    pub type Mstpd13 = crate::EnumBitfieldStruct<u8, Mstpd13_SPEC>;
1415    impl Mstpd13 {
1416        #[doc = "Cancel the module-stop state"]
1417        pub const _0: Self = Self::new(0);
1418
1419        #[doc = "Enter the module-stop state"]
1420        pub const _1: Self = Self::new(1);
1421    }
1422    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1423    pub struct Mstpd14_SPEC;
1424    pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
1425    impl Mstpd14 {
1426        #[doc = "Cancel the module-stop state"]
1427        pub const _0: Self = Self::new(0);
1428
1429        #[doc = "Enter the module-stop state"]
1430        pub const _1: Self = Self::new(1);
1431    }
1432    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1433    pub struct Mstpd15_SPEC;
1434    pub type Mstpd15 = crate::EnumBitfieldStruct<u8, Mstpd15_SPEC>;
1435    impl Mstpd15 {
1436        #[doc = "Cancel the module-stop state"]
1437        pub const _0: Self = Self::new(0);
1438
1439        #[doc = "Enter the module-stop state"]
1440        pub const _1: Self = Self::new(1);
1441    }
1442    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1443    pub struct Mstpd16_SPEC;
1444    pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
1445    impl Mstpd16 {
1446        #[doc = "Cancel the module-stop state"]
1447        pub const _0: Self = Self::new(0);
1448
1449        #[doc = "Enter the module-stop state"]
1450        pub const _1: Self = Self::new(1);
1451    }
1452    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1453    pub struct Mstpd20_SPEC;
1454    pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
1455    impl Mstpd20 {
1456        #[doc = "Cancel the module-stop state"]
1457        pub const _0: Self = Self::new(0);
1458
1459        #[doc = "Enter the module-stop state"]
1460        pub const _1: Self = Self::new(1);
1461    }
1462    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1463    pub struct Mstpd22_SPEC;
1464    pub type Mstpd22 = crate::EnumBitfieldStruct<u8, Mstpd22_SPEC>;
1465    impl Mstpd22 {
1466        #[doc = "Cancel the module-stop state"]
1467        pub const _0: Self = Self::new(0);
1468
1469        #[doc = "Enter the module-stop state"]
1470        pub const _1: Self = Self::new(1);
1471    }
1472}
1473#[doc(hidden)]
1474#[derive(Copy, Clone, Eq, PartialEq)]
1475pub struct Mstpcre_SPEC;
1476impl crate::sealed::RegSpec for Mstpcre_SPEC {
1477    type DataType = u32;
1478}
1479
1480#[doc = "Module Stop Control Register E"]
1481pub type Mstpcre = crate::RegValueT<Mstpcre_SPEC>;
1482
1483impl Mstpcre {
1484    #[doc = "Low Power Asynchronous General Purpose Timer 5 Module Stop"]
1485    #[inline(always)]
1486    pub fn mstpe14(
1487        self,
1488    ) -> crate::common::RegisterField<
1489        14,
1490        0x1,
1491        1,
1492        0,
1493        mstpcre::Mstpe14,
1494        mstpcre::Mstpe14,
1495        Mstpcre_SPEC,
1496        crate::common::RW,
1497    > {
1498        crate::common::RegisterField::<
1499            14,
1500            0x1,
1501            1,
1502            0,
1503            mstpcre::Mstpe14,
1504            mstpcre::Mstpe14,
1505            Mstpcre_SPEC,
1506            crate::common::RW,
1507        >::from_register(self, 0)
1508    }
1509
1510    #[doc = "Low Power Asynchronous General Purpose Timer 4 Module Stop"]
1511    #[inline(always)]
1512    pub fn mstpe15(
1513        self,
1514    ) -> crate::common::RegisterField<
1515        15,
1516        0x1,
1517        1,
1518        0,
1519        mstpcre::Mstpe15,
1520        mstpcre::Mstpe15,
1521        Mstpcre_SPEC,
1522        crate::common::RW,
1523    > {
1524        crate::common::RegisterField::<
1525            15,
1526            0x1,
1527            1,
1528            0,
1529            mstpcre::Mstpe15,
1530            mstpcre::Mstpe15,
1531            Mstpcre_SPEC,
1532            crate::common::RW,
1533        >::from_register(self, 0)
1534    }
1535
1536    #[doc = "GPT7 Module Stop"]
1537    #[inline(always)]
1538    pub fn mstpe24(
1539        self,
1540    ) -> crate::common::RegisterField<
1541        24,
1542        0x1,
1543        1,
1544        0,
1545        mstpcre::Mstpe24,
1546        mstpcre::Mstpe24,
1547        Mstpcre_SPEC,
1548        crate::common::RW,
1549    > {
1550        crate::common::RegisterField::<
1551            24,
1552            0x1,
1553            1,
1554            0,
1555            mstpcre::Mstpe24,
1556            mstpcre::Mstpe24,
1557            Mstpcre_SPEC,
1558            crate::common::RW,
1559        >::from_register(self, 0)
1560    }
1561
1562    #[doc = "GPT6 Module Stop"]
1563    #[inline(always)]
1564    pub fn mstpe25(
1565        self,
1566    ) -> crate::common::RegisterField<
1567        25,
1568        0x1,
1569        1,
1570        0,
1571        mstpcre::Mstpe25,
1572        mstpcre::Mstpe25,
1573        Mstpcre_SPEC,
1574        crate::common::RW,
1575    > {
1576        crate::common::RegisterField::<
1577            25,
1578            0x1,
1579            1,
1580            0,
1581            mstpcre::Mstpe25,
1582            mstpcre::Mstpe25,
1583            Mstpcre_SPEC,
1584            crate::common::RW,
1585        >::from_register(self, 0)
1586    }
1587
1588    #[doc = "GPT5 Module Stop"]
1589    #[inline(always)]
1590    pub fn mstpe26(
1591        self,
1592    ) -> crate::common::RegisterField<
1593        26,
1594        0x1,
1595        1,
1596        0,
1597        mstpcre::Mstpe26,
1598        mstpcre::Mstpe26,
1599        Mstpcre_SPEC,
1600        crate::common::RW,
1601    > {
1602        crate::common::RegisterField::<
1603            26,
1604            0x1,
1605            1,
1606            0,
1607            mstpcre::Mstpe26,
1608            mstpcre::Mstpe26,
1609            Mstpcre_SPEC,
1610            crate::common::RW,
1611        >::from_register(self, 0)
1612    }
1613
1614    #[doc = "GPT4 Module Stop"]
1615    #[inline(always)]
1616    pub fn mstpe27(
1617        self,
1618    ) -> crate::common::RegisterField<
1619        27,
1620        0x1,
1621        1,
1622        0,
1623        mstpcre::Mstpe27,
1624        mstpcre::Mstpe27,
1625        Mstpcre_SPEC,
1626        crate::common::RW,
1627    > {
1628        crate::common::RegisterField::<
1629            27,
1630            0x1,
1631            1,
1632            0,
1633            mstpcre::Mstpe27,
1634            mstpcre::Mstpe27,
1635            Mstpcre_SPEC,
1636            crate::common::RW,
1637        >::from_register(self, 0)
1638    }
1639
1640    #[doc = "GPT3 Module Stop"]
1641    #[inline(always)]
1642    pub fn mstpe28(
1643        self,
1644    ) -> crate::common::RegisterField<
1645        28,
1646        0x1,
1647        1,
1648        0,
1649        mstpcre::Mstpe28,
1650        mstpcre::Mstpe28,
1651        Mstpcre_SPEC,
1652        crate::common::RW,
1653    > {
1654        crate::common::RegisterField::<
1655            28,
1656            0x1,
1657            1,
1658            0,
1659            mstpcre::Mstpe28,
1660            mstpcre::Mstpe28,
1661            Mstpcre_SPEC,
1662            crate::common::RW,
1663        >::from_register(self, 0)
1664    }
1665
1666    #[doc = "GPT2 Module Stop"]
1667    #[inline(always)]
1668    pub fn mstpe29(
1669        self,
1670    ) -> crate::common::RegisterField<
1671        29,
1672        0x1,
1673        1,
1674        0,
1675        mstpcre::Mstpe29,
1676        mstpcre::Mstpe29,
1677        Mstpcre_SPEC,
1678        crate::common::RW,
1679    > {
1680        crate::common::RegisterField::<
1681            29,
1682            0x1,
1683            1,
1684            0,
1685            mstpcre::Mstpe29,
1686            mstpcre::Mstpe29,
1687            Mstpcre_SPEC,
1688            crate::common::RW,
1689        >::from_register(self, 0)
1690    }
1691
1692    #[doc = "GPT1 Module Stop"]
1693    #[inline(always)]
1694    pub fn mstpe30(
1695        self,
1696    ) -> crate::common::RegisterField<
1697        30,
1698        0x1,
1699        1,
1700        0,
1701        mstpcre::Mstpe30,
1702        mstpcre::Mstpe30,
1703        Mstpcre_SPEC,
1704        crate::common::RW,
1705    > {
1706        crate::common::RegisterField::<
1707            30,
1708            0x1,
1709            1,
1710            0,
1711            mstpcre::Mstpe30,
1712            mstpcre::Mstpe30,
1713            Mstpcre_SPEC,
1714            crate::common::RW,
1715        >::from_register(self, 0)
1716    }
1717
1718    #[doc = "GPT0 Module Stop"]
1719    #[inline(always)]
1720    pub fn mstpe31(
1721        self,
1722    ) -> crate::common::RegisterField<
1723        31,
1724        0x1,
1725        1,
1726        0,
1727        mstpcre::Mstpe31,
1728        mstpcre::Mstpe31,
1729        Mstpcre_SPEC,
1730        crate::common::RW,
1731    > {
1732        crate::common::RegisterField::<
1733            31,
1734            0x1,
1735            1,
1736            0,
1737            mstpcre::Mstpe31,
1738            mstpcre::Mstpe31,
1739            Mstpcre_SPEC,
1740            crate::common::RW,
1741        >::from_register(self, 0)
1742    }
1743}
1744impl ::core::default::Default for Mstpcre {
1745    #[inline(always)]
1746    fn default() -> Mstpcre {
1747        <crate::RegValueT<Mstpcre_SPEC> as RegisterValue<_>>::new(4294967295)
1748    }
1749}
1750pub mod mstpcre {
1751
1752    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1753    pub struct Mstpe14_SPEC;
1754    pub type Mstpe14 = crate::EnumBitfieldStruct<u8, Mstpe14_SPEC>;
1755    impl Mstpe14 {
1756        #[doc = "Cancel the module-stop state"]
1757        pub const _0: Self = Self::new(0);
1758
1759        #[doc = "Enter the module-stop state"]
1760        pub const _1: Self = Self::new(1);
1761    }
1762    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1763    pub struct Mstpe15_SPEC;
1764    pub type Mstpe15 = crate::EnumBitfieldStruct<u8, Mstpe15_SPEC>;
1765    impl Mstpe15 {
1766        #[doc = "Cancel the module-stop state"]
1767        pub const _0: Self = Self::new(0);
1768
1769        #[doc = "Enter the module-stop state"]
1770        pub const _1: Self = Self::new(1);
1771    }
1772    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1773    pub struct Mstpe24_SPEC;
1774    pub type Mstpe24 = crate::EnumBitfieldStruct<u8, Mstpe24_SPEC>;
1775    impl Mstpe24 {
1776        #[doc = "Cancel the module-stop state"]
1777        pub const _0: Self = Self::new(0);
1778
1779        #[doc = "Enter the module-stop state"]
1780        pub const _1: Self = Self::new(1);
1781    }
1782    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1783    pub struct Mstpe25_SPEC;
1784    pub type Mstpe25 = crate::EnumBitfieldStruct<u8, Mstpe25_SPEC>;
1785    impl Mstpe25 {
1786        #[doc = "Cancel the module-stop state"]
1787        pub const _0: Self = Self::new(0);
1788
1789        #[doc = "Enter the module-stop state"]
1790        pub const _1: Self = Self::new(1);
1791    }
1792    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1793    pub struct Mstpe26_SPEC;
1794    pub type Mstpe26 = crate::EnumBitfieldStruct<u8, Mstpe26_SPEC>;
1795    impl Mstpe26 {
1796        #[doc = "Cancel the module-stop state"]
1797        pub const _0: Self = Self::new(0);
1798
1799        #[doc = "Enter the module-stop state"]
1800        pub const _1: Self = Self::new(1);
1801    }
1802    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1803    pub struct Mstpe27_SPEC;
1804    pub type Mstpe27 = crate::EnumBitfieldStruct<u8, Mstpe27_SPEC>;
1805    impl Mstpe27 {
1806        #[doc = "Cancel the module-stop state"]
1807        pub const _0: Self = Self::new(0);
1808
1809        #[doc = "Enter the module-stop state"]
1810        pub const _1: Self = Self::new(1);
1811    }
1812    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1813    pub struct Mstpe28_SPEC;
1814    pub type Mstpe28 = crate::EnumBitfieldStruct<u8, Mstpe28_SPEC>;
1815    impl Mstpe28 {
1816        #[doc = "Cancel the module-stop state"]
1817        pub const _0: Self = Self::new(0);
1818
1819        #[doc = "Enter the module-stop state"]
1820        pub const _1: Self = Self::new(1);
1821    }
1822    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1823    pub struct Mstpe29_SPEC;
1824    pub type Mstpe29 = crate::EnumBitfieldStruct<u8, Mstpe29_SPEC>;
1825    impl Mstpe29 {
1826        #[doc = "Cancel the module-stop state"]
1827        pub const _0: Self = Self::new(0);
1828
1829        #[doc = "Enter the module-stop state"]
1830        pub const _1: Self = Self::new(1);
1831    }
1832    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1833    pub struct Mstpe30_SPEC;
1834    pub type Mstpe30 = crate::EnumBitfieldStruct<u8, Mstpe30_SPEC>;
1835    impl Mstpe30 {
1836        #[doc = "Cancel the module-stop state"]
1837        pub const _0: Self = Self::new(0);
1838
1839        #[doc = "Enter the module-stop state"]
1840        pub const _1: Self = Self::new(1);
1841    }
1842    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1843    pub struct Mstpe31_SPEC;
1844    pub type Mstpe31 = crate::EnumBitfieldStruct<u8, Mstpe31_SPEC>;
1845    impl Mstpe31 {
1846        #[doc = "Cancel the module-stop state"]
1847        pub const _0: Self = Self::new(0);
1848
1849        #[doc = "Enter the module-stop state"]
1850        pub const _1: Self = Self::new(1);
1851    }
1852}