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 = "Universal Serial Bus 2.0 FS Interface 0 Module Stop"]
289 #[inline(always)]
290 pub fn mstpb11(
291 self,
292 ) -> crate::common::RegisterField<
293 11,
294 0x1,
295 1,
296 0,
297 mstpcrb::Mstpb11,
298 mstpcrb::Mstpb11,
299 Mstpcrb_SPEC,
300 crate::common::RW,
301 > {
302 crate::common::RegisterField::<
303 11,
304 0x1,
305 1,
306 0,
307 mstpcrb::Mstpb11,
308 mstpcrb::Mstpb11,
309 Mstpcrb_SPEC,
310 crate::common::RW,
311 >::from_register(self, 0)
312 }
313
314 #[doc = "Serial Peripheral Interface 1 Module Stop"]
315 #[inline(always)]
316 pub fn mstpb18(
317 self,
318 ) -> crate::common::RegisterField<
319 18,
320 0x1,
321 1,
322 0,
323 mstpcrb::Mstpb18,
324 mstpcrb::Mstpb18,
325 Mstpcrb_SPEC,
326 crate::common::RW,
327 > {
328 crate::common::RegisterField::<
329 18,
330 0x1,
331 1,
332 0,
333 mstpcrb::Mstpb18,
334 mstpcrb::Mstpb18,
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 0 Module Stop"]
393 #[inline(always)]
394 pub fn mstpb31(
395 self,
396 ) -> crate::common::RegisterField<
397 31,
398 0x1,
399 1,
400 0,
401 mstpcrb::Mstpb31,
402 mstpcrb::Mstpb31,
403 Mstpcrb_SPEC,
404 crate::common::RW,
405 > {
406 crate::common::RegisterField::<
407 31,
408 0x1,
409 1,
410 0,
411 mstpcrb::Mstpb31,
412 mstpcrb::Mstpb31,
413 Mstpcrb_SPEC,
414 crate::common::RW,
415 >::from_register(self, 0)
416 }
417}
418impl ::core::default::Default for Mstpcrb {
419 #[inline(always)]
420 fn default() -> Mstpcrb {
421 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
422 }
423}
424pub mod mstpcrb {
425
426 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
427 pub struct Mstpb3_SPEC;
428 pub type Mstpb3 = crate::EnumBitfieldStruct<u8, Mstpb3_SPEC>;
429 impl Mstpb3 {
430 #[doc = "Cancel the module-stop state"]
431 pub const _0: Self = Self::new(0);
432
433 #[doc = "Enter the module-stop state"]
434 pub const _1: Self = Self::new(1);
435 }
436 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
437 pub struct Mstpb4_SPEC;
438 pub type Mstpb4 = crate::EnumBitfieldStruct<u8, Mstpb4_SPEC>;
439 impl Mstpb4 {
440 #[doc = "Cancel the module-stop state"]
441 pub const _0: Self = Self::new(0);
442
443 #[doc = "Enter the module-stop state"]
444 pub const _1: Self = Self::new(1);
445 }
446 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
447 pub struct Mstpb11_SPEC;
448 pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
449 impl Mstpb11 {
450 #[doc = "Cancel the module-stop state"]
451 pub const _0: Self = Self::new(0);
452
453 #[doc = "Enter the module-stop state"]
454 pub const _1: Self = Self::new(1);
455 }
456 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
457 pub struct Mstpb18_SPEC;
458 pub type Mstpb18 = crate::EnumBitfieldStruct<u8, Mstpb18_SPEC>;
459 impl Mstpb18 {
460 #[doc = "Cancel the module-stop state"]
461 pub const _0: Self = Self::new(0);
462
463 #[doc = "Enter the module-stop state"]
464 pub const _1: Self = Self::new(1);
465 }
466 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
467 pub struct Mstpb19_SPEC;
468 pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
469 impl Mstpb19 {
470 #[doc = "Cancel the module-stop state"]
471 pub const _0: Self = Self::new(0);
472
473 #[doc = "Enter the module-stop state"]
474 pub const _1: Self = Self::new(1);
475 }
476 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
477 pub struct Mstpb22_SPEC;
478 pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
479 impl Mstpb22 {
480 #[doc = "Cancel the module-stop state"]
481 pub const _0: Self = Self::new(0);
482
483 #[doc = "Enter the module-stop state"]
484 pub const _1: Self = Self::new(1);
485 }
486 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
487 pub struct Mstpb31_SPEC;
488 pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
489 impl Mstpb31 {
490 #[doc = "Cancel the module-stop state"]
491 pub const _0: Self = Self::new(0);
492
493 #[doc = "Enter the module-stop state"]
494 pub const _1: Self = Self::new(1);
495 }
496}
497#[doc(hidden)]
498#[derive(Copy, Clone, Eq, PartialEq)]
499pub struct Mstpcrc_SPEC;
500impl crate::sealed::RegSpec for Mstpcrc_SPEC {
501 type DataType = u32;
502}
503
504#[doc = "Module Stop Control Register C"]
505pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
506
507impl Mstpcrc {
508 #[doc = "Clock Frequency Accuracy Measurement Circuit Module Stop"]
509 #[inline(always)]
510 pub fn mstpc0(
511 self,
512 ) -> crate::common::RegisterField<
513 0,
514 0x1,
515 1,
516 0,
517 mstpcrc::Mstpc0,
518 mstpcrc::Mstpc0,
519 Mstpcrc_SPEC,
520 crate::common::RW,
521 > {
522 crate::common::RegisterField::<
523 0,
524 0x1,
525 1,
526 0,
527 mstpcrc::Mstpc0,
528 mstpcrc::Mstpc0,
529 Mstpcrc_SPEC,
530 crate::common::RW,
531 >::from_register(self, 0)
532 }
533
534 #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
535 #[inline(always)]
536 pub fn mstpc1(
537 self,
538 ) -> crate::common::RegisterField<
539 1,
540 0x1,
541 1,
542 0,
543 mstpcrc::Mstpc1,
544 mstpcrc::Mstpc1,
545 Mstpcrc_SPEC,
546 crate::common::RW,
547 > {
548 crate::common::RegisterField::<
549 1,
550 0x1,
551 1,
552 0,
553 mstpcrc::Mstpc1,
554 mstpcrc::Mstpc1,
555 Mstpcrc_SPEC,
556 crate::common::RW,
557 >::from_register(self, 0)
558 }
559
560 #[doc = "Serial Sound Interface Enhanced Module Stop"]
561 #[inline(always)]
562 pub fn mstpc8(
563 self,
564 ) -> crate::common::RegisterField<
565 8,
566 0x1,
567 1,
568 0,
569 mstpcrc::Mstpc8,
570 mstpcrc::Mstpc8,
571 Mstpcrc_SPEC,
572 crate::common::RW,
573 > {
574 crate::common::RegisterField::<
575 8,
576 0x1,
577 1,
578 0,
579 mstpcrc::Mstpc8,
580 mstpcrc::Mstpc8,
581 Mstpcrc_SPEC,
582 crate::common::RW,
583 >::from_register(self, 0)
584 }
585
586 #[doc = "Data Operation Circuit Module Stop"]
587 #[inline(always)]
588 pub fn mstpc13(
589 self,
590 ) -> crate::common::RegisterField<
591 13,
592 0x1,
593 1,
594 0,
595 mstpcrc::Mstpc13,
596 mstpcrc::Mstpc13,
597 Mstpcrc_SPEC,
598 crate::common::RW,
599 > {
600 crate::common::RegisterField::<
601 13,
602 0x1,
603 1,
604 0,
605 mstpcrc::Mstpc13,
606 mstpcrc::Mstpc13,
607 Mstpcrc_SPEC,
608 crate::common::RW,
609 >::from_register(self, 0)
610 }
611
612 #[doc = "Event Link Controller Module Stop"]
613 #[inline(always)]
614 pub fn mstpc14(
615 self,
616 ) -> crate::common::RegisterField<
617 14,
618 0x1,
619 1,
620 0,
621 mstpcrc::Mstpc14,
622 mstpcrc::Mstpc14,
623 Mstpcrc_SPEC,
624 crate::common::RW,
625 > {
626 crate::common::RegisterField::<
627 14,
628 0x1,
629 1,
630 0,
631 mstpcrc::Mstpc14,
632 mstpcrc::Mstpc14,
633 Mstpcrc_SPEC,
634 crate::common::RW,
635 >::from_register(self, 0)
636 }
637
638 #[doc = "CANFD Module Stop"]
639 #[inline(always)]
640 pub fn mstpc27(
641 self,
642 ) -> crate::common::RegisterField<
643 27,
644 0x1,
645 1,
646 0,
647 mstpcrc::Mstpc27,
648 mstpcrc::Mstpc27,
649 Mstpcrc_SPEC,
650 crate::common::RW,
651 > {
652 crate::common::RegisterField::<
653 27,
654 0x1,
655 1,
656 0,
657 mstpcrc::Mstpc27,
658 mstpcrc::Mstpc27,
659 Mstpcrc_SPEC,
660 crate::common::RW,
661 >::from_register(self, 0)
662 }
663
664 #[doc = "Random Number Generator Module Stop"]
665 #[inline(always)]
666 pub fn mstpc28(
667 self,
668 ) -> crate::common::RegisterField<
669 28,
670 0x1,
671 1,
672 0,
673 mstpcrc::Mstpc28,
674 mstpcrc::Mstpc28,
675 Mstpcrc_SPEC,
676 crate::common::RW,
677 > {
678 crate::common::RegisterField::<
679 28,
680 0x1,
681 1,
682 0,
683 mstpcrc::Mstpc28,
684 mstpcrc::Mstpc28,
685 Mstpcrc_SPEC,
686 crate::common::RW,
687 >::from_register(self, 0)
688 }
689}
690impl ::core::default::Default for Mstpcrc {
691 #[inline(always)]
692 fn default() -> Mstpcrc {
693 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
694 }
695}
696pub mod mstpcrc {
697
698 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
699 pub struct Mstpc0_SPEC;
700 pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
701 impl Mstpc0 {
702 #[doc = "Cancel the module-stop state"]
703 pub const _0: Self = Self::new(0);
704
705 #[doc = "Enter the module-stop state"]
706 pub const _1: Self = Self::new(1);
707 }
708 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
709 pub struct Mstpc1_SPEC;
710 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
711 impl Mstpc1 {
712 #[doc = "Cancel the module-stop state"]
713 pub const _0: Self = Self::new(0);
714
715 #[doc = "Enter the module-stop state"]
716 pub const _1: Self = Self::new(1);
717 }
718 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
719 pub struct Mstpc8_SPEC;
720 pub type Mstpc8 = crate::EnumBitfieldStruct<u8, Mstpc8_SPEC>;
721 impl Mstpc8 {
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 Mstpc13_SPEC;
730 pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
731 impl Mstpc13 {
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 Mstpc14_SPEC;
740 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
741 impl Mstpc14 {
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 Mstpc27_SPEC;
750 pub type Mstpc27 = crate::EnumBitfieldStruct<u8, Mstpc27_SPEC>;
751 impl Mstpc27 {
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 Mstpc28_SPEC;
760 pub type Mstpc28 = crate::EnumBitfieldStruct<u8, Mstpc28_SPEC>;
761 impl Mstpc28 {
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 1 Module Stop"]
781 #[inline(always)]
782 pub fn mstpd2(
783 self,
784 ) -> crate::common::RegisterField<
785 2,
786 0x1,
787 1,
788 0,
789 mstpcrd::Mstpd2,
790 mstpcrd::Mstpd2,
791 Mstpcrd_SPEC,
792 crate::common::RW,
793 > {
794 crate::common::RegisterField::<
795 2,
796 0x1,
797 1,
798 0,
799 mstpcrd::Mstpd2,
800 mstpcrd::Mstpd2,
801 Mstpcrd_SPEC,
802 crate::common::RW,
803 >::from_register(self, 0)
804 }
805
806 #[doc = "Low Power Asynchronous General Purpose Timer 0 Module Stop"]
807 #[inline(always)]
808 pub fn mstpd3(
809 self,
810 ) -> crate::common::RegisterField<
811 3,
812 0x1,
813 1,
814 0,
815 mstpcrd::Mstpd3,
816 mstpcrd::Mstpd3,
817 Mstpcrd_SPEC,
818 crate::common::RW,
819 > {
820 crate::common::RegisterField::<
821 3,
822 0x1,
823 1,
824 0,
825 mstpcrd::Mstpd3,
826 mstpcrd::Mstpd3,
827 Mstpcrd_SPEC,
828 crate::common::RW,
829 >::from_register(self, 0)
830 }
831
832 #[doc = "Port Output Enable for GPT Group D Module Stop"]
833 #[inline(always)]
834 pub fn mstpd11(
835 self,
836 ) -> crate::common::RegisterField<
837 11,
838 0x1,
839 1,
840 0,
841 mstpcrd::Mstpd11,
842 mstpcrd::Mstpd11,
843 Mstpcrd_SPEC,
844 crate::common::RW,
845 > {
846 crate::common::RegisterField::<
847 11,
848 0x1,
849 1,
850 0,
851 mstpcrd::Mstpd11,
852 mstpcrd::Mstpd11,
853 Mstpcrd_SPEC,
854 crate::common::RW,
855 >::from_register(self, 0)
856 }
857
858 #[doc = "Port Output Enable for GPT Group C Module Stop"]
859 #[inline(always)]
860 pub fn mstpd12(
861 self,
862 ) -> crate::common::RegisterField<
863 12,
864 0x1,
865 1,
866 0,
867 mstpcrd::Mstpd12,
868 mstpcrd::Mstpd12,
869 Mstpcrd_SPEC,
870 crate::common::RW,
871 > {
872 crate::common::RegisterField::<
873 12,
874 0x1,
875 1,
876 0,
877 mstpcrd::Mstpd12,
878 mstpcrd::Mstpd12,
879 Mstpcrd_SPEC,
880 crate::common::RW,
881 >::from_register(self, 0)
882 }
883
884 #[doc = "Port Output Enable for GPT Group B Module Stop"]
885 #[inline(always)]
886 pub fn mstpd13(
887 self,
888 ) -> crate::common::RegisterField<
889 13,
890 0x1,
891 1,
892 0,
893 mstpcrd::Mstpd13,
894 mstpcrd::Mstpd13,
895 Mstpcrd_SPEC,
896 crate::common::RW,
897 > {
898 crate::common::RegisterField::<
899 13,
900 0x1,
901 1,
902 0,
903 mstpcrd::Mstpd13,
904 mstpcrd::Mstpd13,
905 Mstpcrd_SPEC,
906 crate::common::RW,
907 >::from_register(self, 0)
908 }
909
910 #[doc = "Port Output Enable for GPT Group A Module Stop"]
911 #[inline(always)]
912 pub fn mstpd14(
913 self,
914 ) -> crate::common::RegisterField<
915 14,
916 0x1,
917 1,
918 0,
919 mstpcrd::Mstpd14,
920 mstpcrd::Mstpd14,
921 Mstpcrd_SPEC,
922 crate::common::RW,
923 > {
924 crate::common::RegisterField::<
925 14,
926 0x1,
927 1,
928 0,
929 mstpcrd::Mstpd14,
930 mstpcrd::Mstpd14,
931 Mstpcrd_SPEC,
932 crate::common::RW,
933 >::from_register(self, 0)
934 }
935
936 #[doc = "12-bit A/D Converter 0 Module Stop"]
937 #[inline(always)]
938 pub fn mstpd16(
939 self,
940 ) -> crate::common::RegisterField<
941 16,
942 0x1,
943 1,
944 0,
945 mstpcrd::Mstpd16,
946 mstpcrd::Mstpd16,
947 Mstpcrd_SPEC,
948 crate::common::RW,
949 > {
950 crate::common::RegisterField::<
951 16,
952 0x1,
953 1,
954 0,
955 mstpcrd::Mstpd16,
956 mstpcrd::Mstpd16,
957 Mstpcrd_SPEC,
958 crate::common::RW,
959 >::from_register(self, 0)
960 }
961
962 #[doc = "12-bit D/A Converter Module Stop"]
963 #[inline(always)]
964 pub fn mstpd20(
965 self,
966 ) -> crate::common::RegisterField<
967 20,
968 0x1,
969 1,
970 0,
971 mstpcrd::Mstpd20,
972 mstpcrd::Mstpd20,
973 Mstpcrd_SPEC,
974 crate::common::RW,
975 > {
976 crate::common::RegisterField::<
977 20,
978 0x1,
979 1,
980 0,
981 mstpcrd::Mstpd20,
982 mstpcrd::Mstpd20,
983 Mstpcrd_SPEC,
984 crate::common::RW,
985 >::from_register(self, 0)
986 }
987
988 #[doc = "Temperature Sensor Module Stop"]
989 #[inline(always)]
990 pub fn mstpd22(
991 self,
992 ) -> crate::common::RegisterField<
993 22,
994 0x1,
995 1,
996 0,
997 mstpcrd::Mstpd22,
998 mstpcrd::Mstpd22,
999 Mstpcrd_SPEC,
1000 crate::common::RW,
1001 > {
1002 crate::common::RegisterField::<
1003 22,
1004 0x1,
1005 1,
1006 0,
1007 mstpcrd::Mstpd22,
1008 mstpcrd::Mstpd22,
1009 Mstpcrd_SPEC,
1010 crate::common::RW,
1011 >::from_register(self, 0)
1012 }
1013}
1014impl ::core::default::Default for Mstpcrd {
1015 #[inline(always)]
1016 fn default() -> Mstpcrd {
1017 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
1018 }
1019}
1020pub mod mstpcrd {
1021
1022 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1023 pub struct Mstpd2_SPEC;
1024 pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
1025 impl Mstpd2 {
1026 #[doc = "Cancel the module-stop state"]
1027 pub const _0: Self = Self::new(0);
1028
1029 #[doc = "Enter the module-stop state"]
1030 pub const _1: Self = Self::new(1);
1031 }
1032 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1033 pub struct Mstpd3_SPEC;
1034 pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
1035 impl Mstpd3 {
1036 #[doc = "Cancel the module-stop state"]
1037 pub const _0: Self = Self::new(0);
1038
1039 #[doc = "Enter the module-stop state"]
1040 pub const _1: Self = Self::new(1);
1041 }
1042 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1043 pub struct Mstpd11_SPEC;
1044 pub type Mstpd11 = crate::EnumBitfieldStruct<u8, Mstpd11_SPEC>;
1045 impl Mstpd11 {
1046 #[doc = "Cancel the module-stop state"]
1047 pub const _0: Self = Self::new(0);
1048
1049 #[doc = "Enter the module-stop state"]
1050 pub const _1: Self = Self::new(1);
1051 }
1052 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1053 pub struct Mstpd12_SPEC;
1054 pub type Mstpd12 = crate::EnumBitfieldStruct<u8, Mstpd12_SPEC>;
1055 impl Mstpd12 {
1056 #[doc = "Cancel the module-stop state"]
1057 pub const _0: Self = Self::new(0);
1058
1059 #[doc = "Enter the module-stop state"]
1060 pub const _1: Self = Self::new(1);
1061 }
1062 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1063 pub struct Mstpd13_SPEC;
1064 pub type Mstpd13 = crate::EnumBitfieldStruct<u8, Mstpd13_SPEC>;
1065 impl Mstpd13 {
1066 #[doc = "Cancel the module-stop state"]
1067 pub const _0: Self = Self::new(0);
1068
1069 #[doc = "Enter the module-stop state"]
1070 pub const _1: Self = Self::new(1);
1071 }
1072 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1073 pub struct Mstpd14_SPEC;
1074 pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
1075 impl Mstpd14 {
1076 #[doc = "Cancel the module-stop state"]
1077 pub const _0: Self = Self::new(0);
1078
1079 #[doc = "Enter the module-stop state"]
1080 pub const _1: Self = Self::new(1);
1081 }
1082 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1083 pub struct Mstpd16_SPEC;
1084 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
1085 impl Mstpd16 {
1086 #[doc = "Cancel the module-stop state"]
1087 pub const _0: Self = Self::new(0);
1088
1089 #[doc = "Enter the module-stop state"]
1090 pub const _1: Self = Self::new(1);
1091 }
1092 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1093 pub struct Mstpd20_SPEC;
1094 pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
1095 impl Mstpd20 {
1096 #[doc = "Cancel the module-stop state"]
1097 pub const _0: Self = Self::new(0);
1098
1099 #[doc = "Enter the module-stop state"]
1100 pub const _1: Self = Self::new(1);
1101 }
1102 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1103 pub struct Mstpd22_SPEC;
1104 pub type Mstpd22 = crate::EnumBitfieldStruct<u8, Mstpd22_SPEC>;
1105 impl Mstpd22 {
1106 #[doc = "Cancel the module-stop state"]
1107 pub const _0: Self = Self::new(0);
1108
1109 #[doc = "Enter the module-stop state"]
1110 pub const _1: Self = Self::new(1);
1111 }
1112}
1113#[doc(hidden)]
1114#[derive(Copy, Clone, Eq, PartialEq)]
1115pub struct Mstpcre_SPEC;
1116impl crate::sealed::RegSpec for Mstpcre_SPEC {
1117 type DataType = u32;
1118}
1119
1120#[doc = "Module Stop Control Register E"]
1121pub type Mstpcre = crate::RegValueT<Mstpcre_SPEC>;
1122
1123impl Mstpcre {
1124 #[doc = "GPT5 Module Stop"]
1125 #[inline(always)]
1126 pub fn mstpe26(
1127 self,
1128 ) -> crate::common::RegisterField<
1129 26,
1130 0x1,
1131 1,
1132 0,
1133 mstpcre::Mstpe26,
1134 mstpcre::Mstpe26,
1135 Mstpcre_SPEC,
1136 crate::common::RW,
1137 > {
1138 crate::common::RegisterField::<
1139 26,
1140 0x1,
1141 1,
1142 0,
1143 mstpcre::Mstpe26,
1144 mstpcre::Mstpe26,
1145 Mstpcre_SPEC,
1146 crate::common::RW,
1147 >::from_register(self, 0)
1148 }
1149
1150 #[doc = "GPT4 Module Stop"]
1151 #[inline(always)]
1152 pub fn mstpe27(
1153 self,
1154 ) -> crate::common::RegisterField<
1155 27,
1156 0x1,
1157 1,
1158 0,
1159 mstpcre::Mstpe27,
1160 mstpcre::Mstpe27,
1161 Mstpcre_SPEC,
1162 crate::common::RW,
1163 > {
1164 crate::common::RegisterField::<
1165 27,
1166 0x1,
1167 1,
1168 0,
1169 mstpcre::Mstpe27,
1170 mstpcre::Mstpe27,
1171 Mstpcre_SPEC,
1172 crate::common::RW,
1173 >::from_register(self, 0)
1174 }
1175
1176 #[doc = "GPT1 Module Stop"]
1177 #[inline(always)]
1178 pub fn mstpe30(
1179 self,
1180 ) -> crate::common::RegisterField<
1181 30,
1182 0x1,
1183 1,
1184 0,
1185 mstpcre::Mstpe30,
1186 mstpcre::Mstpe30,
1187 Mstpcre_SPEC,
1188 crate::common::RW,
1189 > {
1190 crate::common::RegisterField::<
1191 30,
1192 0x1,
1193 1,
1194 0,
1195 mstpcre::Mstpe30,
1196 mstpcre::Mstpe30,
1197 Mstpcre_SPEC,
1198 crate::common::RW,
1199 >::from_register(self, 0)
1200 }
1201
1202 #[doc = "GPT0 Module Stop"]
1203 #[inline(always)]
1204 pub fn mstpe31(
1205 self,
1206 ) -> crate::common::RegisterField<
1207 31,
1208 0x1,
1209 1,
1210 0,
1211 mstpcre::Mstpe31,
1212 mstpcre::Mstpe31,
1213 Mstpcre_SPEC,
1214 crate::common::RW,
1215 > {
1216 crate::common::RegisterField::<
1217 31,
1218 0x1,
1219 1,
1220 0,
1221 mstpcre::Mstpe31,
1222 mstpcre::Mstpe31,
1223 Mstpcre_SPEC,
1224 crate::common::RW,
1225 >::from_register(self, 0)
1226 }
1227}
1228impl ::core::default::Default for Mstpcre {
1229 #[inline(always)]
1230 fn default() -> Mstpcre {
1231 <crate::RegValueT<Mstpcre_SPEC> as RegisterValue<_>>::new(4294967295)
1232 }
1233}
1234pub mod mstpcre {
1235
1236 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1237 pub struct Mstpe26_SPEC;
1238 pub type Mstpe26 = crate::EnumBitfieldStruct<u8, Mstpe26_SPEC>;
1239 impl Mstpe26 {
1240 #[doc = "Cancel the module-stop state"]
1241 pub const _0: Self = Self::new(0);
1242
1243 #[doc = "Enter the module-stop state"]
1244 pub const _1: Self = Self::new(1);
1245 }
1246 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1247 pub struct Mstpe27_SPEC;
1248 pub type Mstpe27 = crate::EnumBitfieldStruct<u8, Mstpe27_SPEC>;
1249 impl Mstpe27 {
1250 #[doc = "Cancel the module-stop state"]
1251 pub const _0: Self = Self::new(0);
1252
1253 #[doc = "Enter the module-stop state"]
1254 pub const _1: Self = Self::new(1);
1255 }
1256 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1257 pub struct Mstpe30_SPEC;
1258 pub type Mstpe30 = crate::EnumBitfieldStruct<u8, Mstpe30_SPEC>;
1259 impl Mstpe30 {
1260 #[doc = "Cancel the module-stop state"]
1261 pub const _0: Self = Self::new(0);
1262
1263 #[doc = "Enter the module-stop state"]
1264 pub const _1: Self = Self::new(1);
1265 }
1266 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1267 pub struct Mstpe31_SPEC;
1268 pub type Mstpe31 = crate::EnumBitfieldStruct<u8, Mstpe31_SPEC>;
1269 impl Mstpe31 {
1270 #[doc = "Cancel the module-stop state"]
1271 pub const _0: Self = Self::new(0);
1272
1273 #[doc = "Enter the module-stop state"]
1274 pub const _1: Self = Self::new(1);
1275 }
1276}