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 = "Controller Area Network 0 Module Stop"]
237 #[inline(always)]
238 pub fn mstpb2(
239 self,
240 ) -> crate::common::RegisterField<
241 2,
242 0x1,
243 1,
244 0,
245 mstpcrb::Mstpb2,
246 mstpcrb::Mstpb2,
247 Mstpcrb_SPEC,
248 crate::common::RW,
249 > {
250 crate::common::RegisterField::<
251 2,
252 0x1,
253 1,
254 0,
255 mstpcrb::Mstpb2,
256 mstpcrb::Mstpb2,
257 Mstpcrb_SPEC,
258 crate::common::RW,
259 >::from_register(self, 0)
260 }
261
262 #[doc = "Quad Serial Peripheral Interface Module Stop"]
263 #[inline(always)]
264 pub fn mstpb6(
265 self,
266 ) -> crate::common::RegisterField<
267 6,
268 0x1,
269 1,
270 0,
271 mstpcrb::Mstpb6,
272 mstpcrb::Mstpb6,
273 Mstpcrb_SPEC,
274 crate::common::RW,
275 > {
276 crate::common::RegisterField::<
277 6,
278 0x1,
279 1,
280 0,
281 mstpcrb::Mstpb6,
282 mstpcrb::Mstpb6,
283 Mstpcrb_SPEC,
284 crate::common::RW,
285 >::from_register(self, 0)
286 }
287
288 #[doc = "I2C Bus Interface 0 Module Stop"]
289 #[inline(always)]
290 pub fn mstpb9(
291 self,
292 ) -> crate::common::RegisterField<
293 9,
294 0x1,
295 1,
296 0,
297 mstpcrb::Mstpb9,
298 mstpcrb::Mstpb9,
299 Mstpcrb_SPEC,
300 crate::common::RW,
301 > {
302 crate::common::RegisterField::<
303 9,
304 0x1,
305 1,
306 0,
307 mstpcrb::Mstpb9,
308 mstpcrb::Mstpb9,
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 0 Module Stop"]
341 #[inline(always)]
342 pub fn mstpb19(
343 self,
344 ) -> crate::common::RegisterField<
345 19,
346 0x1,
347 1,
348 0,
349 mstpcrb::Mstpb19,
350 mstpcrb::Mstpb19,
351 Mstpcrb_SPEC,
352 crate::common::RW,
353 > {
354 crate::common::RegisterField::<
355 19,
356 0x1,
357 1,
358 0,
359 mstpcrb::Mstpb19,
360 mstpcrb::Mstpb19,
361 Mstpcrb_SPEC,
362 crate::common::RW,
363 >::from_register(self, 0)
364 }
365
366 #[doc = "Serial Communication Interface 9 Module Stop"]
367 #[inline(always)]
368 pub fn mstpb22(
369 self,
370 ) -> crate::common::RegisterField<
371 22,
372 0x1,
373 1,
374 0,
375 mstpcrb::Mstpb22,
376 mstpcrb::Mstpb22,
377 Mstpcrb_SPEC,
378 crate::common::RW,
379 > {
380 crate::common::RegisterField::<
381 22,
382 0x1,
383 1,
384 0,
385 mstpcrb::Mstpb22,
386 mstpcrb::Mstpb22,
387 Mstpcrb_SPEC,
388 crate::common::RW,
389 >::from_register(self, 0)
390 }
391
392 #[doc = "Serial Communication Interface 4 Module Stop"]
393 #[inline(always)]
394 pub fn mstpb27(
395 self,
396 ) -> crate::common::RegisterField<
397 27,
398 0x1,
399 1,
400 0,
401 mstpcrb::Mstpb27,
402 mstpcrb::Mstpb27,
403 Mstpcrb_SPEC,
404 crate::common::RW,
405 > {
406 crate::common::RegisterField::<
407 27,
408 0x1,
409 1,
410 0,
411 mstpcrb::Mstpb27,
412 mstpcrb::Mstpb27,
413 Mstpcrb_SPEC,
414 crate::common::RW,
415 >::from_register(self, 0)
416 }
417
418 #[doc = "Serial Communication Interface 3 Module Stop"]
419 #[inline(always)]
420 pub fn mstpb28(
421 self,
422 ) -> crate::common::RegisterField<
423 28,
424 0x1,
425 1,
426 0,
427 mstpcrb::Mstpb28,
428 mstpcrb::Mstpb28,
429 Mstpcrb_SPEC,
430 crate::common::RW,
431 > {
432 crate::common::RegisterField::<
433 28,
434 0x1,
435 1,
436 0,
437 mstpcrb::Mstpb28,
438 mstpcrb::Mstpb28,
439 Mstpcrb_SPEC,
440 crate::common::RW,
441 >::from_register(self, 0)
442 }
443
444 #[doc = "Serial Communication Interface 0 Module Stop"]
445 #[inline(always)]
446 pub fn mstpb31(
447 self,
448 ) -> crate::common::RegisterField<
449 31,
450 0x1,
451 1,
452 0,
453 mstpcrb::Mstpb31,
454 mstpcrb::Mstpb31,
455 Mstpcrb_SPEC,
456 crate::common::RW,
457 > {
458 crate::common::RegisterField::<
459 31,
460 0x1,
461 1,
462 0,
463 mstpcrb::Mstpb31,
464 mstpcrb::Mstpb31,
465 Mstpcrb_SPEC,
466 crate::common::RW,
467 >::from_register(self, 0)
468 }
469}
470impl ::core::default::Default for Mstpcrb {
471 #[inline(always)]
472 fn default() -> Mstpcrb {
473 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
474 }
475}
476pub mod mstpcrb {
477
478 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
479 pub struct Mstpb2_SPEC;
480 pub type Mstpb2 = crate::EnumBitfieldStruct<u8, Mstpb2_SPEC>;
481 impl Mstpb2 {
482 #[doc = "Cancel the module-stop state"]
483 pub const _0: Self = Self::new(0);
484
485 #[doc = "Enter the module-stop state"]
486 pub const _1: Self = Self::new(1);
487 }
488 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
489 pub struct Mstpb6_SPEC;
490 pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
491 impl Mstpb6 {
492 #[doc = "Cancel the module-stop state"]
493 pub const _0: Self = Self::new(0);
494
495 #[doc = "Enter the module-stop state"]
496 pub const _1: Self = Self::new(1);
497 }
498 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
499 pub struct Mstpb9_SPEC;
500 pub type Mstpb9 = crate::EnumBitfieldStruct<u8, Mstpb9_SPEC>;
501 impl Mstpb9 {
502 #[doc = "Cancel the module-stop state"]
503 pub const _0: Self = Self::new(0);
504
505 #[doc = "Enter the module-stop state"]
506 pub const _1: Self = Self::new(1);
507 }
508 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
509 pub struct Mstpb11_SPEC;
510 pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
511 impl Mstpb11 {
512 #[doc = "Cancel the module-stop state"]
513 pub const _0: Self = Self::new(0);
514
515 #[doc = "Enter the module-stop state"]
516 pub const _1: Self = Self::new(1);
517 }
518 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
519 pub struct Mstpb19_SPEC;
520 pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
521 impl Mstpb19 {
522 #[doc = "Cancel the module-stop state"]
523 pub const _0: Self = Self::new(0);
524
525 #[doc = "Enter the module-stop state"]
526 pub const _1: Self = Self::new(1);
527 }
528 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
529 pub struct Mstpb22_SPEC;
530 pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
531 impl Mstpb22 {
532 #[doc = "Cancel the module-stop state"]
533 pub const _0: Self = Self::new(0);
534
535 #[doc = "Enter the module-stop state"]
536 pub const _1: Self = Self::new(1);
537 }
538 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
539 pub struct Mstpb27_SPEC;
540 pub type Mstpb27 = crate::EnumBitfieldStruct<u8, Mstpb27_SPEC>;
541 impl Mstpb27 {
542 #[doc = "Cancel the module-stop state"]
543 pub const _0: Self = Self::new(0);
544
545 #[doc = "Enter the module-stop state"]
546 pub const _1: Self = Self::new(1);
547 }
548 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
549 pub struct Mstpb28_SPEC;
550 pub type Mstpb28 = crate::EnumBitfieldStruct<u8, Mstpb28_SPEC>;
551 impl Mstpb28 {
552 #[doc = "Cancel the module-stop state"]
553 pub const _0: Self = Self::new(0);
554
555 #[doc = "Enter the module-stop state"]
556 pub const _1: Self = Self::new(1);
557 }
558 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
559 pub struct Mstpb31_SPEC;
560 pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
561 impl Mstpb31 {
562 #[doc = "Cancel the module-stop state"]
563 pub const _0: Self = Self::new(0);
564
565 #[doc = "Enter the module-stop state"]
566 pub const _1: Self = Self::new(1);
567 }
568}
569#[doc(hidden)]
570#[derive(Copy, Clone, Eq, PartialEq)]
571pub struct Mstpcrc_SPEC;
572impl crate::sealed::RegSpec for Mstpcrc_SPEC {
573 type DataType = u32;
574}
575
576#[doc = "Module Stop Control Register C"]
577pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
578
579impl Mstpcrc {
580 #[doc = "Clock Frequency Accuracy Measurement Circuit Module Stop"]
581 #[inline(always)]
582 pub fn mstpc0(
583 self,
584 ) -> crate::common::RegisterField<
585 0,
586 0x1,
587 1,
588 0,
589 mstpcrc::Mstpc0,
590 mstpcrc::Mstpc0,
591 Mstpcrc_SPEC,
592 crate::common::RW,
593 > {
594 crate::common::RegisterField::<
595 0,
596 0x1,
597 1,
598 0,
599 mstpcrc::Mstpc0,
600 mstpcrc::Mstpc0,
601 Mstpcrc_SPEC,
602 crate::common::RW,
603 >::from_register(self, 0)
604 }
605
606 #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
607 #[inline(always)]
608 pub fn mstpc1(
609 self,
610 ) -> crate::common::RegisterField<
611 1,
612 0x1,
613 1,
614 0,
615 mstpcrc::Mstpc1,
616 mstpcrc::Mstpc1,
617 Mstpcrc_SPEC,
618 crate::common::RW,
619 > {
620 crate::common::RegisterField::<
621 1,
622 0x1,
623 1,
624 0,
625 mstpcrc::Mstpc1,
626 mstpcrc::Mstpc1,
627 Mstpcrc_SPEC,
628 crate::common::RW,
629 >::from_register(self, 0)
630 }
631
632 #[doc = "Data Operation Circuit Module Stop"]
633 #[inline(always)]
634 pub fn mstpc13(
635 self,
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 > {
646 crate::common::RegisterField::<
647 13,
648 0x1,
649 1,
650 0,
651 mstpcrc::Mstpc13,
652 mstpcrc::Mstpc13,
653 Mstpcrc_SPEC,
654 crate::common::RW,
655 >::from_register(self, 0)
656 }
657
658 #[doc = "Event Link Controller Module Stop"]
659 #[inline(always)]
660 pub fn mstpc14(
661 self,
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 > {
672 crate::common::RegisterField::<
673 14,
674 0x1,
675 1,
676 0,
677 mstpcrc::Mstpc14,
678 mstpcrc::Mstpc14,
679 Mstpcrc_SPEC,
680 crate::common::RW,
681 >::from_register(self, 0)
682 }
683
684 #[doc = "SCE9 Module Stop"]
685 #[inline(always)]
686 pub fn mstpc31(
687 self,
688 ) -> crate::common::RegisterField<
689 31,
690 0x1,
691 1,
692 0,
693 mstpcrc::Mstpc31,
694 mstpcrc::Mstpc31,
695 Mstpcrc_SPEC,
696 crate::common::RW,
697 > {
698 crate::common::RegisterField::<
699 31,
700 0x1,
701 1,
702 0,
703 mstpcrc::Mstpc31,
704 mstpcrc::Mstpc31,
705 Mstpcrc_SPEC,
706 crate::common::RW,
707 >::from_register(self, 0)
708 }
709}
710impl ::core::default::Default for Mstpcrc {
711 #[inline(always)]
712 fn default() -> Mstpcrc {
713 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
714 }
715}
716pub mod mstpcrc {
717
718 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
719 pub struct Mstpc0_SPEC;
720 pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
721 impl Mstpc0 {
722 #[doc = "Cancel the module-stop state"]
723 pub const _0: Self = Self::new(0);
724
725 #[doc = "Enter the module-stop state"]
726 pub const _1: Self = Self::new(1);
727 }
728 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
729 pub struct Mstpc1_SPEC;
730 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
731 impl Mstpc1 {
732 #[doc = "Cancel the module-stop state"]
733 pub const _0: Self = Self::new(0);
734
735 #[doc = "Enter the module-stop state"]
736 pub const _1: Self = Self::new(1);
737 }
738 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
739 pub struct Mstpc13_SPEC;
740 pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
741 impl Mstpc13 {
742 #[doc = "Cancel the module-stop state"]
743 pub const _0: Self = Self::new(0);
744
745 #[doc = "Enter the module-stop state"]
746 pub const _1: Self = Self::new(1);
747 }
748 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
749 pub struct Mstpc14_SPEC;
750 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
751 impl Mstpc14 {
752 #[doc = "Cancel the module-stop state"]
753 pub const _0: Self = Self::new(0);
754
755 #[doc = "Enter the module-stop state"]
756 pub const _1: Self = Self::new(1);
757 }
758 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
759 pub struct Mstpc31_SPEC;
760 pub type Mstpc31 = crate::EnumBitfieldStruct<u8, Mstpc31_SPEC>;
761 impl Mstpc31 {
762 #[doc = "Cancel the module-stop state"]
763 pub const _0: Self = Self::new(0);
764
765 #[doc = "Enter the module-stop state"]
766 pub const _1: Self = Self::new(1);
767 }
768}
769#[doc(hidden)]
770#[derive(Copy, Clone, Eq, PartialEq)]
771pub struct Mstpcrd_SPEC;
772impl crate::sealed::RegSpec for Mstpcrd_SPEC {
773 type DataType = u32;
774}
775
776#[doc = "Module Stop Control Register D"]
777pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
778
779impl Mstpcrd {
780 #[doc = "Low Power Asynchronous General Purpose Timer 3 Module Stop"]
781 #[inline(always)]
782 pub fn mstpd0(
783 self,
784 ) -> crate::common::RegisterField<
785 0,
786 0x1,
787 1,
788 0,
789 mstpcrd::Mstpd0,
790 mstpcrd::Mstpd0,
791 Mstpcrd_SPEC,
792 crate::common::RW,
793 > {
794 crate::common::RegisterField::<
795 0,
796 0x1,
797 1,
798 0,
799 mstpcrd::Mstpd0,
800 mstpcrd::Mstpd0,
801 Mstpcrd_SPEC,
802 crate::common::RW,
803 >::from_register(self, 0)
804 }
805
806 #[doc = "Low Power Asynchronous General Purpose Timer 2 Module Stop"]
807 #[inline(always)]
808 pub fn mstpd1(
809 self,
810 ) -> crate::common::RegisterField<
811 1,
812 0x1,
813 1,
814 0,
815 mstpcrd::Mstpd1,
816 mstpcrd::Mstpd1,
817 Mstpcrd_SPEC,
818 crate::common::RW,
819 > {
820 crate::common::RegisterField::<
821 1,
822 0x1,
823 1,
824 0,
825 mstpcrd::Mstpd1,
826 mstpcrd::Mstpd1,
827 Mstpcrd_SPEC,
828 crate::common::RW,
829 >::from_register(self, 0)
830 }
831
832 #[doc = "Low Power Asynchronous General Purpose Timer 1 Module Stop"]
833 #[inline(always)]
834 pub fn mstpd2(
835 self,
836 ) -> crate::common::RegisterField<
837 2,
838 0x1,
839 1,
840 0,
841 mstpcrd::Mstpd2,
842 mstpcrd::Mstpd2,
843 Mstpcrd_SPEC,
844 crate::common::RW,
845 > {
846 crate::common::RegisterField::<
847 2,
848 0x1,
849 1,
850 0,
851 mstpcrd::Mstpd2,
852 mstpcrd::Mstpd2,
853 Mstpcrd_SPEC,
854 crate::common::RW,
855 >::from_register(self, 0)
856 }
857
858 #[doc = "Low Power Asynchronous General Purpose Timer 0 Module Stop"]
859 #[inline(always)]
860 pub fn mstpd3(
861 self,
862 ) -> crate::common::RegisterField<
863 3,
864 0x1,
865 1,
866 0,
867 mstpcrd::Mstpd3,
868 mstpcrd::Mstpd3,
869 Mstpcrd_SPEC,
870 crate::common::RW,
871 > {
872 crate::common::RegisterField::<
873 3,
874 0x1,
875 1,
876 0,
877 mstpcrd::Mstpd3,
878 mstpcrd::Mstpd3,
879 Mstpcrd_SPEC,
880 crate::common::RW,
881 >::from_register(self, 0)
882 }
883
884 #[doc = "Port Output Enable for GPT Group D Module Stop"]
885 #[inline(always)]
886 pub fn mstpd11(
887 self,
888 ) -> crate::common::RegisterField<
889 11,
890 0x1,
891 1,
892 0,
893 mstpcrd::Mstpd11,
894 mstpcrd::Mstpd11,
895 Mstpcrd_SPEC,
896 crate::common::RW,
897 > {
898 crate::common::RegisterField::<
899 11,
900 0x1,
901 1,
902 0,
903 mstpcrd::Mstpd11,
904 mstpcrd::Mstpd11,
905 Mstpcrd_SPEC,
906 crate::common::RW,
907 >::from_register(self, 0)
908 }
909
910 #[doc = "Port Output Enable for GPT Group C Module Stop"]
911 #[inline(always)]
912 pub fn mstpd12(
913 self,
914 ) -> crate::common::RegisterField<
915 12,
916 0x1,
917 1,
918 0,
919 mstpcrd::Mstpd12,
920 mstpcrd::Mstpd12,
921 Mstpcrd_SPEC,
922 crate::common::RW,
923 > {
924 crate::common::RegisterField::<
925 12,
926 0x1,
927 1,
928 0,
929 mstpcrd::Mstpd12,
930 mstpcrd::Mstpd12,
931 Mstpcrd_SPEC,
932 crate::common::RW,
933 >::from_register(self, 0)
934 }
935
936 #[doc = "Port Output Enable for GPT Group B Module Stop"]
937 #[inline(always)]
938 pub fn mstpd13(
939 self,
940 ) -> crate::common::RegisterField<
941 13,
942 0x1,
943 1,
944 0,
945 mstpcrd::Mstpd13,
946 mstpcrd::Mstpd13,
947 Mstpcrd_SPEC,
948 crate::common::RW,
949 > {
950 crate::common::RegisterField::<
951 13,
952 0x1,
953 1,
954 0,
955 mstpcrd::Mstpd13,
956 mstpcrd::Mstpd13,
957 Mstpcrd_SPEC,
958 crate::common::RW,
959 >::from_register(self, 0)
960 }
961
962 #[doc = "Port Output Enable for GPT Group A Module Stop"]
963 #[inline(always)]
964 pub fn mstpd14(
965 self,
966 ) -> crate::common::RegisterField<
967 14,
968 0x1,
969 1,
970 0,
971 mstpcrd::Mstpd14,
972 mstpcrd::Mstpd14,
973 Mstpcrd_SPEC,
974 crate::common::RW,
975 > {
976 crate::common::RegisterField::<
977 14,
978 0x1,
979 1,
980 0,
981 mstpcrd::Mstpd14,
982 mstpcrd::Mstpd14,
983 Mstpcrd_SPEC,
984 crate::common::RW,
985 >::from_register(self, 0)
986 }
987
988 #[doc = "12-bit A/D Converter 0 Module Stop"]
989 #[inline(always)]
990 pub fn mstpd16(
991 self,
992 ) -> crate::common::RegisterField<
993 16,
994 0x1,
995 1,
996 0,
997 mstpcrd::Mstpd16,
998 mstpcrd::Mstpd16,
999 Mstpcrd_SPEC,
1000 crate::common::RW,
1001 > {
1002 crate::common::RegisterField::<
1003 16,
1004 0x1,
1005 1,
1006 0,
1007 mstpcrd::Mstpd16,
1008 mstpcrd::Mstpd16,
1009 Mstpcrd_SPEC,
1010 crate::common::RW,
1011 >::from_register(self, 0)
1012 }
1013
1014 #[doc = "12-bit D/A Converter Module Stop"]
1015 #[inline(always)]
1016 pub fn mstpd20(
1017 self,
1018 ) -> crate::common::RegisterField<
1019 20,
1020 0x1,
1021 1,
1022 0,
1023 mstpcrd::Mstpd20,
1024 mstpcrd::Mstpd20,
1025 Mstpcrd_SPEC,
1026 crate::common::RW,
1027 > {
1028 crate::common::RegisterField::<
1029 20,
1030 0x1,
1031 1,
1032 0,
1033 mstpcrd::Mstpd20,
1034 mstpcrd::Mstpd20,
1035 Mstpcrd_SPEC,
1036 crate::common::RW,
1037 >::from_register(self, 0)
1038 }
1039}
1040impl ::core::default::Default for Mstpcrd {
1041 #[inline(always)]
1042 fn default() -> Mstpcrd {
1043 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
1044 }
1045}
1046pub mod mstpcrd {
1047
1048 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1049 pub struct Mstpd0_SPEC;
1050 pub type Mstpd0 = crate::EnumBitfieldStruct<u8, Mstpd0_SPEC>;
1051 impl Mstpd0 {
1052 #[doc = "Cancel the module-stop state"]
1053 pub const _0: Self = Self::new(0);
1054
1055 #[doc = "Enter the module-stop state"]
1056 pub const _1: Self = Self::new(1);
1057 }
1058 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1059 pub struct Mstpd1_SPEC;
1060 pub type Mstpd1 = crate::EnumBitfieldStruct<u8, Mstpd1_SPEC>;
1061 impl Mstpd1 {
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 Mstpd2_SPEC;
1070 pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
1071 impl Mstpd2 {
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 Mstpd3_SPEC;
1080 pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
1081 impl Mstpd3 {
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 Mstpd11_SPEC;
1090 pub type Mstpd11 = crate::EnumBitfieldStruct<u8, Mstpd11_SPEC>;
1091 impl Mstpd11 {
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 Mstpd12_SPEC;
1100 pub type Mstpd12 = crate::EnumBitfieldStruct<u8, Mstpd12_SPEC>;
1101 impl Mstpd12 {
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 Mstpd13_SPEC;
1110 pub type Mstpd13 = crate::EnumBitfieldStruct<u8, Mstpd13_SPEC>;
1111 impl Mstpd13 {
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 Mstpd14_SPEC;
1120 pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
1121 impl Mstpd14 {
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 Mstpd16_SPEC;
1130 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
1131 impl Mstpd16 {
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 Mstpd20_SPEC;
1140 pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
1141 impl Mstpd20 {
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 = "Low Power Asynchronous General Purpose Timer 5 Module Stop"]
1161 #[inline(always)]
1162 pub fn mstpe14(
1163 self,
1164 ) -> crate::common::RegisterField<
1165 14,
1166 0x1,
1167 1,
1168 0,
1169 mstpcre::Mstpe14,
1170 mstpcre::Mstpe14,
1171 Mstpcre_SPEC,
1172 crate::common::RW,
1173 > {
1174 crate::common::RegisterField::<
1175 14,
1176 0x1,
1177 1,
1178 0,
1179 mstpcre::Mstpe14,
1180 mstpcre::Mstpe14,
1181 Mstpcre_SPEC,
1182 crate::common::RW,
1183 >::from_register(self, 0)
1184 }
1185
1186 #[doc = "GPT5 Module Stop"]
1187 #[inline(always)]
1188 pub fn mstpe26(
1189 self,
1190 ) -> crate::common::RegisterField<
1191 26,
1192 0x1,
1193 1,
1194 0,
1195 mstpcre::Mstpe26,
1196 mstpcre::Mstpe26,
1197 Mstpcre_SPEC,
1198 crate::common::RW,
1199 > {
1200 crate::common::RegisterField::<
1201 26,
1202 0x1,
1203 1,
1204 0,
1205 mstpcre::Mstpe26,
1206 mstpcre::Mstpe26,
1207 Mstpcre_SPEC,
1208 crate::common::RW,
1209 >::from_register(self, 0)
1210 }
1211
1212 #[doc = "GPT4 Module Stop"]
1213 #[inline(always)]
1214 pub fn mstpe27(
1215 self,
1216 ) -> crate::common::RegisterField<
1217 27,
1218 0x1,
1219 1,
1220 0,
1221 mstpcre::Mstpe27,
1222 mstpcre::Mstpe27,
1223 Mstpcre_SPEC,
1224 crate::common::RW,
1225 > {
1226 crate::common::RegisterField::<
1227 27,
1228 0x1,
1229 1,
1230 0,
1231 mstpcre::Mstpe27,
1232 mstpcre::Mstpe27,
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}
1290impl ::core::default::Default for Mstpcre {
1291 #[inline(always)]
1292 fn default() -> Mstpcre {
1293 <crate::RegValueT<Mstpcre_SPEC> as RegisterValue<_>>::new(4294967295)
1294 }
1295}
1296pub mod mstpcre {
1297
1298 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1299 pub struct Mstpe14_SPEC;
1300 pub type Mstpe14 = crate::EnumBitfieldStruct<u8, Mstpe14_SPEC>;
1301 impl Mstpe14 {
1302 #[doc = "Cancel the module-stop state"]
1303 pub const _0: Self = Self::new(0);
1304
1305 #[doc = "Enter the module-stop state"]
1306 pub const _1: Self = Self::new(1);
1307 }
1308 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1309 pub struct Mstpe26_SPEC;
1310 pub type Mstpe26 = crate::EnumBitfieldStruct<u8, Mstpe26_SPEC>;
1311 impl Mstpe26 {
1312 #[doc = "Cancel the module-stop state"]
1313 pub const _0: Self = Self::new(0);
1314
1315 #[doc = "Enter the module-stop state"]
1316 pub const _1: Self = Self::new(1);
1317 }
1318 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1319 pub struct Mstpe27_SPEC;
1320 pub type Mstpe27 = crate::EnumBitfieldStruct<u8, Mstpe27_SPEC>;
1321 impl Mstpe27 {
1322 #[doc = "Cancel the module-stop state"]
1323 pub const _0: Self = Self::new(0);
1324
1325 #[doc = "Enter the module-stop state"]
1326 pub const _1: Self = Self::new(1);
1327 }
1328 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1329 pub struct Mstpe29_SPEC;
1330 pub type Mstpe29 = crate::EnumBitfieldStruct<u8, Mstpe29_SPEC>;
1331 impl Mstpe29 {
1332 #[doc = "Cancel the module-stop state"]
1333 pub const _0: Self = Self::new(0);
1334
1335 #[doc = "Enter the module-stop state"]
1336 pub const _1: Self = Self::new(1);
1337 }
1338 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1339 pub struct Mstpe30_SPEC;
1340 pub type Mstpe30 = crate::EnumBitfieldStruct<u8, Mstpe30_SPEC>;
1341 impl Mstpe30 {
1342 #[doc = "Cancel the module-stop state"]
1343 pub const _0: Self = Self::new(0);
1344
1345 #[doc = "Enter the module-stop state"]
1346 pub const _1: Self = Self::new(1);
1347 }
1348}