1#[doc = "Register `MRCC_GLB_ACC2` reader"]
2pub type R = crate::R<MrccGlbAcc2Spec>;
3#[doc = "Register `MRCC_GLB_ACC2` writer"]
4pub type W = crate::W<MrccGlbAcc2Spec>;
5#[doc = "RAMA\n\nValue on reset: 1"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum Rama {
9 #[doc = "0: Automatic clock gating is disabled"]
10 Disabled = 0,
11 #[doc = "1: Automatic clock gating is enabled"]
12 Enabled = 1,
13}
14impl From<Rama> for bool {
15 #[inline(always)]
16 fn from(variant: Rama) -> Self {
17 variant as u8 != 0
18 }
19}
20#[doc = "Field `RAMA` reader - RAMA"]
21pub type RamaR = crate::BitReader<Rama>;
22impl RamaR {
23 #[doc = "Get enumerated values variant"]
24 #[inline(always)]
25 pub const fn variant(&self) -> Rama {
26 match self.bits {
27 false => Rama::Disabled,
28 true => Rama::Enabled,
29 }
30 }
31 #[doc = "Automatic clock gating is disabled"]
32 #[inline(always)]
33 pub fn is_disabled(&self) -> bool {
34 *self == Rama::Disabled
35 }
36 #[doc = "Automatic clock gating is enabled"]
37 #[inline(always)]
38 pub fn is_enabled(&self) -> bool {
39 *self == Rama::Enabled
40 }
41}
42#[doc = "Field `RAMA` writer - RAMA"]
43pub type RamaW<'a, REG> = crate::BitWriter<'a, REG, Rama>;
44impl<'a, REG> RamaW<'a, REG>
45where
46 REG: crate::Writable + crate::RegisterSpec,
47{
48 #[doc = "Automatic clock gating is disabled"]
49 #[inline(always)]
50 pub fn disabled(self) -> &'a mut crate::W<REG> {
51 self.variant(Rama::Disabled)
52 }
53 #[doc = "Automatic clock gating is enabled"]
54 #[inline(always)]
55 pub fn enabled(self) -> &'a mut crate::W<REG> {
56 self.variant(Rama::Enabled)
57 }
58}
59#[doc = "RAMB\n\nValue on reset: 1"]
60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum Ramb {
63 #[doc = "0: Automatic clock gating is disabled"]
64 Disabled = 0,
65 #[doc = "1: Automatic clock gating is enabled"]
66 Enabled = 1,
67}
68impl From<Ramb> for bool {
69 #[inline(always)]
70 fn from(variant: Ramb) -> Self {
71 variant as u8 != 0
72 }
73}
74#[doc = "Field `RAMB` reader - RAMB"]
75pub type RambR = crate::BitReader<Ramb>;
76impl RambR {
77 #[doc = "Get enumerated values variant"]
78 #[inline(always)]
79 pub const fn variant(&self) -> Ramb {
80 match self.bits {
81 false => Ramb::Disabled,
82 true => Ramb::Enabled,
83 }
84 }
85 #[doc = "Automatic clock gating is disabled"]
86 #[inline(always)]
87 pub fn is_disabled(&self) -> bool {
88 *self == Ramb::Disabled
89 }
90 #[doc = "Automatic clock gating is enabled"]
91 #[inline(always)]
92 pub fn is_enabled(&self) -> bool {
93 *self == Ramb::Enabled
94 }
95}
96#[doc = "Field `RAMB` writer - RAMB"]
97pub type RambW<'a, REG> = crate::BitWriter<'a, REG, Ramb>;
98impl<'a, REG> RambW<'a, REG>
99where
100 REG: crate::Writable + crate::RegisterSpec,
101{
102 #[doc = "Automatic clock gating is disabled"]
103 #[inline(always)]
104 pub fn disabled(self) -> &'a mut crate::W<REG> {
105 self.variant(Ramb::Disabled)
106 }
107 #[doc = "Automatic clock gating is enabled"]
108 #[inline(always)]
109 pub fn enabled(self) -> &'a mut crate::W<REG> {
110 self.variant(Ramb::Enabled)
111 }
112}
113#[doc = "RAMC\n\nValue on reset: 1"]
114#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum Ramc {
117 #[doc = "0: Automatic clock gating is disabled"]
118 Disabled = 0,
119 #[doc = "1: Automatic clock gating is enabled"]
120 Enabled = 1,
121}
122impl From<Ramc> for bool {
123 #[inline(always)]
124 fn from(variant: Ramc) -> Self {
125 variant as u8 != 0
126 }
127}
128#[doc = "Field `RAMC` reader - RAMC"]
129pub type RamcR = crate::BitReader<Ramc>;
130impl RamcR {
131 #[doc = "Get enumerated values variant"]
132 #[inline(always)]
133 pub const fn variant(&self) -> Ramc {
134 match self.bits {
135 false => Ramc::Disabled,
136 true => Ramc::Enabled,
137 }
138 }
139 #[doc = "Automatic clock gating is disabled"]
140 #[inline(always)]
141 pub fn is_disabled(&self) -> bool {
142 *self == Ramc::Disabled
143 }
144 #[doc = "Automatic clock gating is enabled"]
145 #[inline(always)]
146 pub fn is_enabled(&self) -> bool {
147 *self == Ramc::Enabled
148 }
149}
150#[doc = "Field `RAMC` writer - RAMC"]
151pub type RamcW<'a, REG> = crate::BitWriter<'a, REG, Ramc>;
152impl<'a, REG> RamcW<'a, REG>
153where
154 REG: crate::Writable + crate::RegisterSpec,
155{
156 #[doc = "Automatic clock gating is disabled"]
157 #[inline(always)]
158 pub fn disabled(self) -> &'a mut crate::W<REG> {
159 self.variant(Ramc::Disabled)
160 }
161 #[doc = "Automatic clock gating is enabled"]
162 #[inline(always)]
163 pub fn enabled(self) -> &'a mut crate::W<REG> {
164 self.variant(Ramc::Enabled)
165 }
166}
167#[doc = "GPIO0\n\nValue on reset: 0"]
168#[cfg_attr(feature = "defmt", derive(defmt::Format))]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum Gpio0 {
171 #[doc = "0: Automatic clock gating is disabled"]
172 Disabled = 0,
173 #[doc = "1: Automatic clock gating is enabled"]
174 Enabled = 1,
175}
176impl From<Gpio0> for bool {
177 #[inline(always)]
178 fn from(variant: Gpio0) -> Self {
179 variant as u8 != 0
180 }
181}
182#[doc = "Field `GPIO0` reader - GPIO0"]
183pub type Gpio0R = crate::BitReader<Gpio0>;
184impl Gpio0R {
185 #[doc = "Get enumerated values variant"]
186 #[inline(always)]
187 pub const fn variant(&self) -> Gpio0 {
188 match self.bits {
189 false => Gpio0::Disabled,
190 true => Gpio0::Enabled,
191 }
192 }
193 #[doc = "Automatic clock gating is disabled"]
194 #[inline(always)]
195 pub fn is_disabled(&self) -> bool {
196 *self == Gpio0::Disabled
197 }
198 #[doc = "Automatic clock gating is enabled"]
199 #[inline(always)]
200 pub fn is_enabled(&self) -> bool {
201 *self == Gpio0::Enabled
202 }
203}
204#[doc = "Field `GPIO0` writer - GPIO0"]
205pub type Gpio0W<'a, REG> = crate::BitWriter<'a, REG, Gpio0>;
206impl<'a, REG> Gpio0W<'a, REG>
207where
208 REG: crate::Writable + crate::RegisterSpec,
209{
210 #[doc = "Automatic clock gating is disabled"]
211 #[inline(always)]
212 pub fn disabled(self) -> &'a mut crate::W<REG> {
213 self.variant(Gpio0::Disabled)
214 }
215 #[doc = "Automatic clock gating is enabled"]
216 #[inline(always)]
217 pub fn enabled(self) -> &'a mut crate::W<REG> {
218 self.variant(Gpio0::Enabled)
219 }
220}
221#[doc = "GPIO1\n\nValue on reset: 0"]
222#[cfg_attr(feature = "defmt", derive(defmt::Format))]
223#[derive(Clone, Copy, Debug, PartialEq, Eq)]
224pub enum Gpio1 {
225 #[doc = "0: Automatic clock gating is disabled"]
226 Disabled = 0,
227 #[doc = "1: Automatic clock gating is enabled"]
228 Enabled = 1,
229}
230impl From<Gpio1> for bool {
231 #[inline(always)]
232 fn from(variant: Gpio1) -> Self {
233 variant as u8 != 0
234 }
235}
236#[doc = "Field `GPIO1` reader - GPIO1"]
237pub type Gpio1R = crate::BitReader<Gpio1>;
238impl Gpio1R {
239 #[doc = "Get enumerated values variant"]
240 #[inline(always)]
241 pub const fn variant(&self) -> Gpio1 {
242 match self.bits {
243 false => Gpio1::Disabled,
244 true => Gpio1::Enabled,
245 }
246 }
247 #[doc = "Automatic clock gating is disabled"]
248 #[inline(always)]
249 pub fn is_disabled(&self) -> bool {
250 *self == Gpio1::Disabled
251 }
252 #[doc = "Automatic clock gating is enabled"]
253 #[inline(always)]
254 pub fn is_enabled(&self) -> bool {
255 *self == Gpio1::Enabled
256 }
257}
258#[doc = "Field `GPIO1` writer - GPIO1"]
259pub type Gpio1W<'a, REG> = crate::BitWriter<'a, REG, Gpio1>;
260impl<'a, REG> Gpio1W<'a, REG>
261where
262 REG: crate::Writable + crate::RegisterSpec,
263{
264 #[doc = "Automatic clock gating is disabled"]
265 #[inline(always)]
266 pub fn disabled(self) -> &'a mut crate::W<REG> {
267 self.variant(Gpio1::Disabled)
268 }
269 #[doc = "Automatic clock gating is enabled"]
270 #[inline(always)]
271 pub fn enabled(self) -> &'a mut crate::W<REG> {
272 self.variant(Gpio1::Enabled)
273 }
274}
275#[doc = "GPIO2\n\nValue on reset: 0"]
276#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum Gpio2 {
279 #[doc = "0: Automatic clock gating is disabled"]
280 Disabled = 0,
281 #[doc = "1: Automatic clock gating is enabled"]
282 Enabled = 1,
283}
284impl From<Gpio2> for bool {
285 #[inline(always)]
286 fn from(variant: Gpio2) -> Self {
287 variant as u8 != 0
288 }
289}
290#[doc = "Field `GPIO2` reader - GPIO2"]
291pub type Gpio2R = crate::BitReader<Gpio2>;
292impl Gpio2R {
293 #[doc = "Get enumerated values variant"]
294 #[inline(always)]
295 pub const fn variant(&self) -> Gpio2 {
296 match self.bits {
297 false => Gpio2::Disabled,
298 true => Gpio2::Enabled,
299 }
300 }
301 #[doc = "Automatic clock gating is disabled"]
302 #[inline(always)]
303 pub fn is_disabled(&self) -> bool {
304 *self == Gpio2::Disabled
305 }
306 #[doc = "Automatic clock gating is enabled"]
307 #[inline(always)]
308 pub fn is_enabled(&self) -> bool {
309 *self == Gpio2::Enabled
310 }
311}
312#[doc = "Field `GPIO2` writer - GPIO2"]
313pub type Gpio2W<'a, REG> = crate::BitWriter<'a, REG, Gpio2>;
314impl<'a, REG> Gpio2W<'a, REG>
315where
316 REG: crate::Writable + crate::RegisterSpec,
317{
318 #[doc = "Automatic clock gating is disabled"]
319 #[inline(always)]
320 pub fn disabled(self) -> &'a mut crate::W<REG> {
321 self.variant(Gpio2::Disabled)
322 }
323 #[doc = "Automatic clock gating is enabled"]
324 #[inline(always)]
325 pub fn enabled(self) -> &'a mut crate::W<REG> {
326 self.variant(Gpio2::Enabled)
327 }
328}
329#[doc = "GPIO3\n\nValue on reset: 0"]
330#[cfg_attr(feature = "defmt", derive(defmt::Format))]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum Gpio3 {
333 #[doc = "0: Automatic clock gating is disabled"]
334 Disabled = 0,
335 #[doc = "1: Automatic clock gating is enabled"]
336 Enabled = 1,
337}
338impl From<Gpio3> for bool {
339 #[inline(always)]
340 fn from(variant: Gpio3) -> Self {
341 variant as u8 != 0
342 }
343}
344#[doc = "Field `GPIO3` reader - GPIO3"]
345pub type Gpio3R = crate::BitReader<Gpio3>;
346impl Gpio3R {
347 #[doc = "Get enumerated values variant"]
348 #[inline(always)]
349 pub const fn variant(&self) -> Gpio3 {
350 match self.bits {
351 false => Gpio3::Disabled,
352 true => Gpio3::Enabled,
353 }
354 }
355 #[doc = "Automatic clock gating is disabled"]
356 #[inline(always)]
357 pub fn is_disabled(&self) -> bool {
358 *self == Gpio3::Disabled
359 }
360 #[doc = "Automatic clock gating is enabled"]
361 #[inline(always)]
362 pub fn is_enabled(&self) -> bool {
363 *self == Gpio3::Enabled
364 }
365}
366#[doc = "Field `GPIO3` writer - GPIO3"]
367pub type Gpio3W<'a, REG> = crate::BitWriter<'a, REG, Gpio3>;
368impl<'a, REG> Gpio3W<'a, REG>
369where
370 REG: crate::Writable + crate::RegisterSpec,
371{
372 #[doc = "Automatic clock gating is disabled"]
373 #[inline(always)]
374 pub fn disabled(self) -> &'a mut crate::W<REG> {
375 self.variant(Gpio3::Disabled)
376 }
377 #[doc = "Automatic clock gating is enabled"]
378 #[inline(always)]
379 pub fn enabled(self) -> &'a mut crate::W<REG> {
380 self.variant(Gpio3::Enabled)
381 }
382}
383#[doc = "GPIO4\n\nValue on reset: 0"]
384#[cfg_attr(feature = "defmt", derive(defmt::Format))]
385#[derive(Clone, Copy, Debug, PartialEq, Eq)]
386pub enum Gpio4 {
387 #[doc = "0: Automatic clock gating is disabled"]
388 Disabled = 0,
389 #[doc = "1: Automatic clock gating is enabled"]
390 Enabled = 1,
391}
392impl From<Gpio4> for bool {
393 #[inline(always)]
394 fn from(variant: Gpio4) -> Self {
395 variant as u8 != 0
396 }
397}
398#[doc = "Field `GPIO4` reader - GPIO4"]
399pub type Gpio4R = crate::BitReader<Gpio4>;
400impl Gpio4R {
401 #[doc = "Get enumerated values variant"]
402 #[inline(always)]
403 pub const fn variant(&self) -> Gpio4 {
404 match self.bits {
405 false => Gpio4::Disabled,
406 true => Gpio4::Enabled,
407 }
408 }
409 #[doc = "Automatic clock gating is disabled"]
410 #[inline(always)]
411 pub fn is_disabled(&self) -> bool {
412 *self == Gpio4::Disabled
413 }
414 #[doc = "Automatic clock gating is enabled"]
415 #[inline(always)]
416 pub fn is_enabled(&self) -> bool {
417 *self == Gpio4::Enabled
418 }
419}
420#[doc = "Field `GPIO4` writer - GPIO4"]
421pub type Gpio4W<'a, REG> = crate::BitWriter<'a, REG, Gpio4>;
422impl<'a, REG> Gpio4W<'a, REG>
423where
424 REG: crate::Writable + crate::RegisterSpec,
425{
426 #[doc = "Automatic clock gating is disabled"]
427 #[inline(always)]
428 pub fn disabled(self) -> &'a mut crate::W<REG> {
429 self.variant(Gpio4::Disabled)
430 }
431 #[doc = "Automatic clock gating is enabled"]
432 #[inline(always)]
433 pub fn enabled(self) -> &'a mut crate::W<REG> {
434 self.variant(Gpio4::Enabled)
435 }
436}
437#[doc = "MAU0\n\nValue on reset: 0"]
438#[cfg_attr(feature = "defmt", derive(defmt::Format))]
439#[derive(Clone, Copy, Debug, PartialEq, Eq)]
440pub enum Mau0 {
441 #[doc = "0: Automatic clock gating is disabled"]
442 Disabled = 0,
443 #[doc = "1: Automatic clock gating is enabled"]
444 Enabled = 1,
445}
446impl From<Mau0> for bool {
447 #[inline(always)]
448 fn from(variant: Mau0) -> Self {
449 variant as u8 != 0
450 }
451}
452#[doc = "Field `MAU0` reader - MAU0"]
453pub type Mau0R = crate::BitReader<Mau0>;
454impl Mau0R {
455 #[doc = "Get enumerated values variant"]
456 #[inline(always)]
457 pub const fn variant(&self) -> Mau0 {
458 match self.bits {
459 false => Mau0::Disabled,
460 true => Mau0::Enabled,
461 }
462 }
463 #[doc = "Automatic clock gating is disabled"]
464 #[inline(always)]
465 pub fn is_disabled(&self) -> bool {
466 *self == Mau0::Disabled
467 }
468 #[doc = "Automatic clock gating is enabled"]
469 #[inline(always)]
470 pub fn is_enabled(&self) -> bool {
471 *self == Mau0::Enabled
472 }
473}
474#[doc = "Field `MAU0` writer - MAU0"]
475pub type Mau0W<'a, REG> = crate::BitWriter<'a, REG, Mau0>;
476impl<'a, REG> Mau0W<'a, REG>
477where
478 REG: crate::Writable + crate::RegisterSpec,
479{
480 #[doc = "Automatic clock gating is disabled"]
481 #[inline(always)]
482 pub fn disabled(self) -> &'a mut crate::W<REG> {
483 self.variant(Mau0::Disabled)
484 }
485 #[doc = "Automatic clock gating is enabled"]
486 #[inline(always)]
487 pub fn enabled(self) -> &'a mut crate::W<REG> {
488 self.variant(Mau0::Enabled)
489 }
490}
491#[doc = "ROMC\n\nValue on reset: 1"]
492#[cfg_attr(feature = "defmt", derive(defmt::Format))]
493#[derive(Clone, Copy, Debug, PartialEq, Eq)]
494pub enum Romc {
495 #[doc = "0: Automatic clock gating is disabled"]
496 Disabled = 0,
497 #[doc = "1: Automatic clock gating is enabled"]
498 Enabled = 1,
499}
500impl From<Romc> for bool {
501 #[inline(always)]
502 fn from(variant: Romc) -> Self {
503 variant as u8 != 0
504 }
505}
506#[doc = "Field `ROMC` reader - ROMC"]
507pub type RomcR = crate::BitReader<Romc>;
508impl RomcR {
509 #[doc = "Get enumerated values variant"]
510 #[inline(always)]
511 pub const fn variant(&self) -> Romc {
512 match self.bits {
513 false => Romc::Disabled,
514 true => Romc::Enabled,
515 }
516 }
517 #[doc = "Automatic clock gating is disabled"]
518 #[inline(always)]
519 pub fn is_disabled(&self) -> bool {
520 *self == Romc::Disabled
521 }
522 #[doc = "Automatic clock gating is enabled"]
523 #[inline(always)]
524 pub fn is_enabled(&self) -> bool {
525 *self == Romc::Enabled
526 }
527}
528#[doc = "Field `ROMC` writer - ROMC"]
529pub type RomcW<'a, REG> = crate::BitWriter<'a, REG, Romc>;
530impl<'a, REG> RomcW<'a, REG>
531where
532 REG: crate::Writable + crate::RegisterSpec,
533{
534 #[doc = "Automatic clock gating is disabled"]
535 #[inline(always)]
536 pub fn disabled(self) -> &'a mut crate::W<REG> {
537 self.variant(Romc::Disabled)
538 }
539 #[doc = "Automatic clock gating is enabled"]
540 #[inline(always)]
541 pub fn enabled(self) -> &'a mut crate::W<REG> {
542 self.variant(Romc::Enabled)
543 }
544}
545impl R {
546 #[doc = "Bit 1 - RAMA"]
547 #[inline(always)]
548 pub fn rama(&self) -> RamaR {
549 RamaR::new(((self.bits >> 1) & 1) != 0)
550 }
551 #[doc = "Bit 2 - RAMB"]
552 #[inline(always)]
553 pub fn ramb(&self) -> RambR {
554 RambR::new(((self.bits >> 2) & 1) != 0)
555 }
556 #[doc = "Bit 3 - RAMC"]
557 #[inline(always)]
558 pub fn ramc(&self) -> RamcR {
559 RamcR::new(((self.bits >> 3) & 1) != 0)
560 }
561 #[doc = "Bit 4 - GPIO0"]
562 #[inline(always)]
563 pub fn gpio0(&self) -> Gpio0R {
564 Gpio0R::new(((self.bits >> 4) & 1) != 0)
565 }
566 #[doc = "Bit 5 - GPIO1"]
567 #[inline(always)]
568 pub fn gpio1(&self) -> Gpio1R {
569 Gpio1R::new(((self.bits >> 5) & 1) != 0)
570 }
571 #[doc = "Bit 6 - GPIO2"]
572 #[inline(always)]
573 pub fn gpio2(&self) -> Gpio2R {
574 Gpio2R::new(((self.bits >> 6) & 1) != 0)
575 }
576 #[doc = "Bit 7 - GPIO3"]
577 #[inline(always)]
578 pub fn gpio3(&self) -> Gpio3R {
579 Gpio3R::new(((self.bits >> 7) & 1) != 0)
580 }
581 #[doc = "Bit 8 - GPIO4"]
582 #[inline(always)]
583 pub fn gpio4(&self) -> Gpio4R {
584 Gpio4R::new(((self.bits >> 8) & 1) != 0)
585 }
586 #[doc = "Bit 9 - MAU0"]
587 #[inline(always)]
588 pub fn mau0(&self) -> Mau0R {
589 Mau0R::new(((self.bits >> 9) & 1) != 0)
590 }
591 #[doc = "Bit 10 - ROMC"]
592 #[inline(always)]
593 pub fn romc(&self) -> RomcR {
594 RomcR::new(((self.bits >> 10) & 1) != 0)
595 }
596}
597#[cfg(feature = "debug")]
598impl core::fmt::Debug for R {
599 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
600 f.debug_struct("MRCC_GLB_ACC2")
601 .field("rama", &self.rama())
602 .field("ramb", &self.ramb())
603 .field("ramc", &self.ramc())
604 .field("gpio0", &self.gpio0())
605 .field("gpio1", &self.gpio1())
606 .field("gpio2", &self.gpio2())
607 .field("gpio3", &self.gpio3())
608 .field("gpio4", &self.gpio4())
609 .field("mau0", &self.mau0())
610 .field("romc", &self.romc())
611 .finish()
612 }
613}
614impl W {
615 #[doc = "Bit 1 - RAMA"]
616 #[inline(always)]
617 pub fn rama(&mut self) -> RamaW<'_, MrccGlbAcc2Spec> {
618 RamaW::new(self, 1)
619 }
620 #[doc = "Bit 2 - RAMB"]
621 #[inline(always)]
622 pub fn ramb(&mut self) -> RambW<'_, MrccGlbAcc2Spec> {
623 RambW::new(self, 2)
624 }
625 #[doc = "Bit 3 - RAMC"]
626 #[inline(always)]
627 pub fn ramc(&mut self) -> RamcW<'_, MrccGlbAcc2Spec> {
628 RamcW::new(self, 3)
629 }
630 #[doc = "Bit 4 - GPIO0"]
631 #[inline(always)]
632 pub fn gpio0(&mut self) -> Gpio0W<'_, MrccGlbAcc2Spec> {
633 Gpio0W::new(self, 4)
634 }
635 #[doc = "Bit 5 - GPIO1"]
636 #[inline(always)]
637 pub fn gpio1(&mut self) -> Gpio1W<'_, MrccGlbAcc2Spec> {
638 Gpio1W::new(self, 5)
639 }
640 #[doc = "Bit 6 - GPIO2"]
641 #[inline(always)]
642 pub fn gpio2(&mut self) -> Gpio2W<'_, MrccGlbAcc2Spec> {
643 Gpio2W::new(self, 6)
644 }
645 #[doc = "Bit 7 - GPIO3"]
646 #[inline(always)]
647 pub fn gpio3(&mut self) -> Gpio3W<'_, MrccGlbAcc2Spec> {
648 Gpio3W::new(self, 7)
649 }
650 #[doc = "Bit 8 - GPIO4"]
651 #[inline(always)]
652 pub fn gpio4(&mut self) -> Gpio4W<'_, MrccGlbAcc2Spec> {
653 Gpio4W::new(self, 8)
654 }
655 #[doc = "Bit 9 - MAU0"]
656 #[inline(always)]
657 pub fn mau0(&mut self) -> Mau0W<'_, MrccGlbAcc2Spec> {
658 Mau0W::new(self, 9)
659 }
660 #[doc = "Bit 10 - ROMC"]
661 #[inline(always)]
662 pub fn romc(&mut self) -> RomcW<'_, MrccGlbAcc2Spec> {
663 RomcW::new(self, 10)
664 }
665}
666#[doc = "Control Automatic Clock Gating 2\n\nYou can [`read`](crate::Reg::read) this register and get [`mrcc_glb_acc2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mrcc_glb_acc2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
667pub struct MrccGlbAcc2Spec;
668impl crate::RegisterSpec for MrccGlbAcc2Spec {
669 type Ux = u32;
670}
671#[doc = "`read()` method returns [`mrcc_glb_acc2::R`](R) reader structure"]
672impl crate::Readable for MrccGlbAcc2Spec {}
673#[doc = "`write(|w| ..)` method takes [`mrcc_glb_acc2::W`](W) writer structure"]
674impl crate::Writable for MrccGlbAcc2Spec {
675 type Safety = crate::Unsafe;
676}
677#[doc = "`reset()` method sets MRCC_GLB_ACC2 to value 0x040e"]
678impl crate::Resettable for MrccGlbAcc2Spec {
679 const RESET_VALUE: u32 = 0x040e;
680}