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 B,C,D"]
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 B"]
38 #[inline(always)]
39 pub const fn mstpcrb(
40 &self,
41 ) -> &'static crate::common::Reg<self::Mstpcrb_SPEC, crate::common::RW> {
42 unsafe {
43 crate::common::Reg::<self::Mstpcrb_SPEC, crate::common::RW>::from_ptr(
44 self._svd2pac_as_ptr().add(0usize),
45 )
46 }
47 }
48
49 #[doc = "Module Stop Control Register C"]
50 #[inline(always)]
51 pub const fn mstpcrc(
52 &self,
53 ) -> &'static crate::common::Reg<self::Mstpcrc_SPEC, crate::common::RW> {
54 unsafe {
55 crate::common::Reg::<self::Mstpcrc_SPEC, crate::common::RW>::from_ptr(
56 self._svd2pac_as_ptr().add(4usize),
57 )
58 }
59 }
60
61 #[doc = "Module Stop Control Register D"]
62 #[inline(always)]
63 pub const fn mstpcrd(
64 &self,
65 ) -> &'static crate::common::Reg<self::Mstpcrd_SPEC, crate::common::RW> {
66 unsafe {
67 crate::common::Reg::<self::Mstpcrd_SPEC, crate::common::RW>::from_ptr(
68 self._svd2pac_as_ptr().add(8usize),
69 )
70 }
71 }
72}
73#[doc(hidden)]
74#[derive(Copy, Clone, Eq, PartialEq)]
75pub struct Mstpcrb_SPEC;
76impl crate::sealed::RegSpec for Mstpcrb_SPEC {
77 type DataType = u32;
78}
79
80#[doc = "Module Stop Control Register B"]
81pub type Mstpcrb = crate::RegValueT<Mstpcrb_SPEC>;
82
83impl Mstpcrb {
84 #[doc = "Serial Communication Interface 0 Module Stop"]
85 #[inline(always)]
86 pub fn mstpb31(
87 self,
88 ) -> crate::common::RegisterField<
89 31,
90 0x1,
91 1,
92 0,
93 mstpcrb::Mstpb31,
94 mstpcrb::Mstpb31,
95 Mstpcrb_SPEC,
96 crate::common::RW,
97 > {
98 crate::common::RegisterField::<
99 31,
100 0x1,
101 1,
102 0,
103 mstpcrb::Mstpb31,
104 mstpcrb::Mstpb31,
105 Mstpcrb_SPEC,
106 crate::common::RW,
107 >::from_register(self, 0)
108 }
109
110 #[doc = "Serial Communication Interface 1 Module Stop"]
111 #[inline(always)]
112 pub fn mstpb30(
113 self,
114 ) -> crate::common::RegisterField<
115 30,
116 0x1,
117 1,
118 0,
119 mstpcrb::Mstpb30,
120 mstpcrb::Mstpb30,
121 Mstpcrb_SPEC,
122 crate::common::RW,
123 > {
124 crate::common::RegisterField::<
125 30,
126 0x1,
127 1,
128 0,
129 mstpcrb::Mstpb30,
130 mstpcrb::Mstpb30,
131 Mstpcrb_SPEC,
132 crate::common::RW,
133 >::from_register(self, 0)
134 }
135
136 #[doc = "Serial Communication Interface 2 Module Stop"]
137 #[inline(always)]
138 pub fn mstpb29(
139 self,
140 ) -> crate::common::RegisterField<
141 29,
142 0x1,
143 1,
144 0,
145 mstpcrb::Mstpb29,
146 mstpcrb::Mstpb29,
147 Mstpcrb_SPEC,
148 crate::common::RW,
149 > {
150 crate::common::RegisterField::<
151 29,
152 0x1,
153 1,
154 0,
155 mstpcrb::Mstpb29,
156 mstpcrb::Mstpb29,
157 Mstpcrb_SPEC,
158 crate::common::RW,
159 >::from_register(self, 0)
160 }
161
162 #[doc = "Serial Communication Interface 3 Module Stop"]
163 #[inline(always)]
164 pub fn mstpb28(
165 self,
166 ) -> crate::common::RegisterField<
167 28,
168 0x1,
169 1,
170 0,
171 mstpcrb::Mstpb28,
172 mstpcrb::Mstpb28,
173 Mstpcrb_SPEC,
174 crate::common::RW,
175 > {
176 crate::common::RegisterField::<
177 28,
178 0x1,
179 1,
180 0,
181 mstpcrb::Mstpb28,
182 mstpcrb::Mstpb28,
183 Mstpcrb_SPEC,
184 crate::common::RW,
185 >::from_register(self, 0)
186 }
187
188 #[doc = "Serial Communication Interface 4 Module Stop"]
189 #[inline(always)]
190 pub fn mstpb27(
191 self,
192 ) -> crate::common::RegisterField<
193 27,
194 0x1,
195 1,
196 0,
197 mstpcrb::Mstpb27,
198 mstpcrb::Mstpb27,
199 Mstpcrb_SPEC,
200 crate::common::RW,
201 > {
202 crate::common::RegisterField::<
203 27,
204 0x1,
205 1,
206 0,
207 mstpcrb::Mstpb27,
208 mstpcrb::Mstpb27,
209 Mstpcrb_SPEC,
210 crate::common::RW,
211 >::from_register(self, 0)
212 }
213
214 #[doc = "Serial Communication Interface 5 Module Stop"]
215 #[inline(always)]
216 pub fn mstpb26(
217 self,
218 ) -> crate::common::RegisterField<
219 26,
220 0x1,
221 1,
222 0,
223 mstpcrb::Mstpb26,
224 mstpcrb::Mstpb26,
225 Mstpcrb_SPEC,
226 crate::common::RW,
227 > {
228 crate::common::RegisterField::<
229 26,
230 0x1,
231 1,
232 0,
233 mstpcrb::Mstpb26,
234 mstpcrb::Mstpb26,
235 Mstpcrb_SPEC,
236 crate::common::RW,
237 >::from_register(self, 0)
238 }
239
240 #[doc = "Serial Communication Interface 6 Module Stop"]
241 #[inline(always)]
242 pub fn mstpb25(
243 self,
244 ) -> crate::common::RegisterField<
245 25,
246 0x1,
247 1,
248 0,
249 mstpcrb::Mstpb25,
250 mstpcrb::Mstpb25,
251 Mstpcrb_SPEC,
252 crate::common::RW,
253 > {
254 crate::common::RegisterField::<
255 25,
256 0x1,
257 1,
258 0,
259 mstpcrb::Mstpb25,
260 mstpcrb::Mstpb25,
261 Mstpcrb_SPEC,
262 crate::common::RW,
263 >::from_register(self, 0)
264 }
265
266 #[doc = "Serial Communication Interface 7 Module Stop"]
267 #[inline(always)]
268 pub fn mstpb24(
269 self,
270 ) -> crate::common::RegisterField<
271 24,
272 0x1,
273 1,
274 0,
275 mstpcrb::Mstpb24,
276 mstpcrb::Mstpb24,
277 Mstpcrb_SPEC,
278 crate::common::RW,
279 > {
280 crate::common::RegisterField::<
281 24,
282 0x1,
283 1,
284 0,
285 mstpcrb::Mstpb24,
286 mstpcrb::Mstpb24,
287 Mstpcrb_SPEC,
288 crate::common::RW,
289 >::from_register(self, 0)
290 }
291
292 #[doc = "Serial Communication Interface 8 Module Stop"]
293 #[inline(always)]
294 pub fn mstpb23(
295 self,
296 ) -> crate::common::RegisterField<
297 23,
298 0x1,
299 1,
300 0,
301 mstpcrb::Mstpb23,
302 mstpcrb::Mstpb23,
303 Mstpcrb_SPEC,
304 crate::common::RW,
305 > {
306 crate::common::RegisterField::<
307 23,
308 0x1,
309 1,
310 0,
311 mstpcrb::Mstpb23,
312 mstpcrb::Mstpb23,
313 Mstpcrb_SPEC,
314 crate::common::RW,
315 >::from_register(self, 0)
316 }
317
318 #[doc = "Serial Communication Interface 9 Module Stop"]
319 #[inline(always)]
320 pub fn mstpb22(
321 self,
322 ) -> crate::common::RegisterField<
323 22,
324 0x1,
325 1,
326 0,
327 mstpcrb::Mstpb22,
328 mstpcrb::Mstpb22,
329 Mstpcrb_SPEC,
330 crate::common::RW,
331 > {
332 crate::common::RegisterField::<
333 22,
334 0x1,
335 1,
336 0,
337 mstpcrb::Mstpb22,
338 mstpcrb::Mstpb22,
339 Mstpcrb_SPEC,
340 crate::common::RW,
341 >::from_register(self, 0)
342 }
343
344 #[doc = "Serial Peripheral Interface 0 Module Stop"]
345 #[inline(always)]
346 pub fn mstpb19(
347 self,
348 ) -> crate::common::RegisterField<
349 19,
350 0x1,
351 1,
352 0,
353 mstpcrb::Mstpb19,
354 mstpcrb::Mstpb19,
355 Mstpcrb_SPEC,
356 crate::common::RW,
357 > {
358 crate::common::RegisterField::<
359 19,
360 0x1,
361 1,
362 0,
363 mstpcrb::Mstpb19,
364 mstpcrb::Mstpb19,
365 Mstpcrb_SPEC,
366 crate::common::RW,
367 >::from_register(self, 0)
368 }
369
370 #[doc = "Serial Peripheral Interface Module Stop"]
371 #[inline(always)]
372 pub fn mstpb18(
373 self,
374 ) -> crate::common::RegisterField<
375 18,
376 0x1,
377 1,
378 0,
379 mstpcrb::Mstpb18,
380 mstpcrb::Mstpb18,
381 Mstpcrb_SPEC,
382 crate::common::RW,
383 > {
384 crate::common::RegisterField::<
385 18,
386 0x1,
387 1,
388 0,
389 mstpcrb::Mstpb18,
390 mstpcrb::Mstpb18,
391 Mstpcrb_SPEC,
392 crate::common::RW,
393 >::from_register(self, 0)
394 }
395
396 #[doc = "ETHERC0 and EDMAC0 Module Stop"]
397 #[inline(always)]
398 pub fn mstpb15(
399 self,
400 ) -> crate::common::RegisterField<
401 15,
402 0x1,
403 1,
404 0,
405 mstpcrb::Mstpb15,
406 mstpcrb::Mstpb15,
407 Mstpcrb_SPEC,
408 crate::common::RW,
409 > {
410 crate::common::RegisterField::<
411 15,
412 0x1,
413 1,
414 0,
415 mstpcrb::Mstpb15,
416 mstpcrb::Mstpb15,
417 Mstpcrb_SPEC,
418 crate::common::RW,
419 >::from_register(self, 0)
420 }
421
422 #[doc = "EPTPC and PTPEDMAC Module Stop"]
423 #[inline(always)]
424 pub fn mstpb13(
425 self,
426 ) -> crate::common::RegisterField<
427 13,
428 0x1,
429 1,
430 0,
431 mstpcrb::Mstpb13,
432 mstpcrb::Mstpb13,
433 Mstpcrb_SPEC,
434 crate::common::RW,
435 > {
436 crate::common::RegisterField::<
437 13,
438 0x1,
439 1,
440 0,
441 mstpcrb::Mstpb13,
442 mstpcrb::Mstpb13,
443 Mstpcrb_SPEC,
444 crate::common::RW,
445 >::from_register(self, 0)
446 }
447
448 #[doc = "Universal Serial Bus 2.0 HS Interface Module Stop"]
449 #[inline(always)]
450 pub fn mstpb12(
451 self,
452 ) -> crate::common::RegisterField<
453 12,
454 0x1,
455 1,
456 0,
457 mstpcrb::Mstpb12,
458 mstpcrb::Mstpb12,
459 Mstpcrb_SPEC,
460 crate::common::RW,
461 > {
462 crate::common::RegisterField::<
463 12,
464 0x1,
465 1,
466 0,
467 mstpcrb::Mstpb12,
468 mstpcrb::Mstpb12,
469 Mstpcrb_SPEC,
470 crate::common::RW,
471 >::from_register(self, 0)
472 }
473
474 #[doc = "Universal Serial Bus 2.0 FS Interface Module Stop"]
475 #[inline(always)]
476 pub fn mstpb11(
477 self,
478 ) -> crate::common::RegisterField<
479 11,
480 0x1,
481 1,
482 0,
483 mstpcrb::Mstpb11,
484 mstpcrb::Mstpb11,
485 Mstpcrb_SPEC,
486 crate::common::RW,
487 > {
488 crate::common::RegisterField::<
489 11,
490 0x1,
491 1,
492 0,
493 mstpcrb::Mstpb11,
494 mstpcrb::Mstpb11,
495 Mstpcrb_SPEC,
496 crate::common::RW,
497 >::from_register(self, 0)
498 }
499
500 #[doc = "I2C Bus Interface 0 Module Stop"]
501 #[inline(always)]
502 pub fn mstpb9(
503 self,
504 ) -> crate::common::RegisterField<
505 9,
506 0x1,
507 1,
508 0,
509 mstpcrb::Mstpb9,
510 mstpcrb::Mstpb9,
511 Mstpcrb_SPEC,
512 crate::common::RW,
513 > {
514 crate::common::RegisterField::<
515 9,
516 0x1,
517 1,
518 0,
519 mstpcrb::Mstpb9,
520 mstpcrb::Mstpb9,
521 Mstpcrb_SPEC,
522 crate::common::RW,
523 >::from_register(self, 0)
524 }
525
526 #[doc = "I2C Bus Interface 1 Module Stop"]
527 #[inline(always)]
528 pub fn mstpb8(
529 self,
530 ) -> crate::common::RegisterField<
531 8,
532 0x1,
533 1,
534 0,
535 mstpcrb::Mstpb8,
536 mstpcrb::Mstpb8,
537 Mstpcrb_SPEC,
538 crate::common::RW,
539 > {
540 crate::common::RegisterField::<
541 8,
542 0x1,
543 1,
544 0,
545 mstpcrb::Mstpb8,
546 mstpcrb::Mstpb8,
547 Mstpcrb_SPEC,
548 crate::common::RW,
549 >::from_register(self, 0)
550 }
551
552 #[doc = "I2C Bus Interface 2 Module Stop"]
553 #[inline(always)]
554 pub fn mstpb7(
555 self,
556 ) -> crate::common::RegisterField<
557 7,
558 0x1,
559 1,
560 0,
561 mstpcrb::Mstpb7,
562 mstpcrb::Mstpb7,
563 Mstpcrb_SPEC,
564 crate::common::RW,
565 > {
566 crate::common::RegisterField::<
567 7,
568 0x1,
569 1,
570 0,
571 mstpcrb::Mstpb7,
572 mstpcrb::Mstpb7,
573 Mstpcrb_SPEC,
574 crate::common::RW,
575 >::from_register(self, 0)
576 }
577
578 #[doc = "Queued Serial Peripheral Interface Module Stop"]
579 #[inline(always)]
580 pub fn mstpb6(
581 self,
582 ) -> crate::common::RegisterField<
583 6,
584 0x1,
585 1,
586 0,
587 mstpcrb::Mstpb6,
588 mstpcrb::Mstpb6,
589 Mstpcrb_SPEC,
590 crate::common::RW,
591 > {
592 crate::common::RegisterField::<
593 6,
594 0x1,
595 1,
596 0,
597 mstpcrb::Mstpb6,
598 mstpcrb::Mstpb6,
599 Mstpcrb_SPEC,
600 crate::common::RW,
601 >::from_register(self, 0)
602 }
603
604 #[doc = "IrDA Module Stop"]
605 #[inline(always)]
606 pub fn mstpb5(
607 self,
608 ) -> crate::common::RegisterField<
609 5,
610 0x1,
611 1,
612 0,
613 mstpcrb::Mstpb5,
614 mstpcrb::Mstpb5,
615 Mstpcrb_SPEC,
616 crate::common::RW,
617 > {
618 crate::common::RegisterField::<
619 5,
620 0x1,
621 1,
622 0,
623 mstpcrb::Mstpb5,
624 mstpcrb::Mstpb5,
625 Mstpcrb_SPEC,
626 crate::common::RW,
627 >::from_register(self, 0)
628 }
629
630 #[doc = "RCAN0 Module Stop"]
631 #[inline(always)]
632 pub fn mstpb2(
633 self,
634 ) -> crate::common::RegisterField<
635 2,
636 0x1,
637 1,
638 0,
639 mstpcrb::Mstpb2,
640 mstpcrb::Mstpb2,
641 Mstpcrb_SPEC,
642 crate::common::RW,
643 > {
644 crate::common::RegisterField::<
645 2,
646 0x1,
647 1,
648 0,
649 mstpcrb::Mstpb2,
650 mstpcrb::Mstpb2,
651 Mstpcrb_SPEC,
652 crate::common::RW,
653 >::from_register(self, 0)
654 }
655
656 #[doc = "RCAN1 Module Stop"]
657 #[inline(always)]
658 pub fn mstpb1(
659 self,
660 ) -> crate::common::RegisterField<
661 1,
662 0x1,
663 1,
664 0,
665 mstpcrb::Mstpb1,
666 mstpcrb::Mstpb1,
667 Mstpcrb_SPEC,
668 crate::common::RW,
669 > {
670 crate::common::RegisterField::<
671 1,
672 0x1,
673 1,
674 0,
675 mstpcrb::Mstpb1,
676 mstpcrb::Mstpb1,
677 Mstpcrb_SPEC,
678 crate::common::RW,
679 >::from_register(self, 0)
680 }
681}
682impl ::core::default::Default for Mstpcrb {
683 #[inline(always)]
684 fn default() -> Mstpcrb {
685 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
686 }
687}
688pub mod mstpcrb {
689
690 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
691 pub struct Mstpb31_SPEC;
692 pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
693 impl Mstpb31 {
694 #[doc = "Cancel the module-stop state"]
695 pub const _0: Self = Self::new(0);
696
697 #[doc = "Enter the module-stop state"]
698 pub const _1: Self = Self::new(1);
699 }
700 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
701 pub struct Mstpb30_SPEC;
702 pub type Mstpb30 = crate::EnumBitfieldStruct<u8, Mstpb30_SPEC>;
703 impl Mstpb30 {
704 #[doc = "Cancel the module-stop state"]
705 pub const _0: Self = Self::new(0);
706
707 #[doc = "Enter the module-stop state"]
708 pub const _1: Self = Self::new(1);
709 }
710 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
711 pub struct Mstpb29_SPEC;
712 pub type Mstpb29 = crate::EnumBitfieldStruct<u8, Mstpb29_SPEC>;
713 impl Mstpb29 {
714 #[doc = "Cancel the module-stop state"]
715 pub const _0: Self = Self::new(0);
716
717 #[doc = "Enter the module-stop state"]
718 pub const _1: Self = Self::new(1);
719 }
720 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
721 pub struct Mstpb28_SPEC;
722 pub type Mstpb28 = crate::EnumBitfieldStruct<u8, Mstpb28_SPEC>;
723 impl Mstpb28 {
724 #[doc = "Cancel the module-stop state"]
725 pub const _0: Self = Self::new(0);
726
727 #[doc = "Enter the module-stop state"]
728 pub const _1: Self = Self::new(1);
729 }
730 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
731 pub struct Mstpb27_SPEC;
732 pub type Mstpb27 = crate::EnumBitfieldStruct<u8, Mstpb27_SPEC>;
733 impl Mstpb27 {
734 #[doc = "Cancel the module-stop state"]
735 pub const _0: Self = Self::new(0);
736
737 #[doc = "Enter the module-stop state"]
738 pub const _1: Self = Self::new(1);
739 }
740 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
741 pub struct Mstpb26_SPEC;
742 pub type Mstpb26 = crate::EnumBitfieldStruct<u8, Mstpb26_SPEC>;
743 impl Mstpb26 {
744 #[doc = "Cancel the module-stop state"]
745 pub const _0: Self = Self::new(0);
746
747 #[doc = "Enter the module-stop state"]
748 pub const _1: Self = Self::new(1);
749 }
750 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
751 pub struct Mstpb25_SPEC;
752 pub type Mstpb25 = crate::EnumBitfieldStruct<u8, Mstpb25_SPEC>;
753 impl Mstpb25 {
754 #[doc = "Cancel the module-stop state"]
755 pub const _0: Self = Self::new(0);
756
757 #[doc = "Enter the module-stop state"]
758 pub const _1: Self = Self::new(1);
759 }
760 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
761 pub struct Mstpb24_SPEC;
762 pub type Mstpb24 = crate::EnumBitfieldStruct<u8, Mstpb24_SPEC>;
763 impl Mstpb24 {
764 #[doc = "Cancel the module-stop state"]
765 pub const _0: Self = Self::new(0);
766
767 #[doc = "Enter the module-stop state"]
768 pub const _1: Self = Self::new(1);
769 }
770 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
771 pub struct Mstpb23_SPEC;
772 pub type Mstpb23 = crate::EnumBitfieldStruct<u8, Mstpb23_SPEC>;
773 impl Mstpb23 {
774 #[doc = "Cancel the module-stop state"]
775 pub const _0: Self = Self::new(0);
776
777 #[doc = "Enter the module-stop state"]
778 pub const _1: Self = Self::new(1);
779 }
780 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
781 pub struct Mstpb22_SPEC;
782 pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
783 impl Mstpb22 {
784 #[doc = "Cancel the module-stop state"]
785 pub const _0: Self = Self::new(0);
786
787 #[doc = "Enter the module-stop state"]
788 pub const _1: Self = Self::new(1);
789 }
790 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
791 pub struct Mstpb19_SPEC;
792 pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
793 impl Mstpb19 {
794 #[doc = "Cancel the module-stop state"]
795 pub const _0: Self = Self::new(0);
796
797 #[doc = "Enter the module-stop state"]
798 pub const _1: Self = Self::new(1);
799 }
800 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
801 pub struct Mstpb18_SPEC;
802 pub type Mstpb18 = crate::EnumBitfieldStruct<u8, Mstpb18_SPEC>;
803 impl Mstpb18 {
804 #[doc = "Cancel the module-stop state"]
805 pub const _0: Self = Self::new(0);
806
807 #[doc = "Enter the module-stop state"]
808 pub const _1: Self = Self::new(1);
809 }
810 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
811 pub struct Mstpb15_SPEC;
812 pub type Mstpb15 = crate::EnumBitfieldStruct<u8, Mstpb15_SPEC>;
813 impl Mstpb15 {
814 #[doc = "Cancel the module-stop state"]
815 pub const _0: Self = Self::new(0);
816
817 #[doc = "Enter the module-stop state"]
818 pub const _1: Self = Self::new(1);
819 }
820 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
821 pub struct Mstpb13_SPEC;
822 pub type Mstpb13 = crate::EnumBitfieldStruct<u8, Mstpb13_SPEC>;
823 impl Mstpb13 {
824 #[doc = "Cancel the module-stop state"]
825 pub const _0: Self = Self::new(0);
826
827 #[doc = "Enter the module-stop state"]
828 pub const _1: Self = Self::new(1);
829 }
830 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
831 pub struct Mstpb12_SPEC;
832 pub type Mstpb12 = crate::EnumBitfieldStruct<u8, Mstpb12_SPEC>;
833 impl Mstpb12 {
834 #[doc = "Cancel the module-stop state"]
835 pub const _0: Self = Self::new(0);
836
837 #[doc = "Enter the module-stop state"]
838 pub const _1: Self = Self::new(1);
839 }
840 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
841 pub struct Mstpb11_SPEC;
842 pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
843 impl Mstpb11 {
844 #[doc = "Cancel the module-stop state"]
845 pub const _0: Self = Self::new(0);
846
847 #[doc = "Enter the module-stop state"]
848 pub const _1: Self = Self::new(1);
849 }
850 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
851 pub struct Mstpb9_SPEC;
852 pub type Mstpb9 = crate::EnumBitfieldStruct<u8, Mstpb9_SPEC>;
853 impl Mstpb9 {
854 #[doc = "Cancel the module-stop state"]
855 pub const _0: Self = Self::new(0);
856
857 #[doc = "Enter the module-stop state"]
858 pub const _1: Self = Self::new(1);
859 }
860 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
861 pub struct Mstpb8_SPEC;
862 pub type Mstpb8 = crate::EnumBitfieldStruct<u8, Mstpb8_SPEC>;
863 impl Mstpb8 {
864 #[doc = "Cancel the module-stop state"]
865 pub const _0: Self = Self::new(0);
866
867 #[doc = "Enter the module-stop state"]
868 pub const _1: Self = Self::new(1);
869 }
870 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
871 pub struct Mstpb7_SPEC;
872 pub type Mstpb7 = crate::EnumBitfieldStruct<u8, Mstpb7_SPEC>;
873 impl Mstpb7 {
874 #[doc = "Cancel the module-stop state"]
875 pub const _0: Self = Self::new(0);
876
877 #[doc = "Enter the module-stop state"]
878 pub const _1: Self = Self::new(1);
879 }
880 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
881 pub struct Mstpb6_SPEC;
882 pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
883 impl Mstpb6 {
884 #[doc = "Cancel the module-stop state"]
885 pub const _0: Self = Self::new(0);
886
887 #[doc = "Enter the module-stop state"]
888 pub const _1: Self = Self::new(1);
889 }
890 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
891 pub struct Mstpb5_SPEC;
892 pub type Mstpb5 = crate::EnumBitfieldStruct<u8, Mstpb5_SPEC>;
893 impl Mstpb5 {
894 #[doc = "Cancel the module-stop state"]
895 pub const _0: Self = Self::new(0);
896
897 #[doc = "Enter the module-stop state"]
898 pub const _1: Self = Self::new(1);
899 }
900 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
901 pub struct Mstpb2_SPEC;
902 pub type Mstpb2 = crate::EnumBitfieldStruct<u8, Mstpb2_SPEC>;
903 impl Mstpb2 {
904 #[doc = "Cancel the module-stop state"]
905 pub const _0: Self = Self::new(0);
906
907 #[doc = "Enter the module-stop state"]
908 pub const _1: Self = Self::new(1);
909 }
910 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
911 pub struct Mstpb1_SPEC;
912 pub type Mstpb1 = crate::EnumBitfieldStruct<u8, Mstpb1_SPEC>;
913 impl Mstpb1 {
914 #[doc = "Cancel the module-stop state"]
915 pub const _0: Self = Self::new(0);
916
917 #[doc = "Enter the module-stop state"]
918 pub const _1: Self = Self::new(1);
919 }
920}
921#[doc(hidden)]
922#[derive(Copy, Clone, Eq, PartialEq)]
923pub struct Mstpcrc_SPEC;
924impl crate::sealed::RegSpec for Mstpcrc_SPEC {
925 type DataType = u32;
926}
927
928#[doc = "Module Stop Control Register C"]
929pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
930
931impl Mstpcrc {
932 #[doc = "TSIP Module Stop"]
933 #[inline(always)]
934 pub fn mstpc31(
935 self,
936 ) -> crate::common::RegisterField<
937 31,
938 0x1,
939 1,
940 0,
941 mstpcrc::Mstpc31,
942 mstpcrc::Mstpc31,
943 Mstpcrc_SPEC,
944 crate::common::RW,
945 > {
946 crate::common::RegisterField::<
947 31,
948 0x1,
949 1,
950 0,
951 mstpcrc::Mstpc31,
952 mstpcrc::Mstpc31,
953 Mstpcrc_SPEC,
954 crate::common::RW,
955 >::from_register(self, 0)
956 }
957
958 #[doc = "Event Link Controller Module Stop"]
959 #[inline(always)]
960 pub fn mstpc14(
961 self,
962 ) -> crate::common::RegisterField<
963 14,
964 0x1,
965 1,
966 0,
967 mstpcrc::Mstpc14,
968 mstpcrc::Mstpc14,
969 Mstpcrc_SPEC,
970 crate::common::RW,
971 > {
972 crate::common::RegisterField::<
973 14,
974 0x1,
975 1,
976 0,
977 mstpcrc::Mstpc14,
978 mstpcrc::Mstpc14,
979 Mstpcrc_SPEC,
980 crate::common::RW,
981 >::from_register(self, 0)
982 }
983
984 #[doc = "Data Operation Circuit Module Stop"]
985 #[inline(always)]
986 pub fn mstpc13(
987 self,
988 ) -> crate::common::RegisterField<
989 13,
990 0x1,
991 1,
992 0,
993 mstpcrc::Mstpc13,
994 mstpcrc::Mstpc13,
995 Mstpcrc_SPEC,
996 crate::common::RW,
997 > {
998 crate::common::RegisterField::<
999 13,
1000 0x1,
1001 1,
1002 0,
1003 mstpcrc::Mstpc13,
1004 mstpcrc::Mstpc13,
1005 Mstpcrc_SPEC,
1006 crate::common::RW,
1007 >::from_register(self, 0)
1008 }
1009
1010 #[doc = "Synchronous Digital Hierarchy/ Multi Media Card 0 Module Stop"]
1011 #[inline(always)]
1012 pub fn mstpc12(
1013 self,
1014 ) -> crate::common::RegisterField<
1015 12,
1016 0x1,
1017 1,
1018 0,
1019 mstpcrc::Mstpc12,
1020 mstpcrc::Mstpc12,
1021 Mstpcrc_SPEC,
1022 crate::common::RW,
1023 > {
1024 crate::common::RegisterField::<
1025 12,
1026 0x1,
1027 1,
1028 0,
1029 mstpcrc::Mstpc12,
1030 mstpcrc::Mstpc12,
1031 Mstpcrc_SPEC,
1032 crate::common::RW,
1033 >::from_register(self, 0)
1034 }
1035
1036 #[doc = "Synchronous Digital Hierarchy/ Multi Media Card 1 Module Stop"]
1037 #[inline(always)]
1038 pub fn mstpc11(
1039 self,
1040 ) -> crate::common::RegisterField<
1041 11,
1042 0x1,
1043 1,
1044 0,
1045 mstpcrc::Mstpc11,
1046 mstpcrc::Mstpc11,
1047 Mstpcrc_SPEC,
1048 crate::common::RW,
1049 > {
1050 crate::common::RegisterField::<
1051 11,
1052 0x1,
1053 1,
1054 0,
1055 mstpcrc::Mstpc11,
1056 mstpcrc::Mstpc11,
1057 Mstpcrc_SPEC,
1058 crate::common::RW,
1059 >::from_register(self, 0)
1060 }
1061
1062 #[doc = "Sampling Rate Converter Module Stop"]
1063 #[inline(always)]
1064 pub fn mstpc9(
1065 self,
1066 ) -> crate::common::RegisterField<
1067 9,
1068 0x1,
1069 1,
1070 0,
1071 mstpcrc::Mstpc9,
1072 mstpcrc::Mstpc9,
1073 Mstpcrc_SPEC,
1074 crate::common::RW,
1075 > {
1076 crate::common::RegisterField::<
1077 9,
1078 0x1,
1079 1,
1080 0,
1081 mstpcrc::Mstpc9,
1082 mstpcrc::Mstpc9,
1083 Mstpcrc_SPEC,
1084 crate::common::RW,
1085 >::from_register(self, 0)
1086 }
1087
1088 #[doc = "Synchronous Serial Interface 0 Module Stop"]
1089 #[inline(always)]
1090 pub fn mstpc8(
1091 self,
1092 ) -> crate::common::RegisterField<
1093 8,
1094 0x1,
1095 1,
1096 0,
1097 mstpcrc::Mstpc8,
1098 mstpcrc::Mstpc8,
1099 Mstpcrc_SPEC,
1100 crate::common::RW,
1101 > {
1102 crate::common::RegisterField::<
1103 8,
1104 0x1,
1105 1,
1106 0,
1107 mstpcrc::Mstpc8,
1108 mstpcrc::Mstpc8,
1109 Mstpcrc_SPEC,
1110 crate::common::RW,
1111 >::from_register(self, 0)
1112 }
1113
1114 #[doc = "Synchronous Serial Interface 1 Module Stop"]
1115 #[inline(always)]
1116 pub fn mstpc7(
1117 self,
1118 ) -> crate::common::RegisterField<
1119 7,
1120 0x1,
1121 1,
1122 0,
1123 mstpcrc::Mstpc7,
1124 mstpcrc::Mstpc7,
1125 Mstpcrc_SPEC,
1126 crate::common::RW,
1127 > {
1128 crate::common::RegisterField::<
1129 7,
1130 0x1,
1131 1,
1132 0,
1133 mstpcrc::Mstpc7,
1134 mstpcrc::Mstpc7,
1135 Mstpcrc_SPEC,
1136 crate::common::RW,
1137 >::from_register(self, 0)
1138 }
1139
1140 #[doc = "2DG engine Module Stop"]
1141 #[inline(always)]
1142 pub fn mstpc6(
1143 self,
1144 ) -> crate::common::RegisterField<
1145 6,
1146 0x1,
1147 1,
1148 0,
1149 mstpcrc::Mstpc6,
1150 mstpcrc::Mstpc6,
1151 Mstpcrc_SPEC,
1152 crate::common::RW,
1153 > {
1154 crate::common::RegisterField::<
1155 6,
1156 0x1,
1157 1,
1158 0,
1159 mstpcrc::Mstpc6,
1160 mstpcrc::Mstpc6,
1161 Mstpcrc_SPEC,
1162 crate::common::RW,
1163 >::from_register(self, 0)
1164 }
1165
1166 #[doc = "JPEG codec engine Module Stop"]
1167 #[inline(always)]
1168 pub fn mstpc5(
1169 self,
1170 ) -> crate::common::RegisterField<
1171 5,
1172 0x1,
1173 1,
1174 0,
1175 mstpcrc::Mstpc5,
1176 mstpcrc::Mstpc5,
1177 Mstpcrc_SPEC,
1178 crate::common::RW,
1179 > {
1180 crate::common::RegisterField::<
1181 5,
1182 0x1,
1183 1,
1184 0,
1185 mstpcrc::Mstpc5,
1186 mstpcrc::Mstpc5,
1187 Mstpcrc_SPEC,
1188 crate::common::RW,
1189 >::from_register(self, 0)
1190 }
1191
1192 #[doc = "Grafic LCD Controler Module Stop"]
1193 #[inline(always)]
1194 pub fn mstpc4(
1195 self,
1196 ) -> crate::common::RegisterField<
1197 4,
1198 0x1,
1199 1,
1200 0,
1201 mstpcrc::Mstpc4,
1202 mstpcrc::Mstpc4,
1203 Mstpcrc_SPEC,
1204 crate::common::RW,
1205 > {
1206 crate::common::RegisterField::<
1207 4,
1208 0x1,
1209 1,
1210 0,
1211 mstpcrc::Mstpc4,
1212 mstpcrc::Mstpc4,
1213 Mstpcrc_SPEC,
1214 crate::common::RW,
1215 >::from_register(self, 0)
1216 }
1217
1218 #[doc = "Capacitive Touch Sensing Unit Module Stop"]
1219 #[inline(always)]
1220 pub fn mstpc3(
1221 self,
1222 ) -> crate::common::RegisterField<
1223 3,
1224 0x1,
1225 1,
1226 0,
1227 mstpcrc::Mstpc3,
1228 mstpcrc::Mstpc3,
1229 Mstpcrc_SPEC,
1230 crate::common::RW,
1231 > {
1232 crate::common::RegisterField::<
1233 3,
1234 0x1,
1235 1,
1236 0,
1237 mstpcrc::Mstpc3,
1238 mstpcrc::Mstpc3,
1239 Mstpcrc_SPEC,
1240 crate::common::RW,
1241 >::from_register(self, 0)
1242 }
1243
1244 #[doc = "Parallel Data Capture Module Stop"]
1245 #[inline(always)]
1246 pub fn mstpc2(
1247 self,
1248 ) -> crate::common::RegisterField<
1249 2,
1250 0x1,
1251 1,
1252 0,
1253 mstpcrc::Mstpc2,
1254 mstpcrc::Mstpc2,
1255 Mstpcrc_SPEC,
1256 crate::common::RW,
1257 > {
1258 crate::common::RegisterField::<
1259 2,
1260 0x1,
1261 1,
1262 0,
1263 mstpcrc::Mstpc2,
1264 mstpcrc::Mstpc2,
1265 Mstpcrc_SPEC,
1266 crate::common::RW,
1267 >::from_register(self, 0)
1268 }
1269
1270 #[doc = "CRC Calculator Module Stop"]
1271 #[inline(always)]
1272 pub fn mstpc1(
1273 self,
1274 ) -> crate::common::RegisterField<
1275 1,
1276 0x1,
1277 1,
1278 0,
1279 mstpcrc::Mstpc1,
1280 mstpcrc::Mstpc1,
1281 Mstpcrc_SPEC,
1282 crate::common::RW,
1283 > {
1284 crate::common::RegisterField::<
1285 1,
1286 0x1,
1287 1,
1288 0,
1289 mstpcrc::Mstpc1,
1290 mstpcrc::Mstpc1,
1291 Mstpcrc_SPEC,
1292 crate::common::RW,
1293 >::from_register(self, 0)
1294 }
1295
1296 #[doc = "CAC Module Stop"]
1297 #[inline(always)]
1298 pub fn mstpc0(
1299 self,
1300 ) -> crate::common::RegisterField<
1301 0,
1302 0x1,
1303 1,
1304 0,
1305 mstpcrc::Mstpc0,
1306 mstpcrc::Mstpc0,
1307 Mstpcrc_SPEC,
1308 crate::common::RW,
1309 > {
1310 crate::common::RegisterField::<
1311 0,
1312 0x1,
1313 1,
1314 0,
1315 mstpcrc::Mstpc0,
1316 mstpcrc::Mstpc0,
1317 Mstpcrc_SPEC,
1318 crate::common::RW,
1319 >::from_register(self, 0)
1320 }
1321}
1322impl ::core::default::Default for Mstpcrc {
1323 #[inline(always)]
1324 fn default() -> Mstpcrc {
1325 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
1326 }
1327}
1328pub mod mstpcrc {
1329
1330 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1331 pub struct Mstpc31_SPEC;
1332 pub type Mstpc31 = crate::EnumBitfieldStruct<u8, Mstpc31_SPEC>;
1333 impl Mstpc31 {
1334 #[doc = "Cancel the module-stop state"]
1335 pub const _0: Self = Self::new(0);
1336
1337 #[doc = "Enter the module-stop state"]
1338 pub const _1: Self = Self::new(1);
1339 }
1340 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1341 pub struct Mstpc14_SPEC;
1342 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
1343 impl Mstpc14 {
1344 #[doc = "Cancel the module-stop state"]
1345 pub const _0: Self = Self::new(0);
1346
1347 #[doc = "Enter the module-stop state"]
1348 pub const _1: Self = Self::new(1);
1349 }
1350 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1351 pub struct Mstpc13_SPEC;
1352 pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
1353 impl Mstpc13 {
1354 #[doc = "Cancel the module-stop state"]
1355 pub const _0: Self = Self::new(0);
1356
1357 #[doc = "Enter the module-stop state"]
1358 pub const _1: Self = Self::new(1);
1359 }
1360 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1361 pub struct Mstpc12_SPEC;
1362 pub type Mstpc12 = crate::EnumBitfieldStruct<u8, Mstpc12_SPEC>;
1363 impl Mstpc12 {
1364 #[doc = "Cancel the module-stop state"]
1365 pub const _0: Self = Self::new(0);
1366
1367 #[doc = "Enter the module-stop state"]
1368 pub const _1: Self = Self::new(1);
1369 }
1370 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1371 pub struct Mstpc11_SPEC;
1372 pub type Mstpc11 = crate::EnumBitfieldStruct<u8, Mstpc11_SPEC>;
1373 impl Mstpc11 {
1374 #[doc = "Cancel the module-stop state"]
1375 pub const _0: Self = Self::new(0);
1376
1377 #[doc = "Enter the module-stop state"]
1378 pub const _1: Self = Self::new(1);
1379 }
1380 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1381 pub struct Mstpc9_SPEC;
1382 pub type Mstpc9 = crate::EnumBitfieldStruct<u8, Mstpc9_SPEC>;
1383 impl Mstpc9 {
1384 #[doc = "Cancel the module-stop state"]
1385 pub const _0: Self = Self::new(0);
1386
1387 #[doc = "Enter the module-stop state"]
1388 pub const _1: Self = Self::new(1);
1389 }
1390 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1391 pub struct Mstpc8_SPEC;
1392 pub type Mstpc8 = crate::EnumBitfieldStruct<u8, Mstpc8_SPEC>;
1393 impl Mstpc8 {
1394 #[doc = "Cancel the module-stop state"]
1395 pub const _0: Self = Self::new(0);
1396
1397 #[doc = "Enter the module-stop state"]
1398 pub const _1: Self = Self::new(1);
1399 }
1400 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1401 pub struct Mstpc7_SPEC;
1402 pub type Mstpc7 = crate::EnumBitfieldStruct<u8, Mstpc7_SPEC>;
1403 impl Mstpc7 {
1404 #[doc = "Cancel the module-stop state"]
1405 pub const _0: Self = Self::new(0);
1406
1407 #[doc = "Enter the module-stop state"]
1408 pub const _1: Self = Self::new(1);
1409 }
1410 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1411 pub struct Mstpc6_SPEC;
1412 pub type Mstpc6 = crate::EnumBitfieldStruct<u8, Mstpc6_SPEC>;
1413 impl Mstpc6 {
1414 #[doc = "Cancel the module-stop state"]
1415 pub const _0: Self = Self::new(0);
1416
1417 #[doc = "Enter the module-stop state"]
1418 pub const _1: Self = Self::new(1);
1419 }
1420 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1421 pub struct Mstpc5_SPEC;
1422 pub type Mstpc5 = crate::EnumBitfieldStruct<u8, Mstpc5_SPEC>;
1423 impl Mstpc5 {
1424 #[doc = "Cancel the module-stop state"]
1425 pub const _0: Self = Self::new(0);
1426
1427 #[doc = "Enter the module-stop state"]
1428 pub const _1: Self = Self::new(1);
1429 }
1430 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1431 pub struct Mstpc4_SPEC;
1432 pub type Mstpc4 = crate::EnumBitfieldStruct<u8, Mstpc4_SPEC>;
1433 impl Mstpc4 {
1434 #[doc = "Cancel the module-stop state"]
1435 pub const _0: Self = Self::new(0);
1436
1437 #[doc = "Enter the module-stop state"]
1438 pub const _1: Self = Self::new(1);
1439 }
1440 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1441 pub struct Mstpc3_SPEC;
1442 pub type Mstpc3 = crate::EnumBitfieldStruct<u8, Mstpc3_SPEC>;
1443 impl Mstpc3 {
1444 #[doc = "Cancel the module-stop state"]
1445 pub const _0: Self = Self::new(0);
1446
1447 #[doc = "Enter the module-stop state"]
1448 pub const _1: Self = Self::new(1);
1449 }
1450 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1451 pub struct Mstpc2_SPEC;
1452 pub type Mstpc2 = crate::EnumBitfieldStruct<u8, Mstpc2_SPEC>;
1453 impl Mstpc2 {
1454 #[doc = "Cancel the module-stop state"]
1455 pub const _0: Self = Self::new(0);
1456
1457 #[doc = "Enter the module-stop state"]
1458 pub const _1: Self = Self::new(1);
1459 }
1460 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1461 pub struct Mstpc1_SPEC;
1462 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
1463 impl Mstpc1 {
1464 #[doc = "Cancel the module-stop state"]
1465 pub const _0: Self = Self::new(0);
1466
1467 #[doc = "Enter the module-stop state"]
1468 pub const _1: Self = Self::new(1);
1469 }
1470 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1471 pub struct Mstpc0_SPEC;
1472 pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
1473 impl Mstpc0 {
1474 #[doc = "Cancel the module-stop state"]
1475 pub const _0: Self = Self::new(0);
1476
1477 #[doc = "Enter the module-stop state"]
1478 pub const _1: Self = Self::new(1);
1479 }
1480}
1481#[doc(hidden)]
1482#[derive(Copy, Clone, Eq, PartialEq)]
1483pub struct Mstpcrd_SPEC;
1484impl crate::sealed::RegSpec for Mstpcrd_SPEC {
1485 type DataType = u32;
1486}
1487
1488#[doc = "Module Stop Control Register D"]
1489pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
1490
1491impl Mstpcrd {
1492 #[doc = "Comparator-OC0 Module Stop"]
1493 #[inline(always)]
1494 pub fn mstpd28(
1495 self,
1496 ) -> crate::common::RegisterField<
1497 28,
1498 0x1,
1499 1,
1500 0,
1501 mstpcrd::Mstpd28,
1502 mstpcrd::Mstpd28,
1503 Mstpcrd_SPEC,
1504 crate::common::RW,
1505 > {
1506 crate::common::RegisterField::<
1507 28,
1508 0x1,
1509 1,
1510 0,
1511 mstpcrd::Mstpd28,
1512 mstpcrd::Mstpd28,
1513 Mstpcrd_SPEC,
1514 crate::common::RW,
1515 >::from_register(self, 0)
1516 }
1517
1518 #[doc = "Comparator-OC1 Module Stop"]
1519 #[inline(always)]
1520 pub fn mstpd27(
1521 self,
1522 ) -> crate::common::RegisterField<
1523 27,
1524 0x1,
1525 1,
1526 0,
1527 mstpcrd::Mstpd27,
1528 mstpcrd::Mstpd27,
1529 Mstpcrd_SPEC,
1530 crate::common::RW,
1531 > {
1532 crate::common::RegisterField::<
1533 27,
1534 0x1,
1535 1,
1536 0,
1537 mstpcrd::Mstpd27,
1538 mstpcrd::Mstpd27,
1539 Mstpcrd_SPEC,
1540 crate::common::RW,
1541 >::from_register(self, 0)
1542 }
1543
1544 #[doc = "Comparator-OC2 Module Stop"]
1545 #[inline(always)]
1546 pub fn mstpd26(
1547 self,
1548 ) -> crate::common::RegisterField<
1549 26,
1550 0x1,
1551 1,
1552 0,
1553 mstpcrd::Mstpd26,
1554 mstpcrd::Mstpd26,
1555 Mstpcrd_SPEC,
1556 crate::common::RW,
1557 > {
1558 crate::common::RegisterField::<
1559 26,
1560 0x1,
1561 1,
1562 0,
1563 mstpcrd::Mstpd26,
1564 mstpcrd::Mstpd26,
1565 Mstpcrd_SPEC,
1566 crate::common::RW,
1567 >::from_register(self, 0)
1568 }
1569
1570 #[doc = "Comparator-OC3 Module Stop"]
1571 #[inline(always)]
1572 pub fn mstpd25(
1573 self,
1574 ) -> crate::common::RegisterField<
1575 25,
1576 0x1,
1577 1,
1578 0,
1579 mstpcrd::Mstpd25,
1580 mstpcrd::Mstpd25,
1581 Mstpcrd_SPEC,
1582 crate::common::RW,
1583 > {
1584 crate::common::RegisterField::<
1585 25,
1586 0x1,
1587 1,
1588 0,
1589 mstpcrd::Mstpd25,
1590 mstpcrd::Mstpd25,
1591 Mstpcrd_SPEC,
1592 crate::common::RW,
1593 >::from_register(self, 0)
1594 }
1595
1596 #[doc = "Comparator-OC4 Module Stop"]
1597 #[inline(always)]
1598 pub fn mstpd24(
1599 self,
1600 ) -> crate::common::RegisterField<
1601 24,
1602 0x1,
1603 1,
1604 0,
1605 mstpcrd::Mstpd24,
1606 mstpcrd::Mstpd24,
1607 Mstpcrd_SPEC,
1608 crate::common::RW,
1609 > {
1610 crate::common::RegisterField::<
1611 24,
1612 0x1,
1613 1,
1614 0,
1615 mstpcrd::Mstpd24,
1616 mstpcrd::Mstpd24,
1617 Mstpcrd_SPEC,
1618 crate::common::RW,
1619 >::from_register(self, 0)
1620 }
1621
1622 #[doc = "Comparator-OC5 Module Stop"]
1623 #[inline(always)]
1624 pub fn mstpd23(
1625 self,
1626 ) -> crate::common::RegisterField<
1627 23,
1628 0x1,
1629 1,
1630 0,
1631 mstpcrd::Mstpd23,
1632 mstpcrd::Mstpd23,
1633 Mstpcrd_SPEC,
1634 crate::common::RW,
1635 > {
1636 crate::common::RegisterField::<
1637 23,
1638 0x1,
1639 1,
1640 0,
1641 mstpcrd::Mstpd23,
1642 mstpcrd::Mstpd23,
1643 Mstpcrd_SPEC,
1644 crate::common::RW,
1645 >::from_register(self, 0)
1646 }
1647
1648 #[doc = "Temperature Sensor Module Stop"]
1649 #[inline(always)]
1650 pub fn mstpd22(
1651 self,
1652 ) -> crate::common::RegisterField<
1653 22,
1654 0x1,
1655 1,
1656 0,
1657 mstpcrd::Mstpd22,
1658 mstpcrd::Mstpd22,
1659 Mstpcrd_SPEC,
1660 crate::common::RW,
1661 > {
1662 crate::common::RegisterField::<
1663 22,
1664 0x1,
1665 1,
1666 0,
1667 mstpcrd::Mstpd22,
1668 mstpcrd::Mstpd22,
1669 Mstpcrd_SPEC,
1670 crate::common::RW,
1671 >::from_register(self, 0)
1672 }
1673
1674 #[doc = "D/A Converter 0 Module Stop"]
1675 #[inline(always)]
1676 pub fn mstpd20(
1677 self,
1678 ) -> crate::common::RegisterField<
1679 20,
1680 0x1,
1681 1,
1682 0,
1683 mstpcrd::Mstpd20,
1684 mstpcrd::Mstpd20,
1685 Mstpcrd_SPEC,
1686 crate::common::RW,
1687 > {
1688 crate::common::RegisterField::<
1689 20,
1690 0x1,
1691 1,
1692 0,
1693 mstpcrd::Mstpd20,
1694 mstpcrd::Mstpd20,
1695 Mstpcrd_SPEC,
1696 crate::common::RW,
1697 >::from_register(self, 0)
1698 }
1699
1700 #[doc = "12-bit A/D Converter 0 Module Stop"]
1701 #[inline(always)]
1702 pub fn mstpd16(
1703 self,
1704 ) -> crate::common::RegisterField<
1705 16,
1706 0x1,
1707 1,
1708 0,
1709 mstpcrd::Mstpd16,
1710 mstpcrd::Mstpd16,
1711 Mstpcrd_SPEC,
1712 crate::common::RW,
1713 > {
1714 crate::common::RegisterField::<
1715 16,
1716 0x1,
1717 1,
1718 0,
1719 mstpcrd::Mstpd16,
1720 mstpcrd::Mstpd16,
1721 Mstpcrd_SPEC,
1722 crate::common::RW,
1723 >::from_register(self, 0)
1724 }
1725
1726 #[doc = "12-bit A/D Converter 1 Module Stop"]
1727 #[inline(always)]
1728 pub fn mstpd15(
1729 self,
1730 ) -> crate::common::RegisterField<
1731 15,
1732 0x1,
1733 1,
1734 0,
1735 mstpcrd::Mstpd15,
1736 mstpcrd::Mstpd15,
1737 Mstpcrd_SPEC,
1738 crate::common::RW,
1739 > {
1740 crate::common::RegisterField::<
1741 15,
1742 0x1,
1743 1,
1744 0,
1745 mstpcrd::Mstpd15,
1746 mstpcrd::Mstpd15,
1747 Mstpcrd_SPEC,
1748 crate::common::RW,
1749 >::from_register(self, 0)
1750 }
1751
1752 #[doc = "PGI Module Stop"]
1753 #[inline(always)]
1754 pub fn mstpd14(
1755 self,
1756 ) -> crate::common::RegisterField<
1757 14,
1758 0x1,
1759 1,
1760 0,
1761 mstpcrd::Mstpd14,
1762 mstpcrd::Mstpd14,
1763 Mstpcrd_SPEC,
1764 crate::common::RW,
1765 > {
1766 crate::common::RegisterField::<
1767 14,
1768 0x1,
1769 1,
1770 0,
1771 mstpcrd::Mstpd14,
1772 mstpcrd::Mstpd14,
1773 Mstpcrd_SPEC,
1774 crate::common::RW,
1775 >::from_register(self, 0)
1776 }
1777
1778 #[doc = "GPT ch13-ch8 Module Stop"]
1779 #[inline(always)]
1780 pub fn mstpd6(
1781 self,
1782 ) -> crate::common::RegisterField<
1783 6,
1784 0x1,
1785 1,
1786 0,
1787 mstpcrd::Mstpd6,
1788 mstpcrd::Mstpd6,
1789 Mstpcrd_SPEC,
1790 crate::common::RW,
1791 > {
1792 crate::common::RegisterField::<
1793 6,
1794 0x1,
1795 1,
1796 0,
1797 mstpcrd::Mstpd6,
1798 mstpcrd::Mstpd6,
1799 Mstpcrd_SPEC,
1800 crate::common::RW,
1801 >::from_register(self, 0)
1802 }
1803
1804 #[doc = "GPT ch7-ch0 Module Stop"]
1805 #[inline(always)]
1806 pub fn mstpd5(
1807 self,
1808 ) -> crate::common::RegisterField<
1809 5,
1810 0x1,
1811 1,
1812 0,
1813 mstpcrd::Mstpd5,
1814 mstpcrd::Mstpd5,
1815 Mstpcrd_SPEC,
1816 crate::common::RW,
1817 > {
1818 crate::common::RegisterField::<
1819 5,
1820 0x1,
1821 1,
1822 0,
1823 mstpcrd::Mstpd5,
1824 mstpcrd::Mstpd5,
1825 Mstpcrd_SPEC,
1826 crate::common::RW,
1827 >::from_register(self, 0)
1828 }
1829
1830 #[doc = "AGT0 Module StopNote: AGT0 is in the module stop state when the count source is either of PCLKB, PCLKB/2 or PCLKB/8. In case the count source is sub-clock or LOCO, this bit should be set to 1 except when accessing the registers of AGT0."]
1831 #[inline(always)]
1832 pub fn mstpd3(
1833 self,
1834 ) -> crate::common::RegisterField<
1835 3,
1836 0x1,
1837 1,
1838 0,
1839 mstpcrd::Mstpd3,
1840 mstpcrd::Mstpd3,
1841 Mstpcrd_SPEC,
1842 crate::common::RW,
1843 > {
1844 crate::common::RegisterField::<
1845 3,
1846 0x1,
1847 1,
1848 0,
1849 mstpcrd::Mstpd3,
1850 mstpcrd::Mstpd3,
1851 Mstpcrd_SPEC,
1852 crate::common::RW,
1853 >::from_register(self, 0)
1854 }
1855
1856 #[doc = "AGT1 Module StopNote: AGT1 is in the module stop state when the count source is either of PCLKB, PCLKB/2 or PCLKB/8. In case the count source is sub-clock or LOCO, this bit should be set to 1 except when accessing the registers of AGT1."]
1857 #[inline(always)]
1858 pub fn mstpd2(
1859 self,
1860 ) -> crate::common::RegisterField<
1861 2,
1862 0x1,
1863 1,
1864 0,
1865 mstpcrd::Mstpd2,
1866 mstpcrd::Mstpd2,
1867 Mstpcrd_SPEC,
1868 crate::common::RW,
1869 > {
1870 crate::common::RegisterField::<
1871 2,
1872 0x1,
1873 1,
1874 0,
1875 mstpcrd::Mstpd2,
1876 mstpcrd::Mstpd2,
1877 Mstpcrd_SPEC,
1878 crate::common::RW,
1879 >::from_register(self, 0)
1880 }
1881}
1882impl ::core::default::Default for Mstpcrd {
1883 #[inline(always)]
1884 fn default() -> Mstpcrd {
1885 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
1886 }
1887}
1888pub mod mstpcrd {
1889
1890 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1891 pub struct Mstpd28_SPEC;
1892 pub type Mstpd28 = crate::EnumBitfieldStruct<u8, Mstpd28_SPEC>;
1893 impl Mstpd28 {
1894 #[doc = "Cancel the module-stop state"]
1895 pub const _0: Self = Self::new(0);
1896
1897 #[doc = "Enter the module-stop state"]
1898 pub const _1: Self = Self::new(1);
1899 }
1900 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1901 pub struct Mstpd27_SPEC;
1902 pub type Mstpd27 = crate::EnumBitfieldStruct<u8, Mstpd27_SPEC>;
1903 impl Mstpd27 {
1904 #[doc = "Cancel the module-stop state"]
1905 pub const _0: Self = Self::new(0);
1906
1907 #[doc = "Enter the module-stop state"]
1908 pub const _1: Self = Self::new(1);
1909 }
1910 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1911 pub struct Mstpd26_SPEC;
1912 pub type Mstpd26 = crate::EnumBitfieldStruct<u8, Mstpd26_SPEC>;
1913 impl Mstpd26 {
1914 #[doc = "Cancel the module-stop state"]
1915 pub const _0: Self = Self::new(0);
1916
1917 #[doc = "Enter the module-stop state"]
1918 pub const _1: Self = Self::new(1);
1919 }
1920 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1921 pub struct Mstpd25_SPEC;
1922 pub type Mstpd25 = crate::EnumBitfieldStruct<u8, Mstpd25_SPEC>;
1923 impl Mstpd25 {
1924 #[doc = "Cancel the module-stop state"]
1925 pub const _0: Self = Self::new(0);
1926
1927 #[doc = "Enter the module-stop state"]
1928 pub const _1: Self = Self::new(1);
1929 }
1930 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1931 pub struct Mstpd24_SPEC;
1932 pub type Mstpd24 = crate::EnumBitfieldStruct<u8, Mstpd24_SPEC>;
1933 impl Mstpd24 {
1934 #[doc = "Cancel the module-stop state"]
1935 pub const _0: Self = Self::new(0);
1936
1937 #[doc = "Enter the module-stop state"]
1938 pub const _1: Self = Self::new(1);
1939 }
1940 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1941 pub struct Mstpd23_SPEC;
1942 pub type Mstpd23 = crate::EnumBitfieldStruct<u8, Mstpd23_SPEC>;
1943 impl Mstpd23 {
1944 #[doc = "Cancel the module-stop state"]
1945 pub const _0: Self = Self::new(0);
1946
1947 #[doc = "Enter the module-stop state"]
1948 pub const _1: Self = Self::new(1);
1949 }
1950 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1951 pub struct Mstpd22_SPEC;
1952 pub type Mstpd22 = crate::EnumBitfieldStruct<u8, Mstpd22_SPEC>;
1953 impl Mstpd22 {
1954 #[doc = "Cancel the module-stop state"]
1955 pub const _0: Self = Self::new(0);
1956
1957 #[doc = "Enter the module-stop state"]
1958 pub const _1: Self = Self::new(1);
1959 }
1960 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1961 pub struct Mstpd20_SPEC;
1962 pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
1963 impl Mstpd20 {
1964 #[doc = "Cancel the module-stop state"]
1965 pub const _0: Self = Self::new(0);
1966
1967 #[doc = "Enter the module-stop state"]
1968 pub const _1: Self = Self::new(1);
1969 }
1970 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1971 pub struct Mstpd16_SPEC;
1972 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
1973 impl Mstpd16 {
1974 #[doc = "Cancel the module-stop state"]
1975 pub const _0: Self = Self::new(0);
1976
1977 #[doc = "Enter the module-stop state"]
1978 pub const _1: Self = Self::new(1);
1979 }
1980 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1981 pub struct Mstpd15_SPEC;
1982 pub type Mstpd15 = crate::EnumBitfieldStruct<u8, Mstpd15_SPEC>;
1983 impl Mstpd15 {
1984 #[doc = "Cancel the module-stop state"]
1985 pub const _0: Self = Self::new(0);
1986
1987 #[doc = "Enter the module-stop state"]
1988 pub const _1: Self = Self::new(1);
1989 }
1990 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1991 pub struct Mstpd14_SPEC;
1992 pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
1993 impl Mstpd14 {
1994 #[doc = "Cancel the module-stop state"]
1995 pub const _0: Self = Self::new(0);
1996
1997 #[doc = "Enter the module-stop state"]
1998 pub const _1: Self = Self::new(1);
1999 }
2000 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2001 pub struct Mstpd6_SPEC;
2002 pub type Mstpd6 = crate::EnumBitfieldStruct<u8, Mstpd6_SPEC>;
2003 impl Mstpd6 {
2004 #[doc = "Cancel the module-stop state"]
2005 pub const _0: Self = Self::new(0);
2006
2007 #[doc = "Enter the module-stop state"]
2008 pub const _1: Self = Self::new(1);
2009 }
2010 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2011 pub struct Mstpd5_SPEC;
2012 pub type Mstpd5 = crate::EnumBitfieldStruct<u8, Mstpd5_SPEC>;
2013 impl Mstpd5 {
2014 #[doc = "Cancel the module-stop state"]
2015 pub const _0: Self = Self::new(0);
2016
2017 #[doc = "Enter the module-stop state"]
2018 pub const _1: Self = Self::new(1);
2019 }
2020 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2021 pub struct Mstpd3_SPEC;
2022 pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
2023 impl Mstpd3 {
2024 #[doc = "Cancel the module-stop state"]
2025 pub const _0: Self = Self::new(0);
2026
2027 #[doc = "Enter the module-stop state"]
2028 pub const _1: Self = Self::new(1);
2029 }
2030 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2031 pub struct Mstpd2_SPEC;
2032 pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
2033 impl Mstpd2 {
2034 #[doc = "Cancel the module-stop state"]
2035 pub const _0: Self = Self::new(0);
2036
2037 #[doc = "Enter the module-stop state"]
2038 pub const _1: Self = Self::new(1);
2039 }
2040}