1#![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 = "CEC Module Stop"]
237 #[inline(always)]
238 pub fn mstpb3(
239 self,
240 ) -> crate::common::RegisterField<
241 3,
242 0x1,
243 1,
244 0,
245 mstpcrb::Mstpb3,
246 mstpcrb::Mstpb3,
247 Mstpcrb_SPEC,
248 crate::common::RW,
249 > {
250 crate::common::RegisterField::<
251 3,
252 0x1,
253 1,
254 0,
255 mstpcrb::Mstpb3,
256 mstpcrb::Mstpb3,
257 Mstpcrb_SPEC,
258 crate::common::RW,
259 >::from_register(self, 0)
260 }
261
262 #[doc = "I3C Bus Interface 0 Module Stop"]
263 #[inline(always)]
264 pub fn mstpb4(
265 self,
266 ) -> crate::common::RegisterField<
267 4,
268 0x1,
269 1,
270 0,
271 mstpcrb::Mstpb4,
272 mstpcrb::Mstpb4,
273 Mstpcrb_SPEC,
274 crate::common::RW,
275 > {
276 crate::common::RegisterField::<
277 4,
278 0x1,
279 1,
280 0,
281 mstpcrb::Mstpb4,
282 mstpcrb::Mstpb4,
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 = "Universal Serial Bus 2.0 FS Interface 0 Module Stop"]
315 #[inline(always)]
316 pub fn mstpb11(
317 self,
318 ) -> crate::common::RegisterField<
319 11,
320 0x1,
321 1,
322 0,
323 mstpcrb::Mstpb11,
324 mstpcrb::Mstpb11,
325 Mstpcrb_SPEC,
326 crate::common::RW,
327 > {
328 crate::common::RegisterField::<
329 11,
330 0x1,
331 1,
332 0,
333 mstpcrb::Mstpb11,
334 mstpcrb::Mstpb11,
335 Mstpcrb_SPEC,
336 crate::common::RW,
337 >::from_register(self, 0)
338 }
339
340 #[doc = "Serial Peripheral Interface 1 Module Stop"]
341 #[inline(always)]
342 pub fn mstpb18(
343 self,
344 ) -> crate::common::RegisterField<
345 18,
346 0x1,
347 1,
348 0,
349 mstpcrb::Mstpb18,
350 mstpcrb::Mstpb18,
351 Mstpcrb_SPEC,
352 crate::common::RW,
353 > {
354 crate::common::RegisterField::<
355 18,
356 0x1,
357 1,
358 0,
359 mstpcrb::Mstpb18,
360 mstpcrb::Mstpb18,
361 Mstpcrb_SPEC,
362 crate::common::RW,
363 >::from_register(self, 0)
364 }
365
366 #[doc = "Serial Peripheral Interface 0 Module Stop"]
367 #[inline(always)]
368 pub fn mstpb19(
369 self,
370 ) -> crate::common::RegisterField<
371 19,
372 0x1,
373 1,
374 0,
375 mstpcrb::Mstpb19,
376 mstpcrb::Mstpb19,
377 Mstpcrb_SPEC,
378 crate::common::RW,
379 > {
380 crate::common::RegisterField::<
381 19,
382 0x1,
383 1,
384 0,
385 mstpcrb::Mstpb19,
386 mstpcrb::Mstpb19,
387 Mstpcrb_SPEC,
388 crate::common::RW,
389 >::from_register(self, 0)
390 }
391
392 #[doc = "Serial Communication Interface 9 Module Stop"]
393 #[inline(always)]
394 pub fn mstpb22(
395 self,
396 ) -> crate::common::RegisterField<
397 22,
398 0x1,
399 1,
400 0,
401 mstpcrb::Mstpb22,
402 mstpcrb::Mstpb22,
403 Mstpcrb_SPEC,
404 crate::common::RW,
405 > {
406 crate::common::RegisterField::<
407 22,
408 0x1,
409 1,
410 0,
411 mstpcrb::Mstpb22,
412 mstpcrb::Mstpb22,
413 Mstpcrb_SPEC,
414 crate::common::RW,
415 >::from_register(self, 0)
416 }
417
418 #[doc = "Serial Communication Interface 0 Module Stop"]
419 #[inline(always)]
420 pub fn mstpb31(
421 self,
422 ) -> crate::common::RegisterField<
423 31,
424 0x1,
425 1,
426 0,
427 mstpcrb::Mstpb31,
428 mstpcrb::Mstpb31,
429 Mstpcrb_SPEC,
430 crate::common::RW,
431 > {
432 crate::common::RegisterField::<
433 31,
434 0x1,
435 1,
436 0,
437 mstpcrb::Mstpb31,
438 mstpcrb::Mstpb31,
439 Mstpcrb_SPEC,
440 crate::common::RW,
441 >::from_register(self, 0)
442 }
443}
444impl ::core::default::Default for Mstpcrb {
445 #[inline(always)]
446 fn default() -> Mstpcrb {
447 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
448 }
449}
450pub mod mstpcrb {
451
452 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
453 pub struct Mstpb3_SPEC;
454 pub type Mstpb3 = crate::EnumBitfieldStruct<u8, Mstpb3_SPEC>;
455 impl Mstpb3 {
456 #[doc = "Cancel the module-stop state"]
457 pub const _0: Self = Self::new(0);
458
459 #[doc = "Enter the module-stop state"]
460 pub const _1: Self = Self::new(1);
461 }
462 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
463 pub struct Mstpb4_SPEC;
464 pub type Mstpb4 = crate::EnumBitfieldStruct<u8, Mstpb4_SPEC>;
465 impl Mstpb4 {
466 #[doc = "Cancel the module-stop state"]
467 pub const _0: Self = Self::new(0);
468
469 #[doc = "Enter the module-stop state"]
470 pub const _1: Self = Self::new(1);
471 }
472 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
473 pub struct Mstpb6_SPEC;
474 pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
475 impl Mstpb6 {
476 #[doc = "Cancel the module-stop state"]
477 pub const _0: Self = Self::new(0);
478
479 #[doc = "Enter the module-stop state"]
480 pub const _1: Self = Self::new(1);
481 }
482 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
483 pub struct Mstpb11_SPEC;
484 pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
485 impl Mstpb11 {
486 #[doc = "Cancel the module-stop state"]
487 pub const _0: Self = Self::new(0);
488
489 #[doc = "Enter the module-stop state"]
490 pub const _1: Self = Self::new(1);
491 }
492 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
493 pub struct Mstpb18_SPEC;
494 pub type Mstpb18 = crate::EnumBitfieldStruct<u8, Mstpb18_SPEC>;
495 impl Mstpb18 {
496 #[doc = "Cancel the module-stop state"]
497 pub const _0: Self = Self::new(0);
498
499 #[doc = "Enter the module-stop state"]
500 pub const _1: Self = Self::new(1);
501 }
502 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
503 pub struct Mstpb19_SPEC;
504 pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
505 impl Mstpb19 {
506 #[doc = "Cancel the module-stop state"]
507 pub const _0: Self = Self::new(0);
508
509 #[doc = "Enter the module-stop state"]
510 pub const _1: Self = Self::new(1);
511 }
512 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
513 pub struct Mstpb22_SPEC;
514 pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
515 impl Mstpb22 {
516 #[doc = "Cancel the module-stop state"]
517 pub const _0: Self = Self::new(0);
518
519 #[doc = "Enter the module-stop state"]
520 pub const _1: Self = Self::new(1);
521 }
522 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
523 pub struct Mstpb31_SPEC;
524 pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
525 impl Mstpb31 {
526 #[doc = "Cancel the module-stop state"]
527 pub const _0: Self = Self::new(0);
528
529 #[doc = "Enter the module-stop state"]
530 pub const _1: Self = Self::new(1);
531 }
532}
533#[doc(hidden)]
534#[derive(Copy, Clone, Eq, PartialEq)]
535pub struct Mstpcrc_SPEC;
536impl crate::sealed::RegSpec for Mstpcrc_SPEC {
537 type DataType = u32;
538}
539
540#[doc = "Module Stop Control Register C"]
541pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
542
543impl Mstpcrc {
544 #[doc = "Clock Frequency Accuracy Measurement Circuit Module Stop"]
545 #[inline(always)]
546 pub fn mstpc0(
547 self,
548 ) -> crate::common::RegisterField<
549 0,
550 0x1,
551 1,
552 0,
553 mstpcrc::Mstpc0,
554 mstpcrc::Mstpc0,
555 Mstpcrc_SPEC,
556 crate::common::RW,
557 > {
558 crate::common::RegisterField::<
559 0,
560 0x1,
561 1,
562 0,
563 mstpcrc::Mstpc0,
564 mstpcrc::Mstpc0,
565 Mstpcrc_SPEC,
566 crate::common::RW,
567 >::from_register(self, 0)
568 }
569
570 #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
571 #[inline(always)]
572 pub fn mstpc1(
573 self,
574 ) -> crate::common::RegisterField<
575 1,
576 0x1,
577 1,
578 0,
579 mstpcrc::Mstpc1,
580 mstpcrc::Mstpc1,
581 Mstpcrc_SPEC,
582 crate::common::RW,
583 > {
584 crate::common::RegisterField::<
585 1,
586 0x1,
587 1,
588 0,
589 mstpcrc::Mstpc1,
590 mstpcrc::Mstpc1,
591 Mstpcrc_SPEC,
592 crate::common::RW,
593 >::from_register(self, 0)
594 }
595
596 #[doc = "Serial Sound Interface Enhanced Module Stop"]
597 #[inline(always)]
598 pub fn mstpc8(
599 self,
600 ) -> crate::common::RegisterField<
601 8,
602 0x1,
603 1,
604 0,
605 mstpcrc::Mstpc8,
606 mstpcrc::Mstpc8,
607 Mstpcrc_SPEC,
608 crate::common::RW,
609 > {
610 crate::common::RegisterField::<
611 8,
612 0x1,
613 1,
614 0,
615 mstpcrc::Mstpc8,
616 mstpcrc::Mstpc8,
617 Mstpcrc_SPEC,
618 crate::common::RW,
619 >::from_register(self, 0)
620 }
621
622 #[doc = "Data Operation Circuit Module Stop"]
623 #[inline(always)]
624 pub fn mstpc13(
625 self,
626 ) -> crate::common::RegisterField<
627 13,
628 0x1,
629 1,
630 0,
631 mstpcrc::Mstpc13,
632 mstpcrc::Mstpc13,
633 Mstpcrc_SPEC,
634 crate::common::RW,
635 > {
636 crate::common::RegisterField::<
637 13,
638 0x1,
639 1,
640 0,
641 mstpcrc::Mstpc13,
642 mstpcrc::Mstpc13,
643 Mstpcrc_SPEC,
644 crate::common::RW,
645 >::from_register(self, 0)
646 }
647
648 #[doc = "Event Link Controller Module Stop"]
649 #[inline(always)]
650 pub fn mstpc14(
651 self,
652 ) -> crate::common::RegisterField<
653 14,
654 0x1,
655 1,
656 0,
657 mstpcrc::Mstpc14,
658 mstpcrc::Mstpc14,
659 Mstpcrc_SPEC,
660 crate::common::RW,
661 > {
662 crate::common::RegisterField::<
663 14,
664 0x1,
665 1,
666 0,
667 mstpcrc::Mstpc14,
668 mstpcrc::Mstpc14,
669 Mstpcrc_SPEC,
670 crate::common::RW,
671 >::from_register(self, 0)
672 }
673
674 #[doc = "CANFD Module Stop"]
675 #[inline(always)]
676 pub fn mstpc27(
677 self,
678 ) -> crate::common::RegisterField<
679 27,
680 0x1,
681 1,
682 0,
683 mstpcrc::Mstpc27,
684 mstpcrc::Mstpc27,
685 Mstpcrc_SPEC,
686 crate::common::RW,
687 > {
688 crate::common::RegisterField::<
689 27,
690 0x1,
691 1,
692 0,
693 mstpcrc::Mstpc27,
694 mstpcrc::Mstpc27,
695 Mstpcrc_SPEC,
696 crate::common::RW,
697 >::from_register(self, 0)
698 }
699
700 #[doc = "Random Number Generator Module Stop"]
701 #[inline(always)]
702 pub fn mstpc28(
703 self,
704 ) -> crate::common::RegisterField<
705 28,
706 0x1,
707 1,
708 0,
709 mstpcrc::Mstpc28,
710 mstpcrc::Mstpc28,
711 Mstpcrc_SPEC,
712 crate::common::RW,
713 > {
714 crate::common::RegisterField::<
715 28,
716 0x1,
717 1,
718 0,
719 mstpcrc::Mstpc28,
720 mstpcrc::Mstpc28,
721 Mstpcrc_SPEC,
722 crate::common::RW,
723 >::from_register(self, 0)
724 }
725}
726impl ::core::default::Default for Mstpcrc {
727 #[inline(always)]
728 fn default() -> Mstpcrc {
729 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
730 }
731}
732pub mod mstpcrc {
733
734 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
735 pub struct Mstpc0_SPEC;
736 pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
737 impl Mstpc0 {
738 #[doc = "Cancel the module-stop state"]
739 pub const _0: Self = Self::new(0);
740
741 #[doc = "Enter the module-stop state"]
742 pub const _1: Self = Self::new(1);
743 }
744 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
745 pub struct Mstpc1_SPEC;
746 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
747 impl Mstpc1 {
748 #[doc = "Cancel the module-stop state"]
749 pub const _0: Self = Self::new(0);
750
751 #[doc = "Enter the module-stop state"]
752 pub const _1: Self = Self::new(1);
753 }
754 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
755 pub struct Mstpc8_SPEC;
756 pub type Mstpc8 = crate::EnumBitfieldStruct<u8, Mstpc8_SPEC>;
757 impl Mstpc8 {
758 #[doc = "Cancel the module-stop state"]
759 pub const _0: Self = Self::new(0);
760
761 #[doc = "Enter the module-stop state"]
762 pub const _1: Self = Self::new(1);
763 }
764 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
765 pub struct Mstpc13_SPEC;
766 pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
767 impl Mstpc13 {
768 #[doc = "Cancel the module-stop state"]
769 pub const _0: Self = Self::new(0);
770
771 #[doc = "Enter the module-stop state"]
772 pub const _1: Self = Self::new(1);
773 }
774 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
775 pub struct Mstpc14_SPEC;
776 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
777 impl Mstpc14 {
778 #[doc = "Cancel the module-stop state"]
779 pub const _0: Self = Self::new(0);
780
781 #[doc = "Enter the module-stop state"]
782 pub const _1: Self = Self::new(1);
783 }
784 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
785 pub struct Mstpc27_SPEC;
786 pub type Mstpc27 = crate::EnumBitfieldStruct<u8, Mstpc27_SPEC>;
787 impl Mstpc27 {
788 #[doc = "Cancel the module-stop state"]
789 pub const _0: Self = Self::new(0);
790
791 #[doc = "Enter the module-stop state"]
792 pub const _1: Self = Self::new(1);
793 }
794 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
795 pub struct Mstpc28_SPEC;
796 pub type Mstpc28 = crate::EnumBitfieldStruct<u8, Mstpc28_SPEC>;
797 impl Mstpc28 {
798 #[doc = "Cancel the module-stop state"]
799 pub const _0: Self = Self::new(0);
800
801 #[doc = "Enter the module-stop state"]
802 pub const _1: Self = Self::new(1);
803 }
804}
805#[doc(hidden)]
806#[derive(Copy, Clone, Eq, PartialEq)]
807pub struct Mstpcrd_SPEC;
808impl crate::sealed::RegSpec for Mstpcrd_SPEC {
809 type DataType = u32;
810}
811
812#[doc = "Module Stop Control Register D"]
813pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
814
815impl Mstpcrd {
816 #[doc = "Low Power Asynchronous General Purpose Timer 1 Module Stop"]
817 #[inline(always)]
818 pub fn mstpd2(
819 self,
820 ) -> crate::common::RegisterField<
821 2,
822 0x1,
823 1,
824 0,
825 mstpcrd::Mstpd2,
826 mstpcrd::Mstpd2,
827 Mstpcrd_SPEC,
828 crate::common::RW,
829 > {
830 crate::common::RegisterField::<
831 2,
832 0x1,
833 1,
834 0,
835 mstpcrd::Mstpd2,
836 mstpcrd::Mstpd2,
837 Mstpcrd_SPEC,
838 crate::common::RW,
839 >::from_register(self, 0)
840 }
841
842 #[doc = "Low Power Asynchronous General Purpose Timer 0 Module Stop"]
843 #[inline(always)]
844 pub fn mstpd3(
845 self,
846 ) -> crate::common::RegisterField<
847 3,
848 0x1,
849 1,
850 0,
851 mstpcrd::Mstpd3,
852 mstpcrd::Mstpd3,
853 Mstpcrd_SPEC,
854 crate::common::RW,
855 > {
856 crate::common::RegisterField::<
857 3,
858 0x1,
859 1,
860 0,
861 mstpcrd::Mstpd3,
862 mstpcrd::Mstpd3,
863 Mstpcrd_SPEC,
864 crate::common::RW,
865 >::from_register(self, 0)
866 }
867
868 #[doc = "Port Output Enable for GPT Group D Module Stop"]
869 #[inline(always)]
870 pub fn mstpd11(
871 self,
872 ) -> crate::common::RegisterField<
873 11,
874 0x1,
875 1,
876 0,
877 mstpcrd::Mstpd11,
878 mstpcrd::Mstpd11,
879 Mstpcrd_SPEC,
880 crate::common::RW,
881 > {
882 crate::common::RegisterField::<
883 11,
884 0x1,
885 1,
886 0,
887 mstpcrd::Mstpd11,
888 mstpcrd::Mstpd11,
889 Mstpcrd_SPEC,
890 crate::common::RW,
891 >::from_register(self, 0)
892 }
893
894 #[doc = "Port Output Enable for GPT Group C Module Stop"]
895 #[inline(always)]
896 pub fn mstpd12(
897 self,
898 ) -> crate::common::RegisterField<
899 12,
900 0x1,
901 1,
902 0,
903 mstpcrd::Mstpd12,
904 mstpcrd::Mstpd12,
905 Mstpcrd_SPEC,
906 crate::common::RW,
907 > {
908 crate::common::RegisterField::<
909 12,
910 0x1,
911 1,
912 0,
913 mstpcrd::Mstpd12,
914 mstpcrd::Mstpd12,
915 Mstpcrd_SPEC,
916 crate::common::RW,
917 >::from_register(self, 0)
918 }
919
920 #[doc = "Port Output Enable for GPT Group B Module Stop"]
921 #[inline(always)]
922 pub fn mstpd13(
923 self,
924 ) -> crate::common::RegisterField<
925 13,
926 0x1,
927 1,
928 0,
929 mstpcrd::Mstpd13,
930 mstpcrd::Mstpd13,
931 Mstpcrd_SPEC,
932 crate::common::RW,
933 > {
934 crate::common::RegisterField::<
935 13,
936 0x1,
937 1,
938 0,
939 mstpcrd::Mstpd13,
940 mstpcrd::Mstpd13,
941 Mstpcrd_SPEC,
942 crate::common::RW,
943 >::from_register(self, 0)
944 }
945
946 #[doc = "Port Output Enable for GPT Group A Module Stop"]
947 #[inline(always)]
948 pub fn mstpd14(
949 self,
950 ) -> crate::common::RegisterField<
951 14,
952 0x1,
953 1,
954 0,
955 mstpcrd::Mstpd14,
956 mstpcrd::Mstpd14,
957 Mstpcrd_SPEC,
958 crate::common::RW,
959 > {
960 crate::common::RegisterField::<
961 14,
962 0x1,
963 1,
964 0,
965 mstpcrd::Mstpd14,
966 mstpcrd::Mstpd14,
967 Mstpcrd_SPEC,
968 crate::common::RW,
969 >::from_register(self, 0)
970 }
971
972 #[doc = "12-bit A/D Converter 0 Module Stop"]
973 #[inline(always)]
974 pub fn mstpd16(
975 self,
976 ) -> crate::common::RegisterField<
977 16,
978 0x1,
979 1,
980 0,
981 mstpcrd::Mstpd16,
982 mstpcrd::Mstpd16,
983 Mstpcrd_SPEC,
984 crate::common::RW,
985 > {
986 crate::common::RegisterField::<
987 16,
988 0x1,
989 1,
990 0,
991 mstpcrd::Mstpd16,
992 mstpcrd::Mstpd16,
993 Mstpcrd_SPEC,
994 crate::common::RW,
995 >::from_register(self, 0)
996 }
997
998 #[doc = "12-bit D/A Converter Module Stop"]
999 #[inline(always)]
1000 pub fn mstpd20(
1001 self,
1002 ) -> crate::common::RegisterField<
1003 20,
1004 0x1,
1005 1,
1006 0,
1007 mstpcrd::Mstpd20,
1008 mstpcrd::Mstpd20,
1009 Mstpcrd_SPEC,
1010 crate::common::RW,
1011 > {
1012 crate::common::RegisterField::<
1013 20,
1014 0x1,
1015 1,
1016 0,
1017 mstpcrd::Mstpd20,
1018 mstpcrd::Mstpd20,
1019 Mstpcrd_SPEC,
1020 crate::common::RW,
1021 >::from_register(self, 0)
1022 }
1023
1024 #[doc = "Temperature Sensor Module Stop"]
1025 #[inline(always)]
1026 pub fn mstpd22(
1027 self,
1028 ) -> crate::common::RegisterField<
1029 22,
1030 0x1,
1031 1,
1032 0,
1033 mstpcrd::Mstpd22,
1034 mstpcrd::Mstpd22,
1035 Mstpcrd_SPEC,
1036 crate::common::RW,
1037 > {
1038 crate::common::RegisterField::<
1039 22,
1040 0x1,
1041 1,
1042 0,
1043 mstpcrd::Mstpd22,
1044 mstpcrd::Mstpd22,
1045 Mstpcrd_SPEC,
1046 crate::common::RW,
1047 >::from_register(self, 0)
1048 }
1049}
1050impl ::core::default::Default for Mstpcrd {
1051 #[inline(always)]
1052 fn default() -> Mstpcrd {
1053 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
1054 }
1055}
1056pub mod mstpcrd {
1057
1058 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1059 pub struct Mstpd2_SPEC;
1060 pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
1061 impl Mstpd2 {
1062 #[doc = "Cancel the module-stop state"]
1063 pub const _0: Self = Self::new(0);
1064
1065 #[doc = "Enter the module-stop state"]
1066 pub const _1: Self = Self::new(1);
1067 }
1068 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1069 pub struct Mstpd3_SPEC;
1070 pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
1071 impl Mstpd3 {
1072 #[doc = "Cancel the module-stop state"]
1073 pub const _0: Self = Self::new(0);
1074
1075 #[doc = "Enter the module-stop state"]
1076 pub const _1: Self = Self::new(1);
1077 }
1078 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1079 pub struct Mstpd11_SPEC;
1080 pub type Mstpd11 = crate::EnumBitfieldStruct<u8, Mstpd11_SPEC>;
1081 impl Mstpd11 {
1082 #[doc = "Cancel the module-stop state"]
1083 pub const _0: Self = Self::new(0);
1084
1085 #[doc = "Enter the module-stop state"]
1086 pub const _1: Self = Self::new(1);
1087 }
1088 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1089 pub struct Mstpd12_SPEC;
1090 pub type Mstpd12 = crate::EnumBitfieldStruct<u8, Mstpd12_SPEC>;
1091 impl Mstpd12 {
1092 #[doc = "Cancel the module-stop state"]
1093 pub const _0: Self = Self::new(0);
1094
1095 #[doc = "Enter the module-stop state"]
1096 pub const _1: Self = Self::new(1);
1097 }
1098 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1099 pub struct Mstpd13_SPEC;
1100 pub type Mstpd13 = crate::EnumBitfieldStruct<u8, Mstpd13_SPEC>;
1101 impl Mstpd13 {
1102 #[doc = "Cancel the module-stop state"]
1103 pub const _0: Self = Self::new(0);
1104
1105 #[doc = "Enter the module-stop state"]
1106 pub const _1: Self = Self::new(1);
1107 }
1108 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1109 pub struct Mstpd14_SPEC;
1110 pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
1111 impl Mstpd14 {
1112 #[doc = "Cancel the module-stop state"]
1113 pub const _0: Self = Self::new(0);
1114
1115 #[doc = "Enter the module-stop state"]
1116 pub const _1: Self = Self::new(1);
1117 }
1118 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1119 pub struct Mstpd16_SPEC;
1120 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
1121 impl Mstpd16 {
1122 #[doc = "Cancel the module-stop state"]
1123 pub const _0: Self = Self::new(0);
1124
1125 #[doc = "Enter the module-stop state"]
1126 pub const _1: Self = Self::new(1);
1127 }
1128 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1129 pub struct Mstpd20_SPEC;
1130 pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
1131 impl Mstpd20 {
1132 #[doc = "Cancel the module-stop state"]
1133 pub const _0: Self = Self::new(0);
1134
1135 #[doc = "Enter the module-stop state"]
1136 pub const _1: Self = Self::new(1);
1137 }
1138 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1139 pub struct Mstpd22_SPEC;
1140 pub type Mstpd22 = crate::EnumBitfieldStruct<u8, Mstpd22_SPEC>;
1141 impl Mstpd22 {
1142 #[doc = "Cancel the module-stop state"]
1143 pub const _0: Self = Self::new(0);
1144
1145 #[doc = "Enter the module-stop state"]
1146 pub const _1: Self = Self::new(1);
1147 }
1148}
1149#[doc(hidden)]
1150#[derive(Copy, Clone, Eq, PartialEq)]
1151pub struct Mstpcre_SPEC;
1152impl crate::sealed::RegSpec for Mstpcre_SPEC {
1153 type DataType = u32;
1154}
1155
1156#[doc = "Module Stop Control Register E"]
1157pub type Mstpcre = crate::RegValueT<Mstpcre_SPEC>;
1158
1159impl Mstpcre {
1160 #[doc = "GPT5 Module Stop"]
1161 #[inline(always)]
1162 pub fn mstpe26(
1163 self,
1164 ) -> crate::common::RegisterField<
1165 26,
1166 0x1,
1167 1,
1168 0,
1169 mstpcre::Mstpe26,
1170 mstpcre::Mstpe26,
1171 Mstpcre_SPEC,
1172 crate::common::RW,
1173 > {
1174 crate::common::RegisterField::<
1175 26,
1176 0x1,
1177 1,
1178 0,
1179 mstpcre::Mstpe26,
1180 mstpcre::Mstpe26,
1181 Mstpcre_SPEC,
1182 crate::common::RW,
1183 >::from_register(self, 0)
1184 }
1185
1186 #[doc = "GPT4 Module Stop"]
1187 #[inline(always)]
1188 pub fn mstpe27(
1189 self,
1190 ) -> crate::common::RegisterField<
1191 27,
1192 0x1,
1193 1,
1194 0,
1195 mstpcre::Mstpe27,
1196 mstpcre::Mstpe27,
1197 Mstpcre_SPEC,
1198 crate::common::RW,
1199 > {
1200 crate::common::RegisterField::<
1201 27,
1202 0x1,
1203 1,
1204 0,
1205 mstpcre::Mstpe27,
1206 mstpcre::Mstpe27,
1207 Mstpcre_SPEC,
1208 crate::common::RW,
1209 >::from_register(self, 0)
1210 }
1211
1212 #[doc = "GPT3 Module Stop"]
1213 #[inline(always)]
1214 pub fn mstpe28(
1215 self,
1216 ) -> crate::common::RegisterField<
1217 28,
1218 0x1,
1219 1,
1220 0,
1221 mstpcre::Mstpe28,
1222 mstpcre::Mstpe28,
1223 Mstpcre_SPEC,
1224 crate::common::RW,
1225 > {
1226 crate::common::RegisterField::<
1227 28,
1228 0x1,
1229 1,
1230 0,
1231 mstpcre::Mstpe28,
1232 mstpcre::Mstpe28,
1233 Mstpcre_SPEC,
1234 crate::common::RW,
1235 >::from_register(self, 0)
1236 }
1237
1238 #[doc = "GPT2 Module Stop"]
1239 #[inline(always)]
1240 pub fn mstpe29(
1241 self,
1242 ) -> crate::common::RegisterField<
1243 29,
1244 0x1,
1245 1,
1246 0,
1247 mstpcre::Mstpe29,
1248 mstpcre::Mstpe29,
1249 Mstpcre_SPEC,
1250 crate::common::RW,
1251 > {
1252 crate::common::RegisterField::<
1253 29,
1254 0x1,
1255 1,
1256 0,
1257 mstpcre::Mstpe29,
1258 mstpcre::Mstpe29,
1259 Mstpcre_SPEC,
1260 crate::common::RW,
1261 >::from_register(self, 0)
1262 }
1263
1264 #[doc = "GPT1 Module Stop"]
1265 #[inline(always)]
1266 pub fn mstpe30(
1267 self,
1268 ) -> crate::common::RegisterField<
1269 30,
1270 0x1,
1271 1,
1272 0,
1273 mstpcre::Mstpe30,
1274 mstpcre::Mstpe30,
1275 Mstpcre_SPEC,
1276 crate::common::RW,
1277 > {
1278 crate::common::RegisterField::<
1279 30,
1280 0x1,
1281 1,
1282 0,
1283 mstpcre::Mstpe30,
1284 mstpcre::Mstpe30,
1285 Mstpcre_SPEC,
1286 crate::common::RW,
1287 >::from_register(self, 0)
1288 }
1289
1290 #[doc = "GPT0 Module Stop"]
1291 #[inline(always)]
1292 pub fn mstpe31(
1293 self,
1294 ) -> crate::common::RegisterField<
1295 31,
1296 0x1,
1297 1,
1298 0,
1299 mstpcre::Mstpe31,
1300 mstpcre::Mstpe31,
1301 Mstpcre_SPEC,
1302 crate::common::RW,
1303 > {
1304 crate::common::RegisterField::<
1305 31,
1306 0x1,
1307 1,
1308 0,
1309 mstpcre::Mstpe31,
1310 mstpcre::Mstpe31,
1311 Mstpcre_SPEC,
1312 crate::common::RW,
1313 >::from_register(self, 0)
1314 }
1315}
1316impl ::core::default::Default for Mstpcre {
1317 #[inline(always)]
1318 fn default() -> Mstpcre {
1319 <crate::RegValueT<Mstpcre_SPEC> as RegisterValue<_>>::new(4294967295)
1320 }
1321}
1322pub mod mstpcre {
1323
1324 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1325 pub struct Mstpe26_SPEC;
1326 pub type Mstpe26 = crate::EnumBitfieldStruct<u8, Mstpe26_SPEC>;
1327 impl Mstpe26 {
1328 #[doc = "Cancel the module-stop state"]
1329 pub const _0: Self = Self::new(0);
1330
1331 #[doc = "Enter the module-stop state"]
1332 pub const _1: Self = Self::new(1);
1333 }
1334 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1335 pub struct Mstpe27_SPEC;
1336 pub type Mstpe27 = crate::EnumBitfieldStruct<u8, Mstpe27_SPEC>;
1337 impl Mstpe27 {
1338 #[doc = "Cancel the module-stop state"]
1339 pub const _0: Self = Self::new(0);
1340
1341 #[doc = "Enter the module-stop state"]
1342 pub const _1: Self = Self::new(1);
1343 }
1344 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1345 pub struct Mstpe28_SPEC;
1346 pub type Mstpe28 = crate::EnumBitfieldStruct<u8, Mstpe28_SPEC>;
1347 impl Mstpe28 {
1348 #[doc = "Cancel the module-stop state"]
1349 pub const _0: Self = Self::new(0);
1350
1351 #[doc = "Enter the module-stop state"]
1352 pub const _1: Self = Self::new(1);
1353 }
1354 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1355 pub struct Mstpe29_SPEC;
1356 pub type Mstpe29 = crate::EnumBitfieldStruct<u8, Mstpe29_SPEC>;
1357 impl Mstpe29 {
1358 #[doc = "Cancel the module-stop state"]
1359 pub const _0: Self = Self::new(0);
1360
1361 #[doc = "Enter the module-stop state"]
1362 pub const _1: Self = Self::new(1);
1363 }
1364 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1365 pub struct Mstpe30_SPEC;
1366 pub type Mstpe30 = crate::EnumBitfieldStruct<u8, Mstpe30_SPEC>;
1367 impl Mstpe30 {
1368 #[doc = "Cancel the module-stop state"]
1369 pub const _0: Self = Self::new(0);
1370
1371 #[doc = "Enter the module-stop state"]
1372 pub const _1: Self = Self::new(1);
1373 }
1374 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1375 pub struct Mstpe31_SPEC;
1376 pub type Mstpe31 = crate::EnumBitfieldStruct<u8, Mstpe31_SPEC>;
1377 impl Mstpe31 {
1378 #[doc = "Cancel the module-stop state"]
1379 pub const _0: Self = Self::new(0);
1380
1381 #[doc = "Enter the module-stop state"]
1382 pub const _1: Self = Self::new(1);
1383 }
1384}