efm32pg12b500_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>;
48impl R {
49    #[doc = "Bit 0 - Indicates If ACMP0 Powered Down During EM23"]
50    #[inline(always)]
51    pub fn acmp0locked(&self) -> ACMP0LOCKED_R {
52        ACMP0LOCKED_R::new((self.bits & 1) != 0)
53    }
54    #[doc = "Bit 1 - Indicates If ACMP1 Powered Down During EM23"]
55    #[inline(always)]
56    pub fn acmp1locked(&self) -> ACMP1LOCKED_R {
57        ACMP1LOCKED_R::new(((self.bits >> 1) & 1) != 0)
58    }
59    #[doc = "Bit 2 - Indicates If PCNT0 Powered Down During EM23"]
60    #[inline(always)]
61    pub fn pcnt0locked(&self) -> PCNT0LOCKED_R {
62        PCNT0LOCKED_R::new(((self.bits >> 2) & 1) != 0)
63    }
64    #[doc = "Bit 3 - Indicates If PCNT1 Powered Down During EM23"]
65    #[inline(always)]
66    pub fn pcnt1locked(&self) -> PCNT1LOCKED_R {
67        PCNT1LOCKED_R::new(((self.bits >> 3) & 1) != 0)
68    }
69    #[doc = "Bit 4 - Indicates If PCNT2 Powered Down During EM23"]
70    #[inline(always)]
71    pub fn pcnt2locked(&self) -> PCNT2LOCKED_R {
72        PCNT2LOCKED_R::new(((self.bits >> 4) & 1) != 0)
73    }
74    #[doc = "Bit 5 - Indicates If I2C0 Powered Down During EM23"]
75    #[inline(always)]
76    pub fn i2c0locked(&self) -> I2C0LOCKED_R {
77        I2C0LOCKED_R::new(((self.bits >> 5) & 1) != 0)
78    }
79    #[doc = "Bit 6 - Indicates If I2C1 Powered Down During EM23"]
80    #[inline(always)]
81    pub fn i2c1locked(&self) -> I2C1LOCKED_R {
82        I2C1LOCKED_R::new(((self.bits >> 6) & 1) != 0)
83    }
84    #[doc = "Bit 7 - Indicates If DAC0 Powered Down During EM23"]
85    #[inline(always)]
86    pub fn dac0locked(&self) -> DAC0LOCKED_R {
87        DAC0LOCKED_R::new(((self.bits >> 7) & 1) != 0)
88    }
89    #[doc = "Bit 8 - Indicates If IDAC0 Powered Down During EM23"]
90    #[inline(always)]
91    pub fn idac0locked(&self) -> IDAC0LOCKED_R {
92        IDAC0LOCKED_R::new(((self.bits >> 8) & 1) != 0)
93    }
94    #[doc = "Bit 9 - Indicates If ADC0 Powered Down During EM23"]
95    #[inline(always)]
96    pub fn adc0locked(&self) -> ADC0LOCKED_R {
97        ADC0LOCKED_R::new(((self.bits >> 9) & 1) != 0)
98    }
99    #[doc = "Bit 10 - Indicates If LETIMER0 Powered Down During EM23"]
100    #[inline(always)]
101    pub fn letimer0locked(&self) -> LETIMER0LOCKED_R {
102        LETIMER0LOCKED_R::new(((self.bits >> 10) & 1) != 0)
103    }
104    #[doc = "Bit 11 - Indicates If WDOG0 Powered Down During EM23"]
105    #[inline(always)]
106    pub fn wdog0locked(&self) -> WDOG0LOCKED_R {
107        WDOG0LOCKED_R::new(((self.bits >> 11) & 1) != 0)
108    }
109    #[doc = "Bit 12 - Indicates If WDOG1 Powered Down During EM23"]
110    #[inline(always)]
111    pub fn wdog1locked(&self) -> WDOG1LOCKED_R {
112        WDOG1LOCKED_R::new(((self.bits >> 12) & 1) != 0)
113    }
114    #[doc = "Bit 13 - Indicates If LESENSE0 Powered Down During EM23"]
115    #[inline(always)]
116    pub fn lesense0locked(&self) -> LESENSE0LOCKED_R {
117        LESENSE0LOCKED_R::new(((self.bits >> 13) & 1) != 0)
118    }
119    #[doc = "Bit 14 - Indicates If CSEN Powered Down During EM23"]
120    #[inline(always)]
121    pub fn csenlocked(&self) -> CSENLOCKED_R {
122        CSENLOCKED_R::new(((self.bits >> 14) & 1) != 0)
123    }
124    #[doc = "Bit 15 - Indicates If LEUART0 Powered Down During EM23"]
125    #[inline(always)]
126    pub fn leuart0locked(&self) -> LEUART0LOCKED_R {
127        LEUART0LOCKED_R::new(((self.bits >> 15) & 1) != 0)
128    }
129}
130#[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"]
131pub struct EM23PERNORETAINSTATUS_SPEC;
132impl crate::RegisterSpec for EM23PERNORETAINSTATUS_SPEC {
133    type Ux = u32;
134}
135#[doc = "`read()` method returns [em23pernoretainstatus::R](R) reader structure"]
136impl crate::Readable for EM23PERNORETAINSTATUS_SPEC {
137    type Reader = R;
138}
139#[doc = "`reset()` method sets EM23PERNORETAINSTATUS to value 0"]
140impl crate::Resettable for EM23PERNORETAINSTATUS_SPEC {
141    #[inline(always)]
142    fn reset_value() -> Self::Ux {
143        0
144    }
145}