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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#[doc = "Register `EM23PERNORETAINCMD` writer"]
pub struct W(crate::W<EM23PERNORETAINCMD_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<EM23PERNORETAINCMD_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<EM23PERNORETAINCMD_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<EM23PERNORETAINCMD_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `ACMP0UNLOCK` writer - Clears Status Bit of ACMP0 and Unlocks Access to It"]
pub type ACMP0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `ACMP1UNLOCK` writer - Clears Status Bit of ACMP1 and Unlocks Access to It"]
pub type ACMP1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `PCNT0UNLOCK` writer - Clears Status Bit of PCNT0 and Unlocks Access to It"]
pub type PCNT0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `PCNT1UNLOCK` writer - Clears Status Bit of PCNT1 and Unlocks Access to It"]
pub type PCNT1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `PCNT2UNLOCK` writer - Clears Status Bit of PCNT2 and Unlocks Access to It"]
pub type PCNT2UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `I2C0UNLOCK` writer - Clears Status Bit of I2C0 and Unlocks Access to It"]
pub type I2C0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `I2C1UNLOCK` writer - Clears Status Bit of I2C1 and Unlocks Access to It"]
pub type I2C1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `DAC0UNLOCK` writer - Clears Status Bit of DAC0 and Unlocks Access to It"]
pub type DAC0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `IDAC0UNLOCK` writer - Clears Status Bit of IDAC0 and Unlocks Access to It"]
pub type IDAC0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `ADC0UNLOCK` writer - Clears Status Bit of ADC0 and Unlocks Access to It"]
pub type ADC0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LETIMER0UNLOCK` writer - Clears Status Bit of LETIMER0 and Unlocks Access to It"]
pub type LETIMER0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `WDOG0UNLOCK` writer - Clears Status Bit of WDOG0 and Unlocks Access to It"]
pub type WDOG0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `WDOG1UNLOCK` writer - Clears Status Bit of WDOG1 and Unlocks Access to It"]
pub type WDOG1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LESENSE0UNLOCK` writer - Clears Status Bit of LESENSE0 and Unlocks Access to It"]
pub type LESENSE0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `CSENUNLOCK` writer - Clears Status Bit of CSEN and Unlocks Access to It"]
pub type CSENUNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LEUART0UNLOCK` writer - Clears Status Bit of LEUART0 and Unlocks Access to It"]
pub type LEUART0UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LEUART1UNLOCK` writer - Clears Status Bit of LEUART1 and Unlocks Access to It"]
pub type LEUART1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LCDUNLOCK` writer - Clears Status Bit of LCD and Unlocks Access to It"]
pub type LCDUNLOCK_W<'a, const O: u8> = crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `LETIMER1UNLOCK` writer - Clears Status Bit of LETIMER1 and Unlocks Access to It"]
pub type LETIMER1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `I2C2UNLOCK` writer - Clears Status Bit of I2C2 and Unlocks Access to It"]
pub type I2C2UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `ADC1UNLOCK` writer - Clears Status Bit of ADC1 and Unlocks Access to It"]
pub type ADC1UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `ACMP2UNLOCK` writer - Clears Status Bit of ACMP2 and Unlocks Access to It"]
pub type ACMP2UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `ACMP3UNLOCK` writer - Clears Status Bit of ACMP3 and Unlocks Access to It"]
pub type ACMP3UNLOCK_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
#[doc = "Field `RTCUNLOCK` writer - Clears Status Bit of RTC and Unlocks Access to It"]
pub type RTCUNLOCK_W<'a, const O: u8> = crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
impl W {
    #[doc = "Bit 0 - Clears Status Bit of ACMP0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn acmp0unlock(&mut self) -> ACMP0UNLOCK_W<0> {
        ACMP0UNLOCK_W::new(self)
    }
    #[doc = "Bit 1 - Clears Status Bit of ACMP1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn acmp1unlock(&mut self) -> ACMP1UNLOCK_W<1> {
        ACMP1UNLOCK_W::new(self)
    }
    #[doc = "Bit 2 - Clears Status Bit of PCNT0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn pcnt0unlock(&mut self) -> PCNT0UNLOCK_W<2> {
        PCNT0UNLOCK_W::new(self)
    }
    #[doc = "Bit 3 - Clears Status Bit of PCNT1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn pcnt1unlock(&mut self) -> PCNT1UNLOCK_W<3> {
        PCNT1UNLOCK_W::new(self)
    }
    #[doc = "Bit 4 - Clears Status Bit of PCNT2 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn pcnt2unlock(&mut self) -> PCNT2UNLOCK_W<4> {
        PCNT2UNLOCK_W::new(self)
    }
    #[doc = "Bit 5 - Clears Status Bit of I2C0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn i2c0unlock(&mut self) -> I2C0UNLOCK_W<5> {
        I2C0UNLOCK_W::new(self)
    }
    #[doc = "Bit 6 - Clears Status Bit of I2C1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn i2c1unlock(&mut self) -> I2C1UNLOCK_W<6> {
        I2C1UNLOCK_W::new(self)
    }
    #[doc = "Bit 7 - Clears Status Bit of DAC0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn dac0unlock(&mut self) -> DAC0UNLOCK_W<7> {
        DAC0UNLOCK_W::new(self)
    }
    #[doc = "Bit 8 - Clears Status Bit of IDAC0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn idac0unlock(&mut self) -> IDAC0UNLOCK_W<8> {
        IDAC0UNLOCK_W::new(self)
    }
    #[doc = "Bit 9 - Clears Status Bit of ADC0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn adc0unlock(&mut self) -> ADC0UNLOCK_W<9> {
        ADC0UNLOCK_W::new(self)
    }
    #[doc = "Bit 10 - Clears Status Bit of LETIMER0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn letimer0unlock(&mut self) -> LETIMER0UNLOCK_W<10> {
        LETIMER0UNLOCK_W::new(self)
    }
    #[doc = "Bit 11 - Clears Status Bit of WDOG0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn wdog0unlock(&mut self) -> WDOG0UNLOCK_W<11> {
        WDOG0UNLOCK_W::new(self)
    }
    #[doc = "Bit 12 - Clears Status Bit of WDOG1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn wdog1unlock(&mut self) -> WDOG1UNLOCK_W<12> {
        WDOG1UNLOCK_W::new(self)
    }
    #[doc = "Bit 13 - Clears Status Bit of LESENSE0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn lesense0unlock(&mut self) -> LESENSE0UNLOCK_W<13> {
        LESENSE0UNLOCK_W::new(self)
    }
    #[doc = "Bit 14 - Clears Status Bit of CSEN and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn csenunlock(&mut self) -> CSENUNLOCK_W<14> {
        CSENUNLOCK_W::new(self)
    }
    #[doc = "Bit 15 - Clears Status Bit of LEUART0 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn leuart0unlock(&mut self) -> LEUART0UNLOCK_W<15> {
        LEUART0UNLOCK_W::new(self)
    }
    #[doc = "Bit 16 - Clears Status Bit of LEUART1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn leuart1unlock(&mut self) -> LEUART1UNLOCK_W<16> {
        LEUART1UNLOCK_W::new(self)
    }
    #[doc = "Bit 17 - Clears Status Bit of LCD and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn lcdunlock(&mut self) -> LCDUNLOCK_W<17> {
        LCDUNLOCK_W::new(self)
    }
    #[doc = "Bit 18 - Clears Status Bit of LETIMER1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn letimer1unlock(&mut self) -> LETIMER1UNLOCK_W<18> {
        LETIMER1UNLOCK_W::new(self)
    }
    #[doc = "Bit 19 - Clears Status Bit of I2C2 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn i2c2unlock(&mut self) -> I2C2UNLOCK_W<19> {
        I2C2UNLOCK_W::new(self)
    }
    #[doc = "Bit 20 - Clears Status Bit of ADC1 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn adc1unlock(&mut self) -> ADC1UNLOCK_W<20> {
        ADC1UNLOCK_W::new(self)
    }
    #[doc = "Bit 21 - Clears Status Bit of ACMP2 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn acmp2unlock(&mut self) -> ACMP2UNLOCK_W<21> {
        ACMP2UNLOCK_W::new(self)
    }
    #[doc = "Bit 22 - Clears Status Bit of ACMP3 and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn acmp3unlock(&mut self) -> ACMP3UNLOCK_W<22> {
        ACMP3UNLOCK_W::new(self)
    }
    #[doc = "Bit 23 - Clears Status Bit of RTC and Unlocks Access to It"]
    #[inline(always)]
    #[must_use]
    pub fn rtcunlock(&mut self) -> RTCUNLOCK_W<23> {
        RTCUNLOCK_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Clears Corresponding Bits in EM23PERNORETAINSTATUS Unlocking Access to Peripheral\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [em23pernoretaincmd](index.html) module"]
pub struct EM23PERNORETAINCMD_SPEC;
impl crate::RegisterSpec for EM23PERNORETAINCMD_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [em23pernoretaincmd::W](W) writer structure"]
impl crate::Writable for EM23PERNORETAINCMD_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets EM23PERNORETAINCMD to value 0"]
impl crate::Resettable for EM23PERNORETAINCMD_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}