efm32tg11b540_pac/emu/
em23pernoretainstatus.rs1#[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 `I2C0LOCKED` reader - Indicates If I2C0 Powered Down During EM23"]
23pub type I2C0LOCKED_R = crate::BitReader<bool>;
24#[doc = "Field `I2C1LOCKED` reader - Indicates If I2C1 Powered Down During EM23"]
25pub type I2C1LOCKED_R = crate::BitReader<bool>;
26#[doc = "Field `DAC0LOCKED` reader - Indicates If DAC0 Powered Down During EM23"]
27pub type DAC0LOCKED_R = crate::BitReader<bool>;
28#[doc = "Field `ADC0LOCKED` reader - Indicates If ADC0 Powered Down During EM23"]
29pub type ADC0LOCKED_R = crate::BitReader<bool>;
30#[doc = "Field `LETIMER0LOCKED` reader - Indicates If LETIMER0 Powered Down During EM23"]
31pub type LETIMER0LOCKED_R = crate::BitReader<bool>;
32#[doc = "Field `WDOG0LOCKED` reader - Indicates If WDOG0 Powered Down During EM23"]
33pub type WDOG0LOCKED_R = crate::BitReader<bool>;
34#[doc = "Field `LESENSE0LOCKED` reader - Indicates If LESENSE0 Powered Down During EM23"]
35pub type LESENSE0LOCKED_R = crate::BitReader<bool>;
36#[doc = "Field `CSENLOCKED` reader - Indicates If CSEN Powered Down During EM23"]
37pub type CSENLOCKED_R = crate::BitReader<bool>;
38#[doc = "Field `LEUART0LOCKED` reader - Indicates If LEUART0 Powered Down During EM23"]
39pub type LEUART0LOCKED_R = crate::BitReader<bool>;
40#[doc = "Field `LCDLOCKED` reader - Indicates If LCD Powered Down During EM23"]
41pub type LCDLOCKED_R = crate::BitReader<bool>;
42impl R {
43 #[doc = "Bit 0 - Indicates If ACMP0 Powered Down During EM23"]
44 #[inline(always)]
45 pub fn acmp0locked(&self) -> ACMP0LOCKED_R {
46 ACMP0LOCKED_R::new((self.bits & 1) != 0)
47 }
48 #[doc = "Bit 1 - Indicates If ACMP1 Powered Down During EM23"]
49 #[inline(always)]
50 pub fn acmp1locked(&self) -> ACMP1LOCKED_R {
51 ACMP1LOCKED_R::new(((self.bits >> 1) & 1) != 0)
52 }
53 #[doc = "Bit 2 - Indicates If PCNT0 Powered Down During EM23"]
54 #[inline(always)]
55 pub fn pcnt0locked(&self) -> PCNT0LOCKED_R {
56 PCNT0LOCKED_R::new(((self.bits >> 2) & 1) != 0)
57 }
58 #[doc = "Bit 5 - Indicates If I2C0 Powered Down During EM23"]
59 #[inline(always)]
60 pub fn i2c0locked(&self) -> I2C0LOCKED_R {
61 I2C0LOCKED_R::new(((self.bits >> 5) & 1) != 0)
62 }
63 #[doc = "Bit 6 - Indicates If I2C1 Powered Down During EM23"]
64 #[inline(always)]
65 pub fn i2c1locked(&self) -> I2C1LOCKED_R {
66 I2C1LOCKED_R::new(((self.bits >> 6) & 1) != 0)
67 }
68 #[doc = "Bit 7 - Indicates If DAC0 Powered Down During EM23"]
69 #[inline(always)]
70 pub fn dac0locked(&self) -> DAC0LOCKED_R {
71 DAC0LOCKED_R::new(((self.bits >> 7) & 1) != 0)
72 }
73 #[doc = "Bit 9 - Indicates If ADC0 Powered Down During EM23"]
74 #[inline(always)]
75 pub fn adc0locked(&self) -> ADC0LOCKED_R {
76 ADC0LOCKED_R::new(((self.bits >> 9) & 1) != 0)
77 }
78 #[doc = "Bit 10 - Indicates If LETIMER0 Powered Down During EM23"]
79 #[inline(always)]
80 pub fn letimer0locked(&self) -> LETIMER0LOCKED_R {
81 LETIMER0LOCKED_R::new(((self.bits >> 10) & 1) != 0)
82 }
83 #[doc = "Bit 11 - Indicates If WDOG0 Powered Down During EM23"]
84 #[inline(always)]
85 pub fn wdog0locked(&self) -> WDOG0LOCKED_R {
86 WDOG0LOCKED_R::new(((self.bits >> 11) & 1) != 0)
87 }
88 #[doc = "Bit 13 - Indicates If LESENSE0 Powered Down During EM23"]
89 #[inline(always)]
90 pub fn lesense0locked(&self) -> LESENSE0LOCKED_R {
91 LESENSE0LOCKED_R::new(((self.bits >> 13) & 1) != 0)
92 }
93 #[doc = "Bit 14 - Indicates If CSEN Powered Down During EM23"]
94 #[inline(always)]
95 pub fn csenlocked(&self) -> CSENLOCKED_R {
96 CSENLOCKED_R::new(((self.bits >> 14) & 1) != 0)
97 }
98 #[doc = "Bit 15 - Indicates If LEUART0 Powered Down During EM23"]
99 #[inline(always)]
100 pub fn leuart0locked(&self) -> LEUART0LOCKED_R {
101 LEUART0LOCKED_R::new(((self.bits >> 15) & 1) != 0)
102 }
103 #[doc = "Bit 17 - Indicates If LCD Powered Down During EM23"]
104 #[inline(always)]
105 pub fn lcdlocked(&self) -> LCDLOCKED_R {
106 LCDLOCKED_R::new(((self.bits >> 17) & 1) != 0)
107 }
108}
109#[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"]
110pub struct EM23PERNORETAINSTATUS_SPEC;
111impl crate::RegisterSpec for EM23PERNORETAINSTATUS_SPEC {
112 type Ux = u32;
113}
114#[doc = "`read()` method returns [em23pernoretainstatus::R](R) reader structure"]
115impl crate::Readable for EM23PERNORETAINSTATUS_SPEC {
116 type Reader = R;
117}
118#[doc = "`reset()` method sets EM23PERNORETAINSTATUS to value 0"]
119impl crate::Resettable for EM23PERNORETAINSTATUS_SPEC {
120 #[inline(always)]
121 fn reset_value() -> Self::Ux {
122 0
123 }
124}