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