efm32gg12b810_pac/emu/
em23pernoretainstatus.rs

1#[doc = "Register `EM23PERNORETAINSTATUS` reader"]
2pub struct R(crate::R<EM23PERNORETAINSTATUS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<EM23PERNORETAINSTATUS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<EM23PERNORETAINSTATUS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<EM23PERNORETAINSTATUS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `ACMP0LOCKED` reader - Indicates If ACMP0 Powered Down During EM23"]
17pub type ACMP0LOCKED_R = crate::BitReader<bool>;
18#[doc = "Field `ACMP1LOCKED` reader - Indicates If ACMP1 Powered Down During EM23"]
19pub type ACMP1LOCKED_R = crate::BitReader<bool>;
20#[doc = "Field `PCNT0LOCKED` reader - Indicates If PCNT0 Powered Down During EM23"]
21pub type PCNT0LOCKED_R = crate::BitReader<bool>;
22#[doc = "Field `PCNT1LOCKED` reader - Indicates If PCNT1 Powered Down During EM23"]
23pub type PCNT1LOCKED_R = crate::BitReader<bool>;
24#[doc = "Field `PCNT2LOCKED` reader - Indicates If PCNT2 Powered Down During EM23"]
25pub type PCNT2LOCKED_R = crate::BitReader<bool>;
26#[doc = "Field `I2C0LOCKED` reader - Indicates If I2C0 Powered Down During EM23"]
27pub type I2C0LOCKED_R = crate::BitReader<bool>;
28#[doc = "Field `I2C1LOCKED` reader - Indicates If I2C1 Powered Down During EM23"]
29pub type I2C1LOCKED_R = crate::BitReader<bool>;
30#[doc = "Field `DAC0LOCKED` reader - Indicates If DAC0 Powered Down During EM23"]
31pub type DAC0LOCKED_R = crate::BitReader<bool>;
32#[doc = "Field `IDAC0LOCKED` reader - Indicates If IDAC0 Powered Down During EM23"]
33pub type IDAC0LOCKED_R = crate::BitReader<bool>;
34#[doc = "Field `ADC0LOCKED` reader - Indicates If ADC0 Powered Down During EM23"]
35pub type ADC0LOCKED_R = crate::BitReader<bool>;
36#[doc = "Field `LETIMER0LOCKED` reader - Indicates If LETIMER0 Powered Down During EM23"]
37pub type LETIMER0LOCKED_R = crate::BitReader<bool>;
38#[doc = "Field `WDOG0LOCKED` reader - Indicates If WDOG0 Powered Down During EM23"]
39pub type WDOG0LOCKED_R = crate::BitReader<bool>;
40#[doc = "Field `WDOG1LOCKED` reader - Indicates If WDOG1 Powered Down During EM23"]
41pub type WDOG1LOCKED_R = crate::BitReader<bool>;
42#[doc = "Field `LESENSE0LOCKED` reader - Indicates If LESENSE0 Powered Down During EM23"]
43pub type LESENSE0LOCKED_R = crate::BitReader<bool>;
44#[doc = "Field `CSENLOCKED` reader - Indicates If CSEN Powered Down During EM23"]
45pub type CSENLOCKED_R = crate::BitReader<bool>;
46#[doc = "Field `LEUART0LOCKED` reader - Indicates If LEUART0 Powered Down During EM23"]
47pub type LEUART0LOCKED_R = crate::BitReader<bool>;
48#[doc = "Field `LEUART1LOCKED` reader - Indicates If LEUART1 Powered Down During EM23"]
49pub type LEUART1LOCKED_R = crate::BitReader<bool>;
50#[doc = "Field `LCDLOCKED` reader - Indicates If LCD Powered Down During EM23"]
51pub type LCDLOCKED_R = crate::BitReader<bool>;
52#[doc = "Field `LETIMER1LOCKED` reader - Indicates If LETIMER1 Powered Down During EM23"]
53pub type LETIMER1LOCKED_R = crate::BitReader<bool>;
54#[doc = "Field `ADC1LOCKED` reader - Indicates If ADC1 Powered Down During EM23"]
55pub type ADC1LOCKED_R = crate::BitReader<bool>;
56#[doc = "Field `ACMP2LOCKED` reader - Indicates If ACMP2 Powered Down During EM23"]
57pub type ACMP2LOCKED_R = crate::BitReader<bool>;
58#[doc = "Field `RTCLOCKED` reader - Indicates If RTC Powered Down During EM23"]
59pub type RTCLOCKED_R = crate::BitReader<bool>;
60#[doc = "Field `USBLOCKED` reader - Indicates If USB Powered Down During EM23"]
61pub type USBLOCKED_R = crate::BitReader<bool>;
62impl R {
63    #[doc = "Bit 0 - Indicates If ACMP0 Powered Down During EM23"]
64    #[inline(always)]
65    pub fn acmp0locked(&self) -> ACMP0LOCKED_R {
66        ACMP0LOCKED_R::new((self.bits & 1) != 0)
67    }
68    #[doc = "Bit 1 - Indicates If ACMP1 Powered Down During EM23"]
69    #[inline(always)]
70    pub fn acmp1locked(&self) -> ACMP1LOCKED_R {
71        ACMP1LOCKED_R::new(((self.bits >> 1) & 1) != 0)
72    }
73    #[doc = "Bit 2 - Indicates If PCNT0 Powered Down During EM23"]
74    #[inline(always)]
75    pub fn pcnt0locked(&self) -> PCNT0LOCKED_R {
76        PCNT0LOCKED_R::new(((self.bits >> 2) & 1) != 0)
77    }
78    #[doc = "Bit 3 - Indicates If PCNT1 Powered Down During EM23"]
79    #[inline(always)]
80    pub fn pcnt1locked(&self) -> PCNT1LOCKED_R {
81        PCNT1LOCKED_R::new(((self.bits >> 3) & 1) != 0)
82    }
83    #[doc = "Bit 4 - Indicates If PCNT2 Powered Down During EM23"]
84    #[inline(always)]
85    pub fn pcnt2locked(&self) -> PCNT2LOCKED_R {
86        PCNT2LOCKED_R::new(((self.bits >> 4) & 1) != 0)
87    }
88    #[doc = "Bit 5 - Indicates If I2C0 Powered Down During EM23"]
89    #[inline(always)]
90    pub fn i2c0locked(&self) -> I2C0LOCKED_R {
91        I2C0LOCKED_R::new(((self.bits >> 5) & 1) != 0)
92    }
93    #[doc = "Bit 6 - Indicates If I2C1 Powered Down During EM23"]
94    #[inline(always)]
95    pub fn i2c1locked(&self) -> I2C1LOCKED_R {
96        I2C1LOCKED_R::new(((self.bits >> 6) & 1) != 0)
97    }
98    #[doc = "Bit 7 - Indicates If DAC0 Powered Down During EM23"]
99    #[inline(always)]
100    pub fn dac0locked(&self) -> DAC0LOCKED_R {
101        DAC0LOCKED_R::new(((self.bits >> 7) & 1) != 0)
102    }
103    #[doc = "Bit 8 - Indicates If IDAC0 Powered Down During EM23"]
104    #[inline(always)]
105    pub fn idac0locked(&self) -> IDAC0LOCKED_R {
106        IDAC0LOCKED_R::new(((self.bits >> 8) & 1) != 0)
107    }
108    #[doc = "Bit 9 - Indicates If ADC0 Powered Down During EM23"]
109    #[inline(always)]
110    pub fn adc0locked(&self) -> ADC0LOCKED_R {
111        ADC0LOCKED_R::new(((self.bits >> 9) & 1) != 0)
112    }
113    #[doc = "Bit 10 - Indicates If LETIMER0 Powered Down During EM23"]
114    #[inline(always)]
115    pub fn letimer0locked(&self) -> LETIMER0LOCKED_R {
116        LETIMER0LOCKED_R::new(((self.bits >> 10) & 1) != 0)
117    }
118    #[doc = "Bit 11 - Indicates If WDOG0 Powered Down During EM23"]
119    #[inline(always)]
120    pub fn wdog0locked(&self) -> WDOG0LOCKED_R {
121        WDOG0LOCKED_R::new(((self.bits >> 11) & 1) != 0)
122    }
123    #[doc = "Bit 12 - Indicates If WDOG1 Powered Down During EM23"]
124    #[inline(always)]
125    pub fn wdog1locked(&self) -> WDOG1LOCKED_R {
126        WDOG1LOCKED_R::new(((self.bits >> 12) & 1) != 0)
127    }
128    #[doc = "Bit 13 - Indicates If LESENSE0 Powered Down During EM23"]
129    #[inline(always)]
130    pub fn lesense0locked(&self) -> LESENSE0LOCKED_R {
131        LESENSE0LOCKED_R::new(((self.bits >> 13) & 1) != 0)
132    }
133    #[doc = "Bit 14 - Indicates If CSEN Powered Down During EM23"]
134    #[inline(always)]
135    pub fn csenlocked(&self) -> CSENLOCKED_R {
136        CSENLOCKED_R::new(((self.bits >> 14) & 1) != 0)
137    }
138    #[doc = "Bit 15 - Indicates If LEUART0 Powered Down During EM23"]
139    #[inline(always)]
140    pub fn leuart0locked(&self) -> LEUART0LOCKED_R {
141        LEUART0LOCKED_R::new(((self.bits >> 15) & 1) != 0)
142    }
143    #[doc = "Bit 16 - Indicates If LEUART1 Powered Down During EM23"]
144    #[inline(always)]
145    pub fn leuart1locked(&self) -> LEUART1LOCKED_R {
146        LEUART1LOCKED_R::new(((self.bits >> 16) & 1) != 0)
147    }
148    #[doc = "Bit 17 - Indicates If LCD Powered Down During EM23"]
149    #[inline(always)]
150    pub fn lcdlocked(&self) -> LCDLOCKED_R {
151        LCDLOCKED_R::new(((self.bits >> 17) & 1) != 0)
152    }
153    #[doc = "Bit 18 - Indicates If LETIMER1 Powered Down During EM23"]
154    #[inline(always)]
155    pub fn letimer1locked(&self) -> LETIMER1LOCKED_R {
156        LETIMER1LOCKED_R::new(((self.bits >> 18) & 1) != 0)
157    }
158    #[doc = "Bit 20 - Indicates If ADC1 Powered Down During EM23"]
159    #[inline(always)]
160    pub fn adc1locked(&self) -> ADC1LOCKED_R {
161        ADC1LOCKED_R::new(((self.bits >> 20) & 1) != 0)
162    }
163    #[doc = "Bit 21 - Indicates If ACMP2 Powered Down During EM23"]
164    #[inline(always)]
165    pub fn acmp2locked(&self) -> ACMP2LOCKED_R {
166        ACMP2LOCKED_R::new(((self.bits >> 21) & 1) != 0)
167    }
168    #[doc = "Bit 23 - Indicates If RTC Powered Down During EM23"]
169    #[inline(always)]
170    pub fn rtclocked(&self) -> RTCLOCKED_R {
171        RTCLOCKED_R::new(((self.bits >> 23) & 1) != 0)
172    }
173    #[doc = "Bit 24 - Indicates If USB Powered Down During EM23"]
174    #[inline(always)]
175    pub fn usblocked(&self) -> USBLOCKED_R {
176        USBLOCKED_R::new(((self.bits >> 24) & 1) != 0)
177    }
178}
179#[doc = "Status Indicating If Peripherals Were Powered Down in EM23, Subsequently Locking Access to It\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [em23pernoretainstatus](index.html) module"]
180pub struct EM23PERNORETAINSTATUS_SPEC;
181impl crate::RegisterSpec for EM23PERNORETAINSTATUS_SPEC {
182    type Ux = u32;
183}
184#[doc = "`read()` method returns [em23pernoretainstatus::R](R) reader structure"]
185impl crate::Readable for EM23PERNORETAINSTATUS_SPEC {
186    type Reader = R;
187}
188#[doc = "`reset()` method sets EM23PERNORETAINSTATUS to value 0"]
189impl crate::Resettable for EM23PERNORETAINSTATUS_SPEC {
190    #[inline(always)]
191    fn reset_value() -> Self::Ux {
192        0
193    }
194}