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 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 Array Unit 0 Module Stop"]
85 #[inline(always)]
86 pub fn mstpb6(
87 self,
88 ) -> crate::common::RegisterField<
89 6,
90 0x1,
91 1,
92 0,
93 mstpcrb::Mstpb6,
94 mstpcrb::Mstpb6,
95 Mstpcrb_SPEC,
96 crate::common::RW,
97 > {
98 crate::common::RegisterField::<
99 6,
100 0x1,
101 1,
102 0,
103 mstpcrb::Mstpb6,
104 mstpcrb::Mstpb6,
105 Mstpcrb_SPEC,
106 crate::common::RW,
107 >::from_register(self, 0)
108 }
109
110 #[doc = "Serial Array Unit 1 Module Stop"]
111 #[inline(always)]
112 pub fn mstpb7(
113 self,
114 ) -> crate::common::RegisterField<
115 7,
116 0x1,
117 1,
118 0,
119 mstpcrb::Mstpb7,
120 mstpcrb::Mstpb7,
121 Mstpcrb_SPEC,
122 crate::common::RW,
123 > {
124 crate::common::RegisterField::<
125 7,
126 0x1,
127 1,
128 0,
129 mstpcrb::Mstpb7,
130 mstpcrb::Mstpb7,
131 Mstpcrb_SPEC,
132 crate::common::RW,
133 >::from_register(self, 0)
134 }
135
136 #[doc = "I2C Bus Interface Module Stop"]
137 #[inline(always)]
138 pub fn mstpb10(
139 self,
140 ) -> crate::common::RegisterField<
141 10,
142 0x1,
143 1,
144 0,
145 mstpcrb::Mstpb10,
146 mstpcrb::Mstpb10,
147 Mstpcrb_SPEC,
148 crate::common::RW,
149 > {
150 crate::common::RegisterField::<
151 10,
152 0x1,
153 1,
154 0,
155 mstpcrb::Mstpb10,
156 mstpcrb::Mstpb10,
157 Mstpcrb_SPEC,
158 crate::common::RW,
159 >::from_register(self, 0)
160 }
161
162 #[doc = "Serial Interface UARTA Module Stop"]
163 #[inline(always)]
164 pub fn mstpb15(
165 self,
166 ) -> crate::common::RegisterField<
167 15,
168 0x1,
169 1,
170 0,
171 mstpcrb::Mstpb15,
172 mstpcrb::Mstpb15,
173 Mstpcrb_SPEC,
174 crate::common::RW,
175 > {
176 crate::common::RegisterField::<
177 15,
178 0x1,
179 1,
180 0,
181 mstpcrb::Mstpb15,
182 mstpcrb::Mstpb15,
183 Mstpcrb_SPEC,
184 crate::common::RW,
185 >::from_register(self, 0)
186 }
187}
188impl ::core::default::Default for Mstpcrb {
189 #[inline(always)]
190 fn default() -> Mstpcrb {
191 <crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
192 }
193}
194pub mod mstpcrb {
195
196 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
197 pub struct Mstpb6_SPEC;
198 pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
199 impl Mstpb6 {
200 #[doc = "Cancel the module-stop state"]
201 pub const _0: Self = Self::new(0);
202
203 #[doc = "Enter the module-stop state"]
204 pub const _1: Self = Self::new(1);
205 }
206 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
207 pub struct Mstpb7_SPEC;
208 pub type Mstpb7 = crate::EnumBitfieldStruct<u8, Mstpb7_SPEC>;
209 impl Mstpb7 {
210 #[doc = "Cancel the module-stop state"]
211 pub const _0: Self = Self::new(0);
212
213 #[doc = "Enter the module-stop state"]
214 pub const _1: Self = Self::new(1);
215 }
216 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
217 pub struct Mstpb10_SPEC;
218 pub type Mstpb10 = crate::EnumBitfieldStruct<u8, Mstpb10_SPEC>;
219 impl Mstpb10 {
220 #[doc = "Cancel the module-stop state"]
221 pub const _0: Self = Self::new(0);
222
223 #[doc = "Enter the module-stop state"]
224 pub const _1: Self = Self::new(1);
225 }
226 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
227 pub struct Mstpb15_SPEC;
228 pub type Mstpb15 = crate::EnumBitfieldStruct<u8, Mstpb15_SPEC>;
229 impl Mstpb15 {
230 #[doc = "Cancel the module-stop state"]
231 pub const _0: Self = Self::new(0);
232
233 #[doc = "Enter the module-stop state"]
234 pub const _1: Self = Self::new(1);
235 }
236}
237#[doc(hidden)]
238#[derive(Copy, Clone, Eq, PartialEq)]
239pub struct Mstpcrc_SPEC;
240impl crate::sealed::RegSpec for Mstpcrc_SPEC {
241 type DataType = u32;
242}
243
244#[doc = "Module Stop Control Register C"]
245pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
246
247impl Mstpcrc {
248 #[doc = "Cyclic Redundancy Check Calculator Module Stop"]
249 #[inline(always)]
250 pub fn mstpc1(
251 self,
252 ) -> crate::common::RegisterField<
253 1,
254 0x1,
255 1,
256 0,
257 mstpcrc::Mstpc1,
258 mstpcrc::Mstpc1,
259 Mstpcrc_SPEC,
260 crate::common::RW,
261 > {
262 crate::common::RegisterField::<
263 1,
264 0x1,
265 1,
266 0,
267 mstpcrc::Mstpc1,
268 mstpcrc::Mstpc1,
269 Mstpcrc_SPEC,
270 crate::common::RW,
271 >::from_register(self, 0)
272 }
273
274 #[doc = "Event Link Controller Module Stop"]
275 #[inline(always)]
276 pub fn mstpc14(
277 self,
278 ) -> crate::common::RegisterField<
279 14,
280 0x1,
281 1,
282 0,
283 mstpcrc::Mstpc14,
284 mstpcrc::Mstpc14,
285 Mstpcrc_SPEC,
286 crate::common::RW,
287 > {
288 crate::common::RegisterField::<
289 14,
290 0x1,
291 1,
292 0,
293 mstpcrc::Mstpc14,
294 mstpcrc::Mstpc14,
295 Mstpcrc_SPEC,
296 crate::common::RW,
297 >::from_register(self, 0)
298 }
299
300 #[doc = "True Random Number Generator Module Stop"]
301 #[inline(always)]
302 pub fn mstpc28(
303 self,
304 ) -> crate::common::RegisterField<
305 28,
306 0x1,
307 1,
308 0,
309 mstpcrc::Mstpc28,
310 mstpcrc::Mstpc28,
311 Mstpcrc_SPEC,
312 crate::common::RW,
313 > {
314 crate::common::RegisterField::<
315 28,
316 0x1,
317 1,
318 0,
319 mstpcrc::Mstpc28,
320 mstpcrc::Mstpc28,
321 Mstpcrc_SPEC,
322 crate::common::RW,
323 >::from_register(self, 0)
324 }
325}
326impl ::core::default::Default for Mstpcrc {
327 #[inline(always)]
328 fn default() -> Mstpcrc {
329 <crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
330 }
331}
332pub mod mstpcrc {
333
334 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
335 pub struct Mstpc1_SPEC;
336 pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
337 impl Mstpc1 {
338 #[doc = "Cancel the module-stop state"]
339 pub const _0: Self = Self::new(0);
340
341 #[doc = "Enter the module-stop state"]
342 pub const _1: Self = Self::new(1);
343 }
344 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
345 pub struct Mstpc14_SPEC;
346 pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
347 impl Mstpc14 {
348 #[doc = "Cancel the module-stop state"]
349 pub const _0: Self = Self::new(0);
350
351 #[doc = "Enter the module-stop state"]
352 pub const _1: Self = Self::new(1);
353 }
354 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
355 pub struct Mstpc28_SPEC;
356 pub type Mstpc28 = crate::EnumBitfieldStruct<u8, Mstpc28_SPEC>;
357 impl Mstpc28 {
358 #[doc = "Cancel the module-stop state"]
359 pub const _0: Self = Self::new(0);
360
361 #[doc = "Enter the module-stop state"]
362 pub const _1: Self = Self::new(1);
363 }
364}
365#[doc(hidden)]
366#[derive(Copy, Clone, Eq, PartialEq)]
367pub struct Mstpcrd_SPEC;
368impl crate::sealed::RegSpec for Mstpcrd_SPEC {
369 type DataType = u32;
370}
371
372#[doc = "Module Stop Control Register D"]
373pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
374
375impl Mstpcrd {
376 #[doc = "Timer Array Unit 0 Module Stop"]
377 #[inline(always)]
378 pub fn mstpd0(
379 self,
380 ) -> crate::common::RegisterField<
381 0,
382 0x1,
383 1,
384 0,
385 mstpcrd::Mstpd0,
386 mstpcrd::Mstpd0,
387 Mstpcrd_SPEC,
388 crate::common::RW,
389 > {
390 crate::common::RegisterField::<
391 0,
392 0x1,
393 1,
394 0,
395 mstpcrd::Mstpd0,
396 mstpcrd::Mstpd0,
397 Mstpcrd_SPEC,
398 crate::common::RW,
399 >::from_register(self, 0)
400 }
401
402 #[doc = "32-bit Interval Timer Module Stop"]
403 #[inline(always)]
404 pub fn mstpd4(
405 self,
406 ) -> crate::common::RegisterField<
407 4,
408 0x1,
409 1,
410 0,
411 mstpcrd::Mstpd4,
412 mstpcrd::Mstpd4,
413 Mstpcrd_SPEC,
414 crate::common::RW,
415 > {
416 crate::common::RegisterField::<
417 4,
418 0x1,
419 1,
420 0,
421 mstpcrd::Mstpd4,
422 mstpcrd::Mstpd4,
423 Mstpcrd_SPEC,
424 crate::common::RW,
425 >::from_register(self, 0)
426 }
427
428 #[doc = "A/D Converter Module Stop"]
429 #[inline(always)]
430 pub fn mstpd16(
431 self,
432 ) -> crate::common::RegisterField<
433 16,
434 0x1,
435 1,
436 0,
437 mstpcrd::Mstpd16,
438 mstpcrd::Mstpd16,
439 Mstpcrd_SPEC,
440 crate::common::RW,
441 > {
442 crate::common::RegisterField::<
443 16,
444 0x1,
445 1,
446 0,
447 mstpcrd::Mstpd16,
448 mstpcrd::Mstpd16,
449 Mstpcrd_SPEC,
450 crate::common::RW,
451 >::from_register(self, 0)
452 }
453
454 #[doc = "Realtime Clock Module Stop"]
455 #[inline(always)]
456 pub fn mstpd23(
457 self,
458 ) -> crate::common::RegisterField<
459 23,
460 0x1,
461 1,
462 0,
463 mstpcrd::Mstpd23,
464 mstpcrd::Mstpd23,
465 Mstpcrd_SPEC,
466 crate::common::RW,
467 > {
468 crate::common::RegisterField::<
469 23,
470 0x1,
471 1,
472 0,
473 mstpcrd::Mstpd23,
474 mstpcrd::Mstpd23,
475 Mstpcrd_SPEC,
476 crate::common::RW,
477 >::from_register(self, 0)
478 }
479}
480impl ::core::default::Default for Mstpcrd {
481 #[inline(always)]
482 fn default() -> Mstpcrd {
483 <crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
484 }
485}
486pub mod mstpcrd {
487
488 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
489 pub struct Mstpd0_SPEC;
490 pub type Mstpd0 = crate::EnumBitfieldStruct<u8, Mstpd0_SPEC>;
491 impl Mstpd0 {
492 #[doc = "Cancel the module-stop state"]
493 pub const _0: Self = Self::new(0);
494
495 #[doc = "Enter the module-stop state"]
496 pub const _1: Self = Self::new(1);
497 }
498 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
499 pub struct Mstpd4_SPEC;
500 pub type Mstpd4 = crate::EnumBitfieldStruct<u8, Mstpd4_SPEC>;
501 impl Mstpd4 {
502 #[doc = "Cancel the module-stop state"]
503 pub const _0: Self = Self::new(0);
504
505 #[doc = "Enter the module-stop state"]
506 pub const _1: Self = Self::new(1);
507 }
508 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
509 pub struct Mstpd16_SPEC;
510 pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
511 impl Mstpd16 {
512 #[doc = "Cancel the module-stop state"]
513 pub const _0: Self = Self::new(0);
514
515 #[doc = "Enter the module-stop state"]
516 pub const _1: Self = Self::new(1);
517 }
518 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
519 pub struct Mstpd23_SPEC;
520 pub type Mstpd23 = crate::EnumBitfieldStruct<u8, Mstpd23_SPEC>;
521 impl Mstpd23 {
522 #[doc = "Cancel the module-stop state"]
523 pub const _0: Self = Self::new(0);
524
525 #[doc = "Enter the module-stop state"]
526 pub const _1: Self = Self::new(1);
527 }
528}