1pub type R = crate::R<CNTRrs>;
3pub type W = crate::W<CNTRrs>;
5#[cfg_attr(feature = "defmt", derive(defmt::Format))]
9#[derive(Clone, Copy, Debug, PartialEq, Eq)]
10pub enum FRES {
11 NoReset = 0,
13 Reset = 1,
15}
16impl From<FRES> for bool {
17 #[inline(always)]
18 fn from(variant: FRES) -> Self {
19 variant as u8 != 0
20 }
21}
22pub type FRES_R = crate::BitReader<FRES>;
24impl FRES_R {
25 #[inline(always)]
27 pub const fn variant(&self) -> FRES {
28 match self.bits {
29 false => FRES::NoReset,
30 true => FRES::Reset,
31 }
32 }
33 #[inline(always)]
35 pub fn is_no_reset(&self) -> bool {
36 *self == FRES::NoReset
37 }
38 #[inline(always)]
40 pub fn is_reset(&self) -> bool {
41 *self == FRES::Reset
42 }
43}
44pub type FRES_W<'a, REG> = crate::BitWriter<'a, REG, FRES>;
46impl<'a, REG> FRES_W<'a, REG>
47where
48 REG: crate::Writable + crate::RegisterSpec,
49{
50 #[inline(always)]
52 pub fn no_reset(self) -> &'a mut crate::W<REG> {
53 self.variant(FRES::NoReset)
54 }
55 #[inline(always)]
57 pub fn reset(self) -> &'a mut crate::W<REG> {
58 self.variant(FRES::Reset)
59 }
60}
61#[cfg_attr(feature = "defmt", derive(defmt::Format))]
65#[derive(Clone, Copy, Debug, PartialEq, Eq)]
66pub enum PDWN {
67 Disabled = 0,
69 Enabled = 1,
71}
72impl From<PDWN> for bool {
73 #[inline(always)]
74 fn from(variant: PDWN) -> Self {
75 variant as u8 != 0
76 }
77}
78pub type PDWN_R = crate::BitReader<PDWN>;
80impl PDWN_R {
81 #[inline(always)]
83 pub const fn variant(&self) -> PDWN {
84 match self.bits {
85 false => PDWN::Disabled,
86 true => PDWN::Enabled,
87 }
88 }
89 #[inline(always)]
91 pub fn is_disabled(&self) -> bool {
92 *self == PDWN::Disabled
93 }
94 #[inline(always)]
96 pub fn is_enabled(&self) -> bool {
97 *self == PDWN::Enabled
98 }
99}
100pub type PDWN_W<'a, REG> = crate::BitWriter<'a, REG, PDWN>;
102impl<'a, REG> PDWN_W<'a, REG>
103where
104 REG: crate::Writable + crate::RegisterSpec,
105{
106 #[inline(always)]
108 pub fn disabled(self) -> &'a mut crate::W<REG> {
109 self.variant(PDWN::Disabled)
110 }
111 #[inline(always)]
113 pub fn enabled(self) -> &'a mut crate::W<REG> {
114 self.variant(PDWN::Enabled)
115 }
116}
117#[cfg_attr(feature = "defmt", derive(defmt::Format))]
121#[derive(Clone, Copy, Debug, PartialEq, Eq)]
122pub enum LPMODE {
123 Disabled = 0,
125 Enabled = 1,
127}
128impl From<LPMODE> for bool {
129 #[inline(always)]
130 fn from(variant: LPMODE) -> Self {
131 variant as u8 != 0
132 }
133}
134pub type LPMODE_R = crate::BitReader<LPMODE>;
136impl LPMODE_R {
137 #[inline(always)]
139 pub const fn variant(&self) -> LPMODE {
140 match self.bits {
141 false => LPMODE::Disabled,
142 true => LPMODE::Enabled,
143 }
144 }
145 #[inline(always)]
147 pub fn is_disabled(&self) -> bool {
148 *self == LPMODE::Disabled
149 }
150 #[inline(always)]
152 pub fn is_enabled(&self) -> bool {
153 *self == LPMODE::Enabled
154 }
155}
156pub type LPMODE_W<'a, REG> = crate::BitWriter<'a, REG, LPMODE>;
158impl<'a, REG> LPMODE_W<'a, REG>
159where
160 REG: crate::Writable + crate::RegisterSpec,
161{
162 #[inline(always)]
164 pub fn disabled(self) -> &'a mut crate::W<REG> {
165 self.variant(LPMODE::Disabled)
166 }
167 #[inline(always)]
169 pub fn enabled(self) -> &'a mut crate::W<REG> {
170 self.variant(LPMODE::Enabled)
171 }
172}
173#[cfg_attr(feature = "defmt", derive(defmt::Format))]
177#[derive(Clone, Copy, Debug, PartialEq, Eq)]
178pub enum FSUSP {
179 NoEffect = 0,
181 Suspend = 1,
183}
184impl From<FSUSP> for bool {
185 #[inline(always)]
186 fn from(variant: FSUSP) -> Self {
187 variant as u8 != 0
188 }
189}
190pub type FSUSP_R = crate::BitReader<FSUSP>;
192impl FSUSP_R {
193 #[inline(always)]
195 pub const fn variant(&self) -> FSUSP {
196 match self.bits {
197 false => FSUSP::NoEffect,
198 true => FSUSP::Suspend,
199 }
200 }
201 #[inline(always)]
203 pub fn is_no_effect(&self) -> bool {
204 *self == FSUSP::NoEffect
205 }
206 #[inline(always)]
208 pub fn is_suspend(&self) -> bool {
209 *self == FSUSP::Suspend
210 }
211}
212pub type FSUSP_W<'a, REG> = crate::BitWriter<'a, REG, FSUSP>;
214impl<'a, REG> FSUSP_W<'a, REG>
215where
216 REG: crate::Writable + crate::RegisterSpec,
217{
218 #[inline(always)]
220 pub fn no_effect(self) -> &'a mut crate::W<REG> {
221 self.variant(FSUSP::NoEffect)
222 }
223 #[inline(always)]
225 pub fn suspend(self) -> &'a mut crate::W<REG> {
226 self.variant(FSUSP::Suspend)
227 }
228}
229#[cfg_attr(feature = "defmt", derive(defmt::Format))]
233#[derive(Clone, Copy, Debug, PartialEq, Eq)]
234pub enum RESUME {
235 Requested = 1,
237}
238impl From<RESUME> for bool {
239 #[inline(always)]
240 fn from(variant: RESUME) -> Self {
241 variant as u8 != 0
242 }
243}
244pub type RESUME_R = crate::BitReader<RESUME>;
246impl RESUME_R {
247 #[inline(always)]
249 pub const fn variant(&self) -> Option<RESUME> {
250 match self.bits {
251 true => Some(RESUME::Requested),
252 _ => None,
253 }
254 }
255 #[inline(always)]
257 pub fn is_requested(&self) -> bool {
258 *self == RESUME::Requested
259 }
260}
261pub type RESUME_W<'a, REG> = crate::BitWriter<'a, REG, RESUME>;
263impl<'a, REG> RESUME_W<'a, REG>
264where
265 REG: crate::Writable + crate::RegisterSpec,
266{
267 #[inline(always)]
269 pub fn requested(self) -> &'a mut crate::W<REG> {
270 self.variant(RESUME::Requested)
271 }
272}
273#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum L1RESUME {
279 Requested = 1,
281}
282impl From<L1RESUME> for bool {
283 #[inline(always)]
284 fn from(variant: L1RESUME) -> Self {
285 variant as u8 != 0
286 }
287}
288pub type L1RESUME_R = crate::BitReader<L1RESUME>;
290impl L1RESUME_R {
291 #[inline(always)]
293 pub const fn variant(&self) -> Option<L1RESUME> {
294 match self.bits {
295 true => Some(L1RESUME::Requested),
296 _ => None,
297 }
298 }
299 #[inline(always)]
301 pub fn is_requested(&self) -> bool {
302 *self == L1RESUME::Requested
303 }
304}
305pub type L1RESUME_W<'a, REG> = crate::BitWriter<'a, REG, L1RESUME>;
307impl<'a, REG> L1RESUME_W<'a, REG>
308where
309 REG: crate::Writable + crate::RegisterSpec,
310{
311 #[inline(always)]
313 pub fn requested(self) -> &'a mut crate::W<REG> {
314 self.variant(L1RESUME::Requested)
315 }
316}
317#[cfg_attr(feature = "defmt", derive(defmt::Format))]
321#[derive(Clone, Copy, Debug, PartialEq, Eq)]
322pub enum L1REQM {
323 Disabled = 0,
325 Enabled = 1,
327}
328impl From<L1REQM> for bool {
329 #[inline(always)]
330 fn from(variant: L1REQM) -> Self {
331 variant as u8 != 0
332 }
333}
334pub type L1REQM_R = crate::BitReader<L1REQM>;
336impl L1REQM_R {
337 #[inline(always)]
339 pub const fn variant(&self) -> L1REQM {
340 match self.bits {
341 false => L1REQM::Disabled,
342 true => L1REQM::Enabled,
343 }
344 }
345 #[inline(always)]
347 pub fn is_disabled(&self) -> bool {
348 *self == L1REQM::Disabled
349 }
350 #[inline(always)]
352 pub fn is_enabled(&self) -> bool {
353 *self == L1REQM::Enabled
354 }
355}
356pub type L1REQM_W<'a, REG> = crate::BitWriter<'a, REG, L1REQM>;
358impl<'a, REG> L1REQM_W<'a, REG>
359where
360 REG: crate::Writable + crate::RegisterSpec,
361{
362 #[inline(always)]
364 pub fn disabled(self) -> &'a mut crate::W<REG> {
365 self.variant(L1REQM::Disabled)
366 }
367 #[inline(always)]
369 pub fn enabled(self) -> &'a mut crate::W<REG> {
370 self.variant(L1REQM::Enabled)
371 }
372}
373#[cfg_attr(feature = "defmt", derive(defmt::Format))]
377#[derive(Clone, Copy, Debug, PartialEq, Eq)]
378pub enum ESOFM {
379 Disabled = 0,
381 Enabled = 1,
383}
384impl From<ESOFM> for bool {
385 #[inline(always)]
386 fn from(variant: ESOFM) -> Self {
387 variant as u8 != 0
388 }
389}
390pub type ESOFM_R = crate::BitReader<ESOFM>;
392impl ESOFM_R {
393 #[inline(always)]
395 pub const fn variant(&self) -> ESOFM {
396 match self.bits {
397 false => ESOFM::Disabled,
398 true => ESOFM::Enabled,
399 }
400 }
401 #[inline(always)]
403 pub fn is_disabled(&self) -> bool {
404 *self == ESOFM::Disabled
405 }
406 #[inline(always)]
408 pub fn is_enabled(&self) -> bool {
409 *self == ESOFM::Enabled
410 }
411}
412pub type ESOFM_W<'a, REG> = crate::BitWriter<'a, REG, ESOFM>;
414impl<'a, REG> ESOFM_W<'a, REG>
415where
416 REG: crate::Writable + crate::RegisterSpec,
417{
418 #[inline(always)]
420 pub fn disabled(self) -> &'a mut crate::W<REG> {
421 self.variant(ESOFM::Disabled)
422 }
423 #[inline(always)]
425 pub fn enabled(self) -> &'a mut crate::W<REG> {
426 self.variant(ESOFM::Enabled)
427 }
428}
429#[cfg_attr(feature = "defmt", derive(defmt::Format))]
433#[derive(Clone, Copy, Debug, PartialEq, Eq)]
434pub enum SOFM {
435 Disabled = 0,
437 Enabled = 1,
439}
440impl From<SOFM> for bool {
441 #[inline(always)]
442 fn from(variant: SOFM) -> Self {
443 variant as u8 != 0
444 }
445}
446pub type SOFM_R = crate::BitReader<SOFM>;
448impl SOFM_R {
449 #[inline(always)]
451 pub const fn variant(&self) -> SOFM {
452 match self.bits {
453 false => SOFM::Disabled,
454 true => SOFM::Enabled,
455 }
456 }
457 #[inline(always)]
459 pub fn is_disabled(&self) -> bool {
460 *self == SOFM::Disabled
461 }
462 #[inline(always)]
464 pub fn is_enabled(&self) -> bool {
465 *self == SOFM::Enabled
466 }
467}
468pub type SOFM_W<'a, REG> = crate::BitWriter<'a, REG, SOFM>;
470impl<'a, REG> SOFM_W<'a, REG>
471where
472 REG: crate::Writable + crate::RegisterSpec,
473{
474 #[inline(always)]
476 pub fn disabled(self) -> &'a mut crate::W<REG> {
477 self.variant(SOFM::Disabled)
478 }
479 #[inline(always)]
481 pub fn enabled(self) -> &'a mut crate::W<REG> {
482 self.variant(SOFM::Enabled)
483 }
484}
485#[cfg_attr(feature = "defmt", derive(defmt::Format))]
489#[derive(Clone, Copy, Debug, PartialEq, Eq)]
490pub enum RESETM {
491 Disabled = 0,
493 Enabled = 1,
495}
496impl From<RESETM> for bool {
497 #[inline(always)]
498 fn from(variant: RESETM) -> Self {
499 variant as u8 != 0
500 }
501}
502pub type RESETM_R = crate::BitReader<RESETM>;
504impl RESETM_R {
505 #[inline(always)]
507 pub const fn variant(&self) -> RESETM {
508 match self.bits {
509 false => RESETM::Disabled,
510 true => RESETM::Enabled,
511 }
512 }
513 #[inline(always)]
515 pub fn is_disabled(&self) -> bool {
516 *self == RESETM::Disabled
517 }
518 #[inline(always)]
520 pub fn is_enabled(&self) -> bool {
521 *self == RESETM::Enabled
522 }
523}
524pub type RESETM_W<'a, REG> = crate::BitWriter<'a, REG, RESETM>;
526impl<'a, REG> RESETM_W<'a, REG>
527where
528 REG: crate::Writable + crate::RegisterSpec,
529{
530 #[inline(always)]
532 pub fn disabled(self) -> &'a mut crate::W<REG> {
533 self.variant(RESETM::Disabled)
534 }
535 #[inline(always)]
537 pub fn enabled(self) -> &'a mut crate::W<REG> {
538 self.variant(RESETM::Enabled)
539 }
540}
541#[cfg_attr(feature = "defmt", derive(defmt::Format))]
545#[derive(Clone, Copy, Debug, PartialEq, Eq)]
546pub enum SUSPM {
547 Disabled = 0,
549 Enabled = 1,
551}
552impl From<SUSPM> for bool {
553 #[inline(always)]
554 fn from(variant: SUSPM) -> Self {
555 variant as u8 != 0
556 }
557}
558pub type SUSPM_R = crate::BitReader<SUSPM>;
560impl SUSPM_R {
561 #[inline(always)]
563 pub const fn variant(&self) -> SUSPM {
564 match self.bits {
565 false => SUSPM::Disabled,
566 true => SUSPM::Enabled,
567 }
568 }
569 #[inline(always)]
571 pub fn is_disabled(&self) -> bool {
572 *self == SUSPM::Disabled
573 }
574 #[inline(always)]
576 pub fn is_enabled(&self) -> bool {
577 *self == SUSPM::Enabled
578 }
579}
580pub type SUSPM_W<'a, REG> = crate::BitWriter<'a, REG, SUSPM>;
582impl<'a, REG> SUSPM_W<'a, REG>
583where
584 REG: crate::Writable + crate::RegisterSpec,
585{
586 #[inline(always)]
588 pub fn disabled(self) -> &'a mut crate::W<REG> {
589 self.variant(SUSPM::Disabled)
590 }
591 #[inline(always)]
593 pub fn enabled(self) -> &'a mut crate::W<REG> {
594 self.variant(SUSPM::Enabled)
595 }
596}
597#[cfg_attr(feature = "defmt", derive(defmt::Format))]
601#[derive(Clone, Copy, Debug, PartialEq, Eq)]
602pub enum WKUPM {
603 Disabled = 0,
605 Enabled = 1,
607}
608impl From<WKUPM> for bool {
609 #[inline(always)]
610 fn from(variant: WKUPM) -> Self {
611 variant as u8 != 0
612 }
613}
614pub type WKUPM_R = crate::BitReader<WKUPM>;
616impl WKUPM_R {
617 #[inline(always)]
619 pub const fn variant(&self) -> WKUPM {
620 match self.bits {
621 false => WKUPM::Disabled,
622 true => WKUPM::Enabled,
623 }
624 }
625 #[inline(always)]
627 pub fn is_disabled(&self) -> bool {
628 *self == WKUPM::Disabled
629 }
630 #[inline(always)]
632 pub fn is_enabled(&self) -> bool {
633 *self == WKUPM::Enabled
634 }
635}
636pub type WKUPM_W<'a, REG> = crate::BitWriter<'a, REG, WKUPM>;
638impl<'a, REG> WKUPM_W<'a, REG>
639where
640 REG: crate::Writable + crate::RegisterSpec,
641{
642 #[inline(always)]
644 pub fn disabled(self) -> &'a mut crate::W<REG> {
645 self.variant(WKUPM::Disabled)
646 }
647 #[inline(always)]
649 pub fn enabled(self) -> &'a mut crate::W<REG> {
650 self.variant(WKUPM::Enabled)
651 }
652}
653#[cfg_attr(feature = "defmt", derive(defmt::Format))]
657#[derive(Clone, Copy, Debug, PartialEq, Eq)]
658pub enum ERRM {
659 Disabled = 0,
661 Enabled = 1,
663}
664impl From<ERRM> for bool {
665 #[inline(always)]
666 fn from(variant: ERRM) -> Self {
667 variant as u8 != 0
668 }
669}
670pub type ERRM_R = crate::BitReader<ERRM>;
672impl ERRM_R {
673 #[inline(always)]
675 pub const fn variant(&self) -> ERRM {
676 match self.bits {
677 false => ERRM::Disabled,
678 true => ERRM::Enabled,
679 }
680 }
681 #[inline(always)]
683 pub fn is_disabled(&self) -> bool {
684 *self == ERRM::Disabled
685 }
686 #[inline(always)]
688 pub fn is_enabled(&self) -> bool {
689 *self == ERRM::Enabled
690 }
691}
692pub type ERRM_W<'a, REG> = crate::BitWriter<'a, REG, ERRM>;
694impl<'a, REG> ERRM_W<'a, REG>
695where
696 REG: crate::Writable + crate::RegisterSpec,
697{
698 #[inline(always)]
700 pub fn disabled(self) -> &'a mut crate::W<REG> {
701 self.variant(ERRM::Disabled)
702 }
703 #[inline(always)]
705 pub fn enabled(self) -> &'a mut crate::W<REG> {
706 self.variant(ERRM::Enabled)
707 }
708}
709#[cfg_attr(feature = "defmt", derive(defmt::Format))]
713#[derive(Clone, Copy, Debug, PartialEq, Eq)]
714pub enum PMAOVRM {
715 Disabled = 0,
717 Enabled = 1,
719}
720impl From<PMAOVRM> for bool {
721 #[inline(always)]
722 fn from(variant: PMAOVRM) -> Self {
723 variant as u8 != 0
724 }
725}
726pub type PMAOVRM_R = crate::BitReader<PMAOVRM>;
728impl PMAOVRM_R {
729 #[inline(always)]
731 pub const fn variant(&self) -> PMAOVRM {
732 match self.bits {
733 false => PMAOVRM::Disabled,
734 true => PMAOVRM::Enabled,
735 }
736 }
737 #[inline(always)]
739 pub fn is_disabled(&self) -> bool {
740 *self == PMAOVRM::Disabled
741 }
742 #[inline(always)]
744 pub fn is_enabled(&self) -> bool {
745 *self == PMAOVRM::Enabled
746 }
747}
748pub type PMAOVRM_W<'a, REG> = crate::BitWriter<'a, REG, PMAOVRM>;
750impl<'a, REG> PMAOVRM_W<'a, REG>
751where
752 REG: crate::Writable + crate::RegisterSpec,
753{
754 #[inline(always)]
756 pub fn disabled(self) -> &'a mut crate::W<REG> {
757 self.variant(PMAOVRM::Disabled)
758 }
759 #[inline(always)]
761 pub fn enabled(self) -> &'a mut crate::W<REG> {
762 self.variant(PMAOVRM::Enabled)
763 }
764}
765#[cfg_attr(feature = "defmt", derive(defmt::Format))]
769#[derive(Clone, Copy, Debug, PartialEq, Eq)]
770pub enum CTRM {
771 Disabled = 0,
773 Enabled = 1,
775}
776impl From<CTRM> for bool {
777 #[inline(always)]
778 fn from(variant: CTRM) -> Self {
779 variant as u8 != 0
780 }
781}
782pub type CTRM_R = crate::BitReader<CTRM>;
784impl CTRM_R {
785 #[inline(always)]
787 pub const fn variant(&self) -> CTRM {
788 match self.bits {
789 false => CTRM::Disabled,
790 true => CTRM::Enabled,
791 }
792 }
793 #[inline(always)]
795 pub fn is_disabled(&self) -> bool {
796 *self == CTRM::Disabled
797 }
798 #[inline(always)]
800 pub fn is_enabled(&self) -> bool {
801 *self == CTRM::Enabled
802 }
803}
804pub type CTRM_W<'a, REG> = crate::BitWriter<'a, REG, CTRM>;
806impl<'a, REG> CTRM_W<'a, REG>
807where
808 REG: crate::Writable + crate::RegisterSpec,
809{
810 #[inline(always)]
812 pub fn disabled(self) -> &'a mut crate::W<REG> {
813 self.variant(CTRM::Disabled)
814 }
815 #[inline(always)]
817 pub fn enabled(self) -> &'a mut crate::W<REG> {
818 self.variant(CTRM::Enabled)
819 }
820}
821impl R {
822 #[inline(always)]
824 pub fn fres(&self) -> FRES_R {
825 FRES_R::new((self.bits & 1) != 0)
826 }
827 #[inline(always)]
829 pub fn pdwn(&self) -> PDWN_R {
830 PDWN_R::new(((self.bits >> 1) & 1) != 0)
831 }
832 #[inline(always)]
834 pub fn lpmode(&self) -> LPMODE_R {
835 LPMODE_R::new(((self.bits >> 2) & 1) != 0)
836 }
837 #[inline(always)]
839 pub fn fsusp(&self) -> FSUSP_R {
840 FSUSP_R::new(((self.bits >> 3) & 1) != 0)
841 }
842 #[inline(always)]
844 pub fn resume(&self) -> RESUME_R {
845 RESUME_R::new(((self.bits >> 4) & 1) != 0)
846 }
847 #[inline(always)]
849 pub fn l1resume(&self) -> L1RESUME_R {
850 L1RESUME_R::new(((self.bits >> 5) & 1) != 0)
851 }
852 #[inline(always)]
854 pub fn l1reqm(&self) -> L1REQM_R {
855 L1REQM_R::new(((self.bits >> 7) & 1) != 0)
856 }
857 #[inline(always)]
859 pub fn esofm(&self) -> ESOFM_R {
860 ESOFM_R::new(((self.bits >> 8) & 1) != 0)
861 }
862 #[inline(always)]
864 pub fn sofm(&self) -> SOFM_R {
865 SOFM_R::new(((self.bits >> 9) & 1) != 0)
866 }
867 #[inline(always)]
869 pub fn resetm(&self) -> RESETM_R {
870 RESETM_R::new(((self.bits >> 10) & 1) != 0)
871 }
872 #[inline(always)]
874 pub fn suspm(&self) -> SUSPM_R {
875 SUSPM_R::new(((self.bits >> 11) & 1) != 0)
876 }
877 #[inline(always)]
879 pub fn wkupm(&self) -> WKUPM_R {
880 WKUPM_R::new(((self.bits >> 12) & 1) != 0)
881 }
882 #[inline(always)]
884 pub fn errm(&self) -> ERRM_R {
885 ERRM_R::new(((self.bits >> 13) & 1) != 0)
886 }
887 #[inline(always)]
889 pub fn pmaovrm(&self) -> PMAOVRM_R {
890 PMAOVRM_R::new(((self.bits >> 14) & 1) != 0)
891 }
892 #[inline(always)]
894 pub fn ctrm(&self) -> CTRM_R {
895 CTRM_R::new(((self.bits >> 15) & 1) != 0)
896 }
897}
898impl core::fmt::Debug for R {
899 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
900 f.debug_struct("CNTR")
901 .field("fres", &self.fres())
902 .field("pdwn", &self.pdwn())
903 .field("lpmode", &self.lpmode())
904 .field("fsusp", &self.fsusp())
905 .field("resume", &self.resume())
906 .field("l1resume", &self.l1resume())
907 .field("l1reqm", &self.l1reqm())
908 .field("esofm", &self.esofm())
909 .field("sofm", &self.sofm())
910 .field("resetm", &self.resetm())
911 .field("suspm", &self.suspm())
912 .field("wkupm", &self.wkupm())
913 .field("errm", &self.errm())
914 .field("pmaovrm", &self.pmaovrm())
915 .field("ctrm", &self.ctrm())
916 .finish()
917 }
918}
919impl W {
920 #[inline(always)]
922 pub fn fres(&mut self) -> FRES_W<CNTRrs> {
923 FRES_W::new(self, 0)
924 }
925 #[inline(always)]
927 pub fn pdwn(&mut self) -> PDWN_W<CNTRrs> {
928 PDWN_W::new(self, 1)
929 }
930 #[inline(always)]
932 pub fn lpmode(&mut self) -> LPMODE_W<CNTRrs> {
933 LPMODE_W::new(self, 2)
934 }
935 #[inline(always)]
937 pub fn fsusp(&mut self) -> FSUSP_W<CNTRrs> {
938 FSUSP_W::new(self, 3)
939 }
940 #[inline(always)]
942 pub fn resume(&mut self) -> RESUME_W<CNTRrs> {
943 RESUME_W::new(self, 4)
944 }
945 #[inline(always)]
947 pub fn l1resume(&mut self) -> L1RESUME_W<CNTRrs> {
948 L1RESUME_W::new(self, 5)
949 }
950 #[inline(always)]
952 pub fn l1reqm(&mut self) -> L1REQM_W<CNTRrs> {
953 L1REQM_W::new(self, 7)
954 }
955 #[inline(always)]
957 pub fn esofm(&mut self) -> ESOFM_W<CNTRrs> {
958 ESOFM_W::new(self, 8)
959 }
960 #[inline(always)]
962 pub fn sofm(&mut self) -> SOFM_W<CNTRrs> {
963 SOFM_W::new(self, 9)
964 }
965 #[inline(always)]
967 pub fn resetm(&mut self) -> RESETM_W<CNTRrs> {
968 RESETM_W::new(self, 10)
969 }
970 #[inline(always)]
972 pub fn suspm(&mut self) -> SUSPM_W<CNTRrs> {
973 SUSPM_W::new(self, 11)
974 }
975 #[inline(always)]
977 pub fn wkupm(&mut self) -> WKUPM_W<CNTRrs> {
978 WKUPM_W::new(self, 12)
979 }
980 #[inline(always)]
982 pub fn errm(&mut self) -> ERRM_W<CNTRrs> {
983 ERRM_W::new(self, 13)
984 }
985 #[inline(always)]
987 pub fn pmaovrm(&mut self) -> PMAOVRM_W<CNTRrs> {
988 PMAOVRM_W::new(self, 14)
989 }
990 #[inline(always)]
992 pub fn ctrm(&mut self) -> CTRM_W<CNTRrs> {
993 CTRM_W::new(self, 15)
994 }
995}
996pub struct CNTRrs;
1002impl crate::RegisterSpec for CNTRrs {
1003 type Ux = u32;
1004}
1005impl crate::Readable for CNTRrs {}
1007impl crate::Writable for CNTRrs {
1009 type Safety = crate::Unsafe;
1010}
1011impl crate::Resettable for CNTRrs {
1013 const RESET_VALUE: u32 = 0x03;
1014}