efm32gg11b510_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 `I2C2LOCKED` reader - Indicates If I2C2 Powered Down During EM23"]
55pub type I2C2LOCKED_R = crate::BitReader<bool>;
56#[doc = "Field `ADC1LOCKED` reader - Indicates If ADC1 Powered Down During EM23"]
57pub type ADC1LOCKED_R = crate::BitReader<bool>;
58#[doc = "Field `ACMP2LOCKED` reader - Indicates If ACMP2 Powered Down During EM23"]
59pub type ACMP2LOCKED_R = crate::BitReader<bool>;
60#[doc = "Field `ACMP3LOCKED` reader - Indicates If ACMP3 Powered Down During EM23"]
61pub type ACMP3LOCKED_R = crate::BitReader<bool>;
62#[doc = "Field `RTCLOCKED` reader - Indicates If RTC Powered Down During EM23"]
63pub type RTCLOCKED_R = crate::BitReader<bool>;
64impl R {
65    #[doc = "Bit 0 - Indicates If ACMP0 Powered Down During EM23"]
66    #[inline(always)]
67    pub fn acmp0locked(&self) -> ACMP0LOCKED_R {
68        ACMP0LOCKED_R::new((self.bits & 1) != 0)
69    }
70    #[doc = "Bit 1 - Indicates If ACMP1 Powered Down During EM23"]
71    #[inline(always)]
72    pub fn acmp1locked(&self) -> ACMP1LOCKED_R {
73        ACMP1LOCKED_R::new(((self.bits >> 1) & 1) != 0)
74    }
75    #[doc = "Bit 2 - Indicates If PCNT0 Powered Down During EM23"]
76    #[inline(always)]
77    pub fn pcnt0locked(&self) -> PCNT0LOCKED_R {
78        PCNT0LOCKED_R::new(((self.bits >> 2) & 1) != 0)
79    }
80    #[doc = "Bit 3 - Indicates If PCNT1 Powered Down During EM23"]
81    #[inline(always)]
82    pub fn pcnt1locked(&self) -> PCNT1LOCKED_R {
83        PCNT1LOCKED_R::new(((self.bits >> 3) & 1) != 0)
84    }
85    #[doc = "Bit 4 - Indicates If PCNT2 Powered Down During EM23"]
86    #[inline(always)]
87    pub fn pcnt2locked(&self) -> PCNT2LOCKED_R {
88        PCNT2LOCKED_R::new(((self.bits >> 4) & 1) != 0)
89    }
90    #[doc = "Bit 5 - Indicates If I2C0 Powered Down During EM23"]
91    #[inline(always)]
92    pub fn i2c0locked(&self) -> I2C0LOCKED_R {
93        I2C0LOCKED_R::new(((self.bits >> 5) & 1) != 0)
94    }
95    #[doc = "Bit 6 - Indicates If I2C1 Powered Down During EM23"]
96    #[inline(always)]
97    pub fn i2c1locked(&self) -> I2C1LOCKED_R {
98        I2C1LOCKED_R::new(((self.bits >> 6) & 1) != 0)
99    }
100    #[doc = "Bit 7 - Indicates If DAC0 Powered Down During EM23"]
101    #[inline(always)]
102    pub fn dac0locked(&self) -> DAC0LOCKED_R {
103        DAC0LOCKED_R::new(((self.bits >> 7) & 1) != 0)
104    }
105    #[doc = "Bit 8 - Indicates If IDAC0 Powered Down During EM23"]
106    #[inline(always)]
107    pub fn idac0locked(&self) -> IDAC0LOCKED_R {
108        IDAC0LOCKED_R::new(((self.bits >> 8) & 1) != 0)
109    }
110    #[doc = "Bit 9 - Indicates If ADC0 Powered Down During EM23"]
111    #[inline(always)]
112    pub fn adc0locked(&self) -> ADC0LOCKED_R {
113        ADC0LOCKED_R::new(((self.bits >> 9) & 1) != 0)
114    }
115    #[doc = "Bit 10 - Indicates If LETIMER0 Powered Down During EM23"]
116    #[inline(always)]
117    pub fn letimer0locked(&self) -> LETIMER0LOCKED_R {
118        LETIMER0LOCKED_R::new(((self.bits >> 10) & 1) != 0)
119    }
120    #[doc = "Bit 11 - Indicates If WDOG0 Powered Down During EM23"]
121    #[inline(always)]
122    pub fn wdog0locked(&self) -> WDOG0LOCKED_R {
123        WDOG0LOCKED_R::new(((self.bits >> 11) & 1) != 0)
124    }
125    #[doc = "Bit 12 - Indicates If WDOG1 Powered Down During EM23"]
126    #[inline(always)]
127    pub fn wdog1locked(&self) -> WDOG1LOCKED_R {
128        WDOG1LOCKED_R::new(((self.bits >> 12) & 1) != 0)
129    }
130    #[doc = "Bit 13 - Indicates If LESENSE0 Powered Down During EM23"]
131    #[inline(always)]
132    pub fn lesense0locked(&self) -> LESENSE0LOCKED_R {
133        LESENSE0LOCKED_R::new(((self.bits >> 13) & 1) != 0)
134    }
135    #[doc = "Bit 14 - Indicates If CSEN Powered Down During EM23"]
136    #[inline(always)]
137    pub fn csenlocked(&self) -> CSENLOCKED_R {
138        CSENLOCKED_R::new(((self.bits >> 14) & 1) != 0)
139    }
140    #[doc = "Bit 15 - Indicates If LEUART0 Powered Down During EM23"]
141    #[inline(always)]
142    pub fn leuart0locked(&self) -> LEUART0LOCKED_R {
143        LEUART0LOCKED_R::new(((self.bits >> 15) & 1) != 0)
144    }
145    #[doc = "Bit 16 - Indicates If LEUART1 Powered Down During EM23"]
146    #[inline(always)]
147    pub fn leuart1locked(&self) -> LEUART1LOCKED_R {
148        LEUART1LOCKED_R::new(((self.bits >> 16) & 1) != 0)
149    }
150    #[doc = "Bit 17 - Indicates If LCD Powered Down During EM23"]
151    #[inline(always)]
152    pub fn lcdlocked(&self) -> LCDLOCKED_R {
153        LCDLOCKED_R::new(((self.bits >> 17) & 1) != 0)
154    }
155    #[doc = "Bit 18 - Indicates If LETIMER1 Powered Down During EM23"]
156    #[inline(always)]
157    pub fn letimer1locked(&self) -> LETIMER1LOCKED_R {
158        LETIMER1LOCKED_R::new(((self.bits >> 18) & 1) != 0)
159    }
160    #[doc = "Bit 19 - Indicates If I2C2 Powered Down During EM23"]
161    #[inline(always)]
162    pub fn i2c2locked(&self) -> I2C2LOCKED_R {
163        I2C2LOCKED_R::new(((self.bits >> 19) & 1) != 0)
164    }
165    #[doc = "Bit 20 - Indicates If ADC1 Powered Down During EM23"]
166    #[inline(always)]
167    pub fn adc1locked(&self) -> ADC1LOCKED_R {
168        ADC1LOCKED_R::new(((self.bits >> 20) & 1) != 0)
169    }
170    #[doc = "Bit 21 - Indicates If ACMP2 Powered Down During EM23"]
171    #[inline(always)]
172    pub fn acmp2locked(&self) -> ACMP2LOCKED_R {
173        ACMP2LOCKED_R::new(((self.bits >> 21) & 1) != 0)
174    }
175    #[doc = "Bit 22 - Indicates If ACMP3 Powered Down During EM23"]
176    #[inline(always)]
177    pub fn acmp3locked(&self) -> ACMP3LOCKED_R {
178        ACMP3LOCKED_R::new(((self.bits >> 22) & 1) != 0)
179    }
180    #[doc = "Bit 23 - Indicates If RTC Powered Down During EM23"]
181    #[inline(always)]
182    pub fn rtclocked(&self) -> RTCLOCKED_R {
183        RTCLOCKED_R::new(((self.bits >> 23) & 1) != 0)
184    }
185}
186#[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"]
187pub struct EM23PERNORETAINSTATUS_SPEC;
188impl crate::RegisterSpec for EM23PERNORETAINSTATUS_SPEC {
189    type Ux = u32;
190}
191#[doc = "`read()` method returns [em23pernoretainstatus::R](R) reader structure"]
192impl crate::Readable for EM23PERNORETAINSTATUS_SPEC {
193    type Reader = R;
194}
195#[doc = "`reset()` method sets EM23PERNORETAINSTATUS to value 0"]
196impl crate::Resettable for EM23PERNORETAINSTATUS_SPEC {
197    #[inline(always)]
198    fn reset_value() -> Self::Ux {
199        0
200    }
201}