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 #[doc = "Module Stop Control Register A"]
37 #[inline(always)]
38 pub const fn mstpcra(
39 &self,
40 ) -> &'static crate::common::Reg<self::Mstpcra_SPEC, crate::common::RW> {
41 unsafe {
42 crate::common::Reg::<self::Mstpcra_SPEC, crate::common::RW>::from_ptr(
43 self._svd2pac_as_ptr().add(0usize),
44 )
45 }
46 }
47
48 #[doc = "Module Stop Control Register B"]
49 #[inline(always)]
50 pub const fn mstpcrb(
51 &self,
52 ) -> &'static crate::common::Reg<self::Mstpcrb_SPEC, crate::common::RW> {
53 unsafe {
54 crate::common::Reg::<self::Mstpcrb_SPEC, crate::common::RW>::from_ptr(
55 self._svd2pac_as_ptr().add(4usize),
56 )
57 }
58 }
59
60 #[doc = "Module Stop Control Register C"]
61 #[inline(always)]
62 pub const fn mstpcrc(
63 &self,
64 ) -> &'static crate::common::Reg<self::Mstpcrc_SPEC, crate::common::RW> {
65 unsafe {
66 crate::common::Reg::<self::Mstpcrc_SPEC, crate::common::RW>::from_ptr(
67 self._svd2pac_as_ptr().add(8usize),
68 )
69 }
70 }
71
72 #[doc = "Module Stop Control Register D"]
73 #[inline(always)]
74 pub const fn mstpcrd(
75 &self,
76 ) -> &'static crate::common::Reg<self::Mstpcrd_SPEC, crate::common::RW> {
77 unsafe {
78 crate::common::Reg::<self::Mstpcrd_SPEC, crate::common::RW>::from_ptr(
79 self._svd2pac_as_ptr().add(12usize),
80 )
81 }
82 }
83
84 #[doc = "Module Stop Control Register E"]
85 #[inline(always)]
86 pub const fn mstpcre(
87 &self,
88 ) -> &'static crate::common::Reg<self::Mstpcre_SPEC, crate::common::RW> {
89 unsafe {
90 crate::common::Reg::<self::Mstpcre_SPEC, crate::common::RW>::from_ptr(
91 self._svd2pac_as_ptr().add(16usize),
92 )
93 }
94 }
95}
96#[doc(hidden)]
97#[derive(Copy, Clone, Eq, PartialEq)]
98pub struct Mstpcra_SPEC;
99impl crate::sealed::RegSpec for Mstpcra_SPEC {
100 type DataType = u32;
101}
102#[doc = "Module Stop Control Register A"]
103pub type Mstpcra = crate::RegValueT<Mstpcra_SPEC>;
104
105impl Mstpcra {
106 #[doc = "SRAM0 Module Stop"]
107 #[inline(always)]
108 pub fn mstpa0(
109 self,
110 ) -> crate::common::RegisterField<0, 0x1, 1, 0, mstpcra::Mstpa0, Mstpcra_SPEC, crate::common::RW>
111 {
112 crate::common::RegisterField::<0,0x1,1,0,mstpcra::Mstpa0, Mstpcra_SPEC,crate::common::RW>::from_register(self,0)
113 }
114 #[doc = "Standby SRAM Module Stop"]
115 #[inline(always)]
116 pub fn mstpa7(
117 self,
118 ) -> crate::common::RegisterField<7, 0x1, 1, 0, mstpcra::Mstpa7, Mstpcra_SPEC, crate::common::RW>
119 {
120 crate::common::RegisterField::<7,0x1,1,0,mstpcra::Mstpa7, Mstpcra_SPEC,crate::common::RW>::from_register(self,0)
121 }
122 #[doc = "DMA Controller/Data Transfer Controller Module Stop"]
123 #[inline(always)]
124 pub fn mstpa22(
125 self,
126 ) -> crate::common::RegisterField<
127 22,
128 0x1,
129 1,
130 0,
131 mstpcra::Mstpa22,
132 Mstpcra_SPEC,
133 crate::common::RW,
134 > {
135 crate::common::RegisterField::<
136 22,
137 0x1,
138 1,
139 0,
140 mstpcra::Mstpa22,
141 Mstpcra_SPEC,
142 crate::common::RW,
143 >::from_register(self, 0)
144 }
145}
146impl ::core::default::Default for Mstpcra {
147 #[inline(always)]
148 fn default() -> Mstpcra {
149 <crate::RegValueT<Mstpcra_SPEC> as RegisterValue<_>>::new(4290772862)
150 }
151}
152pub mod mstpcra {
153
154 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
155 pub struct Mstpa0_SPEC;
156 pub type Mstpa0 = crate::EnumBitfieldStruct<u8, Mstpa0_SPEC>;
157 impl Mstpa0 {
158 #[doc = "Cancel the module-stop state"]
159 pub const _0: Self = Self::new(0);
160 #[doc = "Enter the module-stop state"]
161 pub const _1: Self = Self::new(1);
162 }
163 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
164 pub struct Mstpa7_SPEC;
165 pub type Mstpa7 = crate::EnumBitfieldStruct<u8, Mstpa7_SPEC>;
166 impl Mstpa7 {
167 #[doc = "Cancel the module-stop state"]
168 pub const _0: Self = Self::new(0);
169 #[doc = "Enter the module-stop state"]
170 pub const _1: Self = Self::new(1);
171 }
172 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
173 pub struct Mstpa22_SPEC;
174 pub type Mstpa22 = crate::EnumBitfieldStruct<u8, Mstpa22_SPEC>;
175 impl Mstpa22 {
176 #[doc = "Cancel the module-stop state"]
177 pub const _0: Self = Self::new(0);
178 #[doc = "Enter the module-stop state"]
179 pub const _1: Self = Self::new(1);
180 }
181}
182#[doc(hidden)]
183#[derive(Copy, Clone, Eq, PartialEq)]
184pub struct Mstpcrb_SPEC;
185impl crate::sealed::RegSpec for Mstpcrb_SPEC {
186 type DataType = u32;
187}
188#[doc = "Module Stop Control Register B"]
189pub type Mstpcrb = crate::RegValueT<Mstpcrb_SPEC>;
190
191impl Mstpcrb {
192 #[doc = "CEC Module Stop"]
193 #[inline(always)]
194 pub fn mstpb3(
195 self,
196 ) -> crate::common::RegisterField<3, 0x1, 1, 0, mstpcrb::Mstpb3, Mstpcrb_SPEC, crate::common::RW>
197 {
198 crate::common::RegisterField::<3,0x1,1,0,mstpcrb::Mstpb3, Mstpcrb_SPEC,crate::common::RW>::from_register(self,0)
199 }
200 #[doc = "I3C Bus Interface 0 Module Stop"]
201 #[inline(always)]
202 pub fn mstpb4(
203 self,
204 ) -> crate::common::RegisterField<4, 0x1, 1, 0, mstpcrb::Mstpb4, Mstpcrb_SPEC, crate::common::RW>
205 {
206 crate::common::RegisterField::<4,0x1,1,0,mstpcrb::Mstpb4, Mstpcrb_SPEC,crate::common::RW>::from_register(self,0)
207 }
208 #[doc = "Universal Serial Bus 2.0 FS Interface 0 Module Stop"]
209 #[inline(always)]
210 pub fn mstpb11(
211 self,
212 ) -> crate::common::RegisterField<
213 11,
214 0x1,
215 1,
216 0,
217 mstpcrb::Mstpb11,
218 Mstpcrb_SPEC,
219 crate::common::RW,
220 > {
221 crate::common::RegisterField::<
222 11,
223 0x1,
224 1,
225 0,
226 mstpcrb::Mstpb11,
227 Mstpcrb_SPEC,
228 crate::common::RW,
229 >::from_register(self, 0)
230 }
231 #[doc = "Serial Peripheral Interface 1 Module Stop"]
232 #[inline(always)]
233 pub fn mstpb18(
234 self,
235 ) -> crate::common::RegisterField<
236 18,
237 0x1,
238 1,
239 0,
240 mstpcrb::Mstpb18,
241 Mstpcrb_SPEC,
242 crate::common::RW,
243 > {
244 crate::common::RegisterField::<
245 18,
246 0x1,
247 1,
248 0,
249 mstpcrb::Mstpb18,
250 Mstpcrb_SPEC,
251 crate::common::RW,
252 >::from_register(self, 0)
253 }
254 #[doc = "Serial Peripheral Interface 0 Module Stop"]
255 #[inline(always)]
256 pub fn mstpb19(
257 self,
258 ) -> crate::common::RegisterField<
259 19,
260 0x1,
261 1,
262 0,
263 mstpcrb::Mstpb19,
264 Mstpcrb_SPEC,
265 crate::common::RW,
266 > {
267 crate::common::RegisterField::<
268 19,
269 0x1,
270 1,
271 0,
272 mstpcrb::Mstpb19,
273 Mstpcrb_SPEC,
274 crate::common::RW,
275 >::from_register(self, 0)
276 }
277 #[doc = "Serial Communication Interface 9 Module Stop"]
278 #[inline(always)]
279 pub fn mstpb22(
280 self,
281 ) -> crate::common::RegisterField<
282 22,
283 0x1,
284 1,
285 0,
286 mstpcrb::Mstpb22,
287 Mstpcrb_SPEC,
288 crate::common::RW,
289 > {
290 crate::common::RegisterField::<
291 22,
292 0x1,
293 1,
294 0,
295 mstpcrb::Mstpb22,
296 Mstpcrb_SPEC,
297 crate::common::RW,
298 >::from_register(self, 0)
299 }
300 #[doc = "Serial Communication Interface 0 Module Stop"]
301 #[inline(always)]
302 pub fn mstpb31(
303 self,
304 ) -> crate::common::RegisterField<
305 31,
306 0x1,
307 1,
308 0,
309 mstpcrb::Mstpb31,
310 Mstpcrb_SPEC,
311 crate::common::RW,
312 > {
313 crate::common::RegisterField::<
314 31,
315 0x1,
316 1,
317 0,
318 mstpcrb::Mstpb31,
319 Mstpcrb_SPEC,
320 crate::common::RW,
321 >::from_register(self, 0)
322 }
323}
324impl ::core::default::Default for Mstpcrb {
325 #[inline(always)]
326 fn default() -> Mstpcrb {
327 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
328 }
329}
330pub mod mstpcrb {
331
332 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
333 pub struct Mstpb3_SPEC;
334 pub type Mstpb3 = crate::EnumBitfieldStruct<u8, Mstpb3_SPEC>;
335 impl Mstpb3 {
336 #[doc = "Cancel the module-stop state"]
337 pub const _0: Self = Self::new(0);
338 #[doc = "Enter the module-stop state"]
339 pub const _1: Self = Self::new(1);
340 }
341 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
342 pub struct Mstpb4_SPEC;
343 pub type Mstpb4 = crate::EnumBitfieldStruct<u8, Mstpb4_SPEC>;
344 impl Mstpb4 {
345 #[doc = "Cancel the module-stop state"]
346 pub const _0: Self = Self::new(0);
347 #[doc = "Enter the module-stop state"]
348 pub const _1: Self = Self::new(1);
349 }
350 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
351 pub struct Mstpb11_SPEC;
352 pub type Mstpb11 = crate::EnumBitfieldStruct<u8, Mstpb11_SPEC>;
353 impl Mstpb11 {
354 #[doc = "Cancel the module-stop state"]
355 pub const _0: Self = Self::new(0);
356 #[doc = "Enter the module-stop state"]
357 pub const _1: Self = Self::new(1);
358 }
359 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
360 pub struct Mstpb18_SPEC;
361 pub type Mstpb18 = crate::EnumBitfieldStruct<u8, Mstpb18_SPEC>;
362 impl Mstpb18 {
363 #[doc = "Cancel the module-stop state"]
364 pub const _0: Self = Self::new(0);
365 #[doc = "Enter the module-stop state"]
366 pub const _1: Self = Self::new(1);
367 }
368 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
369 pub struct Mstpb19_SPEC;
370 pub type Mstpb19 = crate::EnumBitfieldStruct<u8, Mstpb19_SPEC>;
371 impl Mstpb19 {
372 #[doc = "Cancel the module-stop state"]
373 pub const _0: Self = Self::new(0);
374 #[doc = "Enter the module-stop state"]
375 pub const _1: Self = Self::new(1);
376 }
377 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
378 pub struct Mstpb22_SPEC;
379 pub type Mstpb22 = crate::EnumBitfieldStruct<u8, Mstpb22_SPEC>;
380 impl Mstpb22 {
381 #[doc = "Cancel the module-stop state"]
382 pub const _0: Self = Self::new(0);
383 #[doc = "Enter the module-stop state"]
384 pub const _1: Self = Self::new(1);
385 }
386 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
387 pub struct Mstpb31_SPEC;
388 pub type Mstpb31 = crate::EnumBitfieldStruct<u8, Mstpb31_SPEC>;
389 impl Mstpb31 {
390 #[doc = "Cancel the module-stop state"]
391 pub const _0: Self = Self::new(0);
392 #[doc = "Enter the module-stop state"]
393 pub const _1: Self = Self::new(1);
394 }
395}
396#[doc(hidden)]
397#[derive(Copy, Clone, Eq, PartialEq)]
398pub struct Mstpcrc_SPEC;
399impl crate::sealed::RegSpec for Mstpcrc_SPEC {
400 type DataType = u32;
401}
402#[doc = "Module Stop Control Register C"]
403pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
404
405impl Mstpcrc {
406 #[doc = "Clock Frequency Accuracy Measurement Circuit Module Stop"]
407 #[inline(always)]
408 pub fn mstpc0(
409 self,
410 ) -> crate::common::RegisterField<0, 0x1, 1, 0, mstpcrc::Mstpc0, Mstpcrc_SPEC, crate::common::RW>
411 {
412 crate::common::RegisterField::<0,0x1,1,0,mstpcrc::Mstpc0, Mstpcrc_SPEC,crate::common::RW>::from_register(self,0)
413 }
414 #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
415 #[inline(always)]
416 pub fn mstpc1(
417 self,
418 ) -> crate::common::RegisterField<1, 0x1, 1, 0, mstpcrc::Mstpc1, Mstpcrc_SPEC, crate::common::RW>
419 {
420 crate::common::RegisterField::<1,0x1,1,0,mstpcrc::Mstpc1, Mstpcrc_SPEC,crate::common::RW>::from_register(self,0)
421 }
422 #[doc = "Serial Sound Interface Enhanced Module Stop"]
423 #[inline(always)]
424 pub fn mstpc8(
425 self,
426 ) -> crate::common::RegisterField<8, 0x1, 1, 0, mstpcrc::Mstpc8, Mstpcrc_SPEC, crate::common::RW>
427 {
428 crate::common::RegisterField::<8,0x1,1,0,mstpcrc::Mstpc8, Mstpcrc_SPEC,crate::common::RW>::from_register(self,0)
429 }
430 #[doc = "Data Operation Circuit Module Stop"]
431 #[inline(always)]
432 pub fn mstpc13(
433 self,
434 ) -> crate::common::RegisterField<
435 13,
436 0x1,
437 1,
438 0,
439 mstpcrc::Mstpc13,
440 Mstpcrc_SPEC,
441 crate::common::RW,
442 > {
443 crate::common::RegisterField::<
444 13,
445 0x1,
446 1,
447 0,
448 mstpcrc::Mstpc13,
449 Mstpcrc_SPEC,
450 crate::common::RW,
451 >::from_register(self, 0)
452 }
453 #[doc = "Event Link Controller Module Stop"]
454 #[inline(always)]
455 pub fn mstpc14(
456 self,
457 ) -> crate::common::RegisterField<
458 14,
459 0x1,
460 1,
461 0,
462 mstpcrc::Mstpc14,
463 Mstpcrc_SPEC,
464 crate::common::RW,
465 > {
466 crate::common::RegisterField::<
467 14,
468 0x1,
469 1,
470 0,
471 mstpcrc::Mstpc14,
472 Mstpcrc_SPEC,
473 crate::common::RW,
474 >::from_register(self, 0)
475 }
476 #[doc = "CANFD Module Stop"]
477 #[inline(always)]
478 pub fn mstpc27(
479 self,
480 ) -> crate::common::RegisterField<
481 27,
482 0x1,
483 1,
484 0,
485 mstpcrc::Mstpc27,
486 Mstpcrc_SPEC,
487 crate::common::RW,
488 > {
489 crate::common::RegisterField::<
490 27,
491 0x1,
492 1,
493 0,
494 mstpcrc::Mstpc27,
495 Mstpcrc_SPEC,
496 crate::common::RW,
497 >::from_register(self, 0)
498 }
499 #[doc = "Random Number Generator Module Stop"]
500 #[inline(always)]
501 pub fn mstpc28(
502 self,
503 ) -> crate::common::RegisterField<
504 28,
505 0x1,
506 1,
507 0,
508 mstpcrc::Mstpc28,
509 Mstpcrc_SPEC,
510 crate::common::RW,
511 > {
512 crate::common::RegisterField::<
513 28,
514 0x1,
515 1,
516 0,
517 mstpcrc::Mstpc28,
518 Mstpcrc_SPEC,
519 crate::common::RW,
520 >::from_register(self, 0)
521 }
522}
523impl ::core::default::Default for Mstpcrc {
524 #[inline(always)]
525 fn default() -> Mstpcrc {
526 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
527 }
528}
529pub mod mstpcrc {
530
531 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
532 pub struct Mstpc0_SPEC;
533 pub type Mstpc0 = crate::EnumBitfieldStruct<u8, Mstpc0_SPEC>;
534 impl Mstpc0 {
535 #[doc = "Cancel the module-stop state"]
536 pub const _0: Self = Self::new(0);
537 #[doc = "Enter the module-stop state"]
538 pub const _1: Self = Self::new(1);
539 }
540 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
541 pub struct Mstpc1_SPEC;
542 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
543 impl Mstpc1 {
544 #[doc = "Cancel the module-stop state"]
545 pub const _0: Self = Self::new(0);
546 #[doc = "Enter the module-stop state"]
547 pub const _1: Self = Self::new(1);
548 }
549 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
550 pub struct Mstpc8_SPEC;
551 pub type Mstpc8 = crate::EnumBitfieldStruct<u8, Mstpc8_SPEC>;
552 impl Mstpc8 {
553 #[doc = "Cancel the module-stop state"]
554 pub const _0: Self = Self::new(0);
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 Mstpc13_SPEC;
560 pub type Mstpc13 = crate::EnumBitfieldStruct<u8, Mstpc13_SPEC>;
561 impl Mstpc13 {
562 #[doc = "Cancel the module-stop state"]
563 pub const _0: Self = Self::new(0);
564 #[doc = "Enter the module-stop state"]
565 pub const _1: Self = Self::new(1);
566 }
567 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
568 pub struct Mstpc14_SPEC;
569 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
570 impl Mstpc14 {
571 #[doc = "Cancel the module-stop state"]
572 pub const _0: Self = Self::new(0);
573 #[doc = "Enter the module-stop state"]
574 pub const _1: Self = Self::new(1);
575 }
576 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
577 pub struct Mstpc27_SPEC;
578 pub type Mstpc27 = crate::EnumBitfieldStruct<u8, Mstpc27_SPEC>;
579 impl Mstpc27 {
580 #[doc = "Cancel the module-stop state"]
581 pub const _0: Self = Self::new(0);
582 #[doc = "Enter the module-stop state"]
583 pub const _1: Self = Self::new(1);
584 }
585 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
586 pub struct Mstpc28_SPEC;
587 pub type Mstpc28 = crate::EnumBitfieldStruct<u8, Mstpc28_SPEC>;
588 impl Mstpc28 {
589 #[doc = "Cancel the module-stop state"]
590 pub const _0: Self = Self::new(0);
591 #[doc = "Enter the module-stop state"]
592 pub const _1: Self = Self::new(1);
593 }
594}
595#[doc(hidden)]
596#[derive(Copy, Clone, Eq, PartialEq)]
597pub struct Mstpcrd_SPEC;
598impl crate::sealed::RegSpec for Mstpcrd_SPEC {
599 type DataType = u32;
600}
601#[doc = "Module Stop Control Register D"]
602pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
603
604impl Mstpcrd {
605 #[doc = "Low Power Asynchronous General Purpose Timer 1 Module Stop"]
606 #[inline(always)]
607 pub fn mstpd2(
608 self,
609 ) -> crate::common::RegisterField<2, 0x1, 1, 0, mstpcrd::Mstpd2, Mstpcrd_SPEC, crate::common::RW>
610 {
611 crate::common::RegisterField::<2,0x1,1,0,mstpcrd::Mstpd2, Mstpcrd_SPEC,crate::common::RW>::from_register(self,0)
612 }
613 #[doc = "Low Power Asynchronous General Purpose Timer 0 Module Stop"]
614 #[inline(always)]
615 pub fn mstpd3(
616 self,
617 ) -> crate::common::RegisterField<3, 0x1, 1, 0, mstpcrd::Mstpd3, Mstpcrd_SPEC, crate::common::RW>
618 {
619 crate::common::RegisterField::<3,0x1,1,0,mstpcrd::Mstpd3, Mstpcrd_SPEC,crate::common::RW>::from_register(self,0)
620 }
621 #[doc = "Port Output Enable for GPT Group D Module Stop"]
622 #[inline(always)]
623 pub fn mstpd11(
624 self,
625 ) -> crate::common::RegisterField<
626 11,
627 0x1,
628 1,
629 0,
630 mstpcrd::Mstpd11,
631 Mstpcrd_SPEC,
632 crate::common::RW,
633 > {
634 crate::common::RegisterField::<
635 11,
636 0x1,
637 1,
638 0,
639 mstpcrd::Mstpd11,
640 Mstpcrd_SPEC,
641 crate::common::RW,
642 >::from_register(self, 0)
643 }
644 #[doc = "Port Output Enable for GPT Group C Module Stop"]
645 #[inline(always)]
646 pub fn mstpd12(
647 self,
648 ) -> crate::common::RegisterField<
649 12,
650 0x1,
651 1,
652 0,
653 mstpcrd::Mstpd12,
654 Mstpcrd_SPEC,
655 crate::common::RW,
656 > {
657 crate::common::RegisterField::<
658 12,
659 0x1,
660 1,
661 0,
662 mstpcrd::Mstpd12,
663 Mstpcrd_SPEC,
664 crate::common::RW,
665 >::from_register(self, 0)
666 }
667 #[doc = "Port Output Enable for GPT Group B Module Stop"]
668 #[inline(always)]
669 pub fn mstpd13(
670 self,
671 ) -> crate::common::RegisterField<
672 13,
673 0x1,
674 1,
675 0,
676 mstpcrd::Mstpd13,
677 Mstpcrd_SPEC,
678 crate::common::RW,
679 > {
680 crate::common::RegisterField::<
681 13,
682 0x1,
683 1,
684 0,
685 mstpcrd::Mstpd13,
686 Mstpcrd_SPEC,
687 crate::common::RW,
688 >::from_register(self, 0)
689 }
690 #[doc = "Port Output Enable for GPT Group A Module Stop"]
691 #[inline(always)]
692 pub fn mstpd14(
693 self,
694 ) -> crate::common::RegisterField<
695 14,
696 0x1,
697 1,
698 0,
699 mstpcrd::Mstpd14,
700 Mstpcrd_SPEC,
701 crate::common::RW,
702 > {
703 crate::common::RegisterField::<
704 14,
705 0x1,
706 1,
707 0,
708 mstpcrd::Mstpd14,
709 Mstpcrd_SPEC,
710 crate::common::RW,
711 >::from_register(self, 0)
712 }
713 #[doc = "12-bit A/D Converter 0 Module Stop"]
714 #[inline(always)]
715 pub fn mstpd16(
716 self,
717 ) -> crate::common::RegisterField<
718 16,
719 0x1,
720 1,
721 0,
722 mstpcrd::Mstpd16,
723 Mstpcrd_SPEC,
724 crate::common::RW,
725 > {
726 crate::common::RegisterField::<
727 16,
728 0x1,
729 1,
730 0,
731 mstpcrd::Mstpd16,
732 Mstpcrd_SPEC,
733 crate::common::RW,
734 >::from_register(self, 0)
735 }
736 #[doc = "12-bit D/A Converter Module Stop"]
737 #[inline(always)]
738 pub fn mstpd20(
739 self,
740 ) -> crate::common::RegisterField<
741 20,
742 0x1,
743 1,
744 0,
745 mstpcrd::Mstpd20,
746 Mstpcrd_SPEC,
747 crate::common::RW,
748 > {
749 crate::common::RegisterField::<
750 20,
751 0x1,
752 1,
753 0,
754 mstpcrd::Mstpd20,
755 Mstpcrd_SPEC,
756 crate::common::RW,
757 >::from_register(self, 0)
758 }
759 #[doc = "Temperature Sensor Module Stop"]
760 #[inline(always)]
761 pub fn mstpd22(
762 self,
763 ) -> crate::common::RegisterField<
764 22,
765 0x1,
766 1,
767 0,
768 mstpcrd::Mstpd22,
769 Mstpcrd_SPEC,
770 crate::common::RW,
771 > {
772 crate::common::RegisterField::<
773 22,
774 0x1,
775 1,
776 0,
777 mstpcrd::Mstpd22,
778 Mstpcrd_SPEC,
779 crate::common::RW,
780 >::from_register(self, 0)
781 }
782}
783impl ::core::default::Default for Mstpcrd {
784 #[inline(always)]
785 fn default() -> Mstpcrd {
786 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
787 }
788}
789pub mod mstpcrd {
790
791 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
792 pub struct Mstpd2_SPEC;
793 pub type Mstpd2 = crate::EnumBitfieldStruct<u8, Mstpd2_SPEC>;
794 impl Mstpd2 {
795 #[doc = "Cancel the module-stop state"]
796 pub const _0: Self = Self::new(0);
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 Mstpd3_SPEC;
802 pub type Mstpd3 = crate::EnumBitfieldStruct<u8, Mstpd3_SPEC>;
803 impl Mstpd3 {
804 #[doc = "Cancel the module-stop state"]
805 pub const _0: Self = Self::new(0);
806 #[doc = "Enter the module-stop state"]
807 pub const _1: Self = Self::new(1);
808 }
809 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
810 pub struct Mstpd11_SPEC;
811 pub type Mstpd11 = crate::EnumBitfieldStruct<u8, Mstpd11_SPEC>;
812 impl Mstpd11 {
813 #[doc = "Cancel the module-stop state"]
814 pub const _0: Self = Self::new(0);
815 #[doc = "Enter the module-stop state"]
816 pub const _1: Self = Self::new(1);
817 }
818 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
819 pub struct Mstpd12_SPEC;
820 pub type Mstpd12 = crate::EnumBitfieldStruct<u8, Mstpd12_SPEC>;
821 impl Mstpd12 {
822 #[doc = "Cancel the module-stop state"]
823 pub const _0: Self = Self::new(0);
824 #[doc = "Enter the module-stop state"]
825 pub const _1: Self = Self::new(1);
826 }
827 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
828 pub struct Mstpd13_SPEC;
829 pub type Mstpd13 = crate::EnumBitfieldStruct<u8, Mstpd13_SPEC>;
830 impl Mstpd13 {
831 #[doc = "Cancel the module-stop state"]
832 pub const _0: Self = Self::new(0);
833 #[doc = "Enter the module-stop state"]
834 pub const _1: Self = Self::new(1);
835 }
836 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
837 pub struct Mstpd14_SPEC;
838 pub type Mstpd14 = crate::EnumBitfieldStruct<u8, Mstpd14_SPEC>;
839 impl Mstpd14 {
840 #[doc = "Cancel the module-stop state"]
841 pub const _0: Self = Self::new(0);
842 #[doc = "Enter the module-stop state"]
843 pub const _1: Self = Self::new(1);
844 }
845 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
846 pub struct Mstpd16_SPEC;
847 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
848 impl Mstpd16 {
849 #[doc = "Cancel the module-stop state"]
850 pub const _0: Self = Self::new(0);
851 #[doc = "Enter the module-stop state"]
852 pub const _1: Self = Self::new(1);
853 }
854 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
855 pub struct Mstpd20_SPEC;
856 pub type Mstpd20 = crate::EnumBitfieldStruct<u8, Mstpd20_SPEC>;
857 impl Mstpd20 {
858 #[doc = "Cancel the module-stop state"]
859 pub const _0: Self = Self::new(0);
860 #[doc = "Enter the module-stop state"]
861 pub const _1: Self = Self::new(1);
862 }
863 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
864 pub struct Mstpd22_SPEC;
865 pub type Mstpd22 = crate::EnumBitfieldStruct<u8, Mstpd22_SPEC>;
866 impl Mstpd22 {
867 #[doc = "Cancel the module-stop state"]
868 pub const _0: Self = Self::new(0);
869 #[doc = "Enter the module-stop state"]
870 pub const _1: Self = Self::new(1);
871 }
872}
873#[doc(hidden)]
874#[derive(Copy, Clone, Eq, PartialEq)]
875pub struct Mstpcre_SPEC;
876impl crate::sealed::RegSpec for Mstpcre_SPEC {
877 type DataType = u32;
878}
879#[doc = "Module Stop Control Register E"]
880pub type Mstpcre = crate::RegValueT<Mstpcre_SPEC>;
881
882impl Mstpcre {
883 #[doc = "GPT5 Module Stop"]
884 #[inline(always)]
885 pub fn mstpe26(
886 self,
887 ) -> crate::common::RegisterField<
888 26,
889 0x1,
890 1,
891 0,
892 mstpcre::Mstpe26,
893 Mstpcre_SPEC,
894 crate::common::RW,
895 > {
896 crate::common::RegisterField::<
897 26,
898 0x1,
899 1,
900 0,
901 mstpcre::Mstpe26,
902 Mstpcre_SPEC,
903 crate::common::RW,
904 >::from_register(self, 0)
905 }
906 #[doc = "GPT4 Module Stop"]
907 #[inline(always)]
908 pub fn mstpe27(
909 self,
910 ) -> crate::common::RegisterField<
911 27,
912 0x1,
913 1,
914 0,
915 mstpcre::Mstpe27,
916 Mstpcre_SPEC,
917 crate::common::RW,
918 > {
919 crate::common::RegisterField::<
920 27,
921 0x1,
922 1,
923 0,
924 mstpcre::Mstpe27,
925 Mstpcre_SPEC,
926 crate::common::RW,
927 >::from_register(self, 0)
928 }
929 #[doc = "GPT1 Module Stop"]
930 #[inline(always)]
931 pub fn mstpe30(
932 self,
933 ) -> crate::common::RegisterField<
934 30,
935 0x1,
936 1,
937 0,
938 mstpcre::Mstpe30,
939 Mstpcre_SPEC,
940 crate::common::RW,
941 > {
942 crate::common::RegisterField::<
943 30,
944 0x1,
945 1,
946 0,
947 mstpcre::Mstpe30,
948 Mstpcre_SPEC,
949 crate::common::RW,
950 >::from_register(self, 0)
951 }
952 #[doc = "GPT0 Module Stop"]
953 #[inline(always)]
954 pub fn mstpe31(
955 self,
956 ) -> crate::common::RegisterField<
957 31,
958 0x1,
959 1,
960 0,
961 mstpcre::Mstpe31,
962 Mstpcre_SPEC,
963 crate::common::RW,
964 > {
965 crate::common::RegisterField::<
966 31,
967 0x1,
968 1,
969 0,
970 mstpcre::Mstpe31,
971 Mstpcre_SPEC,
972 crate::common::RW,
973 >::from_register(self, 0)
974 }
975}
976impl ::core::default::Default for Mstpcre {
977 #[inline(always)]
978 fn default() -> Mstpcre {
979 <crate::RegValueT<Mstpcre_SPEC> as RegisterValue<_>>::new(4294967295)
980 }
981}
982pub mod mstpcre {
983
984 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
985 pub struct Mstpe26_SPEC;
986 pub type Mstpe26 = crate::EnumBitfieldStruct<u8, Mstpe26_SPEC>;
987 impl Mstpe26 {
988 #[doc = "Cancel the module-stop state"]
989 pub const _0: Self = Self::new(0);
990 #[doc = "Enter the module-stop state"]
991 pub const _1: Self = Self::new(1);
992 }
993 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
994 pub struct Mstpe27_SPEC;
995 pub type Mstpe27 = crate::EnumBitfieldStruct<u8, Mstpe27_SPEC>;
996 impl Mstpe27 {
997 #[doc = "Cancel the module-stop state"]
998 pub const _0: Self = Self::new(0);
999 #[doc = "Enter the module-stop state"]
1000 pub const _1: Self = Self::new(1);
1001 }
1002 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1003 pub struct Mstpe30_SPEC;
1004 pub type Mstpe30 = crate::EnumBitfieldStruct<u8, Mstpe30_SPEC>;
1005 impl Mstpe30 {
1006 #[doc = "Cancel the module-stop state"]
1007 pub const _0: Self = Self::new(0);
1008 #[doc = "Enter the module-stop state"]
1009 pub const _1: Self = Self::new(1);
1010 }
1011 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1012 pub struct Mstpe31_SPEC;
1013 pub type Mstpe31 = crate::EnumBitfieldStruct<u8, Mstpe31_SPEC>;
1014 impl Mstpe31 {
1015 #[doc = "Cancel the module-stop state"]
1016 pub const _0: Self = Self::new(0);
1017 #[doc = "Enter the module-stop state"]
1018 pub const _1: Self = Self::new(1);
1019 }
1020}