1#[doc = "Register `PAD_HOLD` reader"]
2pub type R = crate::R<PAD_HOLD_SPEC>;
3#[doc = "Register `PAD_HOLD` writer"]
4pub type W = crate::W<PAD_HOLD_SPEC>;
5#[doc = "Field `TOUCH_PAD0` reader - hold rtc pad0"]
6pub type TOUCH_PAD0_R = crate::BitReader;
7#[doc = "Field `TOUCH_PAD0` writer - hold rtc pad0"]
8pub type TOUCH_PAD0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TOUCH_PAD1` reader - hold rtc pad-1"]
10pub type TOUCH_PAD1_R = crate::BitReader;
11#[doc = "Field `TOUCH_PAD1` writer - hold rtc pad-1"]
12pub type TOUCH_PAD1_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TOUCH_PAD2` reader - hold rtc pad-2"]
14pub type TOUCH_PAD2_R = crate::BitReader;
15#[doc = "Field `TOUCH_PAD2` writer - hold rtc pad-2"]
16pub type TOUCH_PAD2_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `TOUCH_PAD3` reader - hold rtc pad-3"]
18pub type TOUCH_PAD3_R = crate::BitReader;
19#[doc = "Field `TOUCH_PAD3` writer - hold rtc pad-3"]
20pub type TOUCH_PAD3_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TOUCH_PAD4` reader - hold rtc pad-4"]
22pub type TOUCH_PAD4_R = crate::BitReader;
23#[doc = "Field `TOUCH_PAD4` writer - hold rtc pad-4"]
24pub type TOUCH_PAD4_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TOUCH_PAD5` reader - hold rtc pad-5"]
26pub type TOUCH_PAD5_R = crate::BitReader;
27#[doc = "Field `TOUCH_PAD5` writer - hold rtc pad-5"]
28pub type TOUCH_PAD5_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TOUCH_PAD6` reader - hold rtc pad-6"]
30pub type TOUCH_PAD6_R = crate::BitReader;
31#[doc = "Field `TOUCH_PAD6` writer - hold rtc pad-6"]
32pub type TOUCH_PAD6_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `TOUCH_PAD7` reader - hold rtc pad-7"]
34pub type TOUCH_PAD7_R = crate::BitReader;
35#[doc = "Field `TOUCH_PAD7` writer - hold rtc pad-7"]
36pub type TOUCH_PAD7_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `TOUCH_PAD8` reader - hold rtc pad-8"]
38pub type TOUCH_PAD8_R = crate::BitReader;
39#[doc = "Field `TOUCH_PAD8` writer - hold rtc pad-8"]
40pub type TOUCH_PAD8_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `TOUCH_PAD9` reader - hold rtc pad-9"]
42pub type TOUCH_PAD9_R = crate::BitReader;
43#[doc = "Field `TOUCH_PAD9` writer - hold rtc pad-9"]
44pub type TOUCH_PAD9_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `TOUCH_PAD10` reader - hold rtc pad-10"]
46pub type TOUCH_PAD10_R = crate::BitReader;
47#[doc = "Field `TOUCH_PAD10` writer - hold rtc pad-10"]
48pub type TOUCH_PAD10_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `TOUCH_PAD11` reader - hold rtc pad-11"]
50pub type TOUCH_PAD11_R = crate::BitReader;
51#[doc = "Field `TOUCH_PAD11` writer - hold rtc pad-11"]
52pub type TOUCH_PAD11_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `TOUCH_PAD12` reader - hold rtc pad-12"]
54pub type TOUCH_PAD12_R = crate::BitReader;
55#[doc = "Field `TOUCH_PAD12` writer - hold rtc pad-12"]
56pub type TOUCH_PAD12_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `TOUCH_PAD13` reader - hold rtc pad-13"]
58pub type TOUCH_PAD13_R = crate::BitReader;
59#[doc = "Field `TOUCH_PAD13` writer - hold rtc pad-13"]
60pub type TOUCH_PAD13_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `TOUCH_PAD14` reader - hold rtc pad-14"]
62pub type TOUCH_PAD14_R = crate::BitReader;
63#[doc = "Field `TOUCH_PAD14` writer - hold rtc pad-14"]
64pub type TOUCH_PAD14_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `X32P` reader - hold rtc pad-15"]
66pub type X32P_R = crate::BitReader;
67#[doc = "Field `X32P` writer - hold rtc pad-15"]
68pub type X32P_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `X32N` reader - hold rtc pad-16"]
70pub type X32N_R = crate::BitReader;
71#[doc = "Field `X32N` writer - hold rtc pad-16"]
72pub type X32N_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `PDAC1` reader - hold rtc pad-17"]
74pub type PDAC1_R = crate::BitReader;
75#[doc = "Field `PDAC1` writer - hold rtc pad-17"]
76pub type PDAC1_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `PDAC2` reader - hold rtc pad-18"]
78pub type PDAC2_R = crate::BitReader;
79#[doc = "Field `PDAC2` writer - hold rtc pad-18"]
80pub type PDAC2_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `PAD19` reader - hold rtc pad-19"]
82pub type PAD19_R = crate::BitReader;
83#[doc = "Field `PAD19` writer - hold rtc pad-19"]
84pub type PAD19_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `PAD20` reader - hold rtc pad-20"]
86pub type PAD20_R = crate::BitReader;
87#[doc = "Field `PAD20` writer - hold rtc pad-20"]
88pub type PAD20_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `PAD21` reader - hold rtc pad-21"]
90pub type PAD21_R = crate::BitReader;
91#[doc = "Field `PAD21` writer - hold rtc pad-21"]
92pub type PAD21_W<'a, REG> = crate::BitWriter<'a, REG>;
93impl R {
94 #[doc = "Bit 0 - hold rtc pad0"]
95 #[inline(always)]
96 pub fn touch_pad0(&self) -> TOUCH_PAD0_R {
97 TOUCH_PAD0_R::new((self.bits & 1) != 0)
98 }
99 #[doc = "Bit 1 - hold rtc pad-1"]
100 #[inline(always)]
101 pub fn touch_pad1(&self) -> TOUCH_PAD1_R {
102 TOUCH_PAD1_R::new(((self.bits >> 1) & 1) != 0)
103 }
104 #[doc = "Bit 2 - hold rtc pad-2"]
105 #[inline(always)]
106 pub fn touch_pad2(&self) -> TOUCH_PAD2_R {
107 TOUCH_PAD2_R::new(((self.bits >> 2) & 1) != 0)
108 }
109 #[doc = "Bit 3 - hold rtc pad-3"]
110 #[inline(always)]
111 pub fn touch_pad3(&self) -> TOUCH_PAD3_R {
112 TOUCH_PAD3_R::new(((self.bits >> 3) & 1) != 0)
113 }
114 #[doc = "Bit 4 - hold rtc pad-4"]
115 #[inline(always)]
116 pub fn touch_pad4(&self) -> TOUCH_PAD4_R {
117 TOUCH_PAD4_R::new(((self.bits >> 4) & 1) != 0)
118 }
119 #[doc = "Bit 5 - hold rtc pad-5"]
120 #[inline(always)]
121 pub fn touch_pad5(&self) -> TOUCH_PAD5_R {
122 TOUCH_PAD5_R::new(((self.bits >> 5) & 1) != 0)
123 }
124 #[doc = "Bit 6 - hold rtc pad-6"]
125 #[inline(always)]
126 pub fn touch_pad6(&self) -> TOUCH_PAD6_R {
127 TOUCH_PAD6_R::new(((self.bits >> 6) & 1) != 0)
128 }
129 #[doc = "Bit 7 - hold rtc pad-7"]
130 #[inline(always)]
131 pub fn touch_pad7(&self) -> TOUCH_PAD7_R {
132 TOUCH_PAD7_R::new(((self.bits >> 7) & 1) != 0)
133 }
134 #[doc = "Bit 8 - hold rtc pad-8"]
135 #[inline(always)]
136 pub fn touch_pad8(&self) -> TOUCH_PAD8_R {
137 TOUCH_PAD8_R::new(((self.bits >> 8) & 1) != 0)
138 }
139 #[doc = "Bit 9 - hold rtc pad-9"]
140 #[inline(always)]
141 pub fn touch_pad9(&self) -> TOUCH_PAD9_R {
142 TOUCH_PAD9_R::new(((self.bits >> 9) & 1) != 0)
143 }
144 #[doc = "Bit 10 - hold rtc pad-10"]
145 #[inline(always)]
146 pub fn touch_pad10(&self) -> TOUCH_PAD10_R {
147 TOUCH_PAD10_R::new(((self.bits >> 10) & 1) != 0)
148 }
149 #[doc = "Bit 11 - hold rtc pad-11"]
150 #[inline(always)]
151 pub fn touch_pad11(&self) -> TOUCH_PAD11_R {
152 TOUCH_PAD11_R::new(((self.bits >> 11) & 1) != 0)
153 }
154 #[doc = "Bit 12 - hold rtc pad-12"]
155 #[inline(always)]
156 pub fn touch_pad12(&self) -> TOUCH_PAD12_R {
157 TOUCH_PAD12_R::new(((self.bits >> 12) & 1) != 0)
158 }
159 #[doc = "Bit 13 - hold rtc pad-13"]
160 #[inline(always)]
161 pub fn touch_pad13(&self) -> TOUCH_PAD13_R {
162 TOUCH_PAD13_R::new(((self.bits >> 13) & 1) != 0)
163 }
164 #[doc = "Bit 14 - hold rtc pad-14"]
165 #[inline(always)]
166 pub fn touch_pad14(&self) -> TOUCH_PAD14_R {
167 TOUCH_PAD14_R::new(((self.bits >> 14) & 1) != 0)
168 }
169 #[doc = "Bit 15 - hold rtc pad-15"]
170 #[inline(always)]
171 pub fn x32p(&self) -> X32P_R {
172 X32P_R::new(((self.bits >> 15) & 1) != 0)
173 }
174 #[doc = "Bit 16 - hold rtc pad-16"]
175 #[inline(always)]
176 pub fn x32n(&self) -> X32N_R {
177 X32N_R::new(((self.bits >> 16) & 1) != 0)
178 }
179 #[doc = "Bit 17 - hold rtc pad-17"]
180 #[inline(always)]
181 pub fn pdac1(&self) -> PDAC1_R {
182 PDAC1_R::new(((self.bits >> 17) & 1) != 0)
183 }
184 #[doc = "Bit 18 - hold rtc pad-18"]
185 #[inline(always)]
186 pub fn pdac2(&self) -> PDAC2_R {
187 PDAC2_R::new(((self.bits >> 18) & 1) != 0)
188 }
189 #[doc = "Bit 19 - hold rtc pad-19"]
190 #[inline(always)]
191 pub fn pad19(&self) -> PAD19_R {
192 PAD19_R::new(((self.bits >> 19) & 1) != 0)
193 }
194 #[doc = "Bit 20 - hold rtc pad-20"]
195 #[inline(always)]
196 pub fn pad20(&self) -> PAD20_R {
197 PAD20_R::new(((self.bits >> 20) & 1) != 0)
198 }
199 #[doc = "Bit 21 - hold rtc pad-21"]
200 #[inline(always)]
201 pub fn pad21(&self) -> PAD21_R {
202 PAD21_R::new(((self.bits >> 21) & 1) != 0)
203 }
204}
205#[cfg(feature = "impl-register-debug")]
206impl core::fmt::Debug for R {
207 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
208 f.debug_struct("PAD_HOLD")
209 .field("touch_pad0", &self.touch_pad0())
210 .field("touch_pad1", &self.touch_pad1())
211 .field("touch_pad2", &self.touch_pad2())
212 .field("touch_pad3", &self.touch_pad3())
213 .field("touch_pad4", &self.touch_pad4())
214 .field("touch_pad5", &self.touch_pad5())
215 .field("touch_pad6", &self.touch_pad6())
216 .field("touch_pad7", &self.touch_pad7())
217 .field("touch_pad8", &self.touch_pad8())
218 .field("touch_pad9", &self.touch_pad9())
219 .field("touch_pad10", &self.touch_pad10())
220 .field("touch_pad11", &self.touch_pad11())
221 .field("touch_pad12", &self.touch_pad12())
222 .field("touch_pad13", &self.touch_pad13())
223 .field("touch_pad14", &self.touch_pad14())
224 .field("x32p", &self.x32p())
225 .field("x32n", &self.x32n())
226 .field("pdac1", &self.pdac1())
227 .field("pdac2", &self.pdac2())
228 .field("pad19", &self.pad19())
229 .field("pad20", &self.pad20())
230 .field("pad21", &self.pad21())
231 .finish()
232 }
233}
234impl W {
235 #[doc = "Bit 0 - hold rtc pad0"]
236 #[inline(always)]
237 pub fn touch_pad0(&mut self) -> TOUCH_PAD0_W<PAD_HOLD_SPEC> {
238 TOUCH_PAD0_W::new(self, 0)
239 }
240 #[doc = "Bit 1 - hold rtc pad-1"]
241 #[inline(always)]
242 pub fn touch_pad1(&mut self) -> TOUCH_PAD1_W<PAD_HOLD_SPEC> {
243 TOUCH_PAD1_W::new(self, 1)
244 }
245 #[doc = "Bit 2 - hold rtc pad-2"]
246 #[inline(always)]
247 pub fn touch_pad2(&mut self) -> TOUCH_PAD2_W<PAD_HOLD_SPEC> {
248 TOUCH_PAD2_W::new(self, 2)
249 }
250 #[doc = "Bit 3 - hold rtc pad-3"]
251 #[inline(always)]
252 pub fn touch_pad3(&mut self) -> TOUCH_PAD3_W<PAD_HOLD_SPEC> {
253 TOUCH_PAD3_W::new(self, 3)
254 }
255 #[doc = "Bit 4 - hold rtc pad-4"]
256 #[inline(always)]
257 pub fn touch_pad4(&mut self) -> TOUCH_PAD4_W<PAD_HOLD_SPEC> {
258 TOUCH_PAD4_W::new(self, 4)
259 }
260 #[doc = "Bit 5 - hold rtc pad-5"]
261 #[inline(always)]
262 pub fn touch_pad5(&mut self) -> TOUCH_PAD5_W<PAD_HOLD_SPEC> {
263 TOUCH_PAD5_W::new(self, 5)
264 }
265 #[doc = "Bit 6 - hold rtc pad-6"]
266 #[inline(always)]
267 pub fn touch_pad6(&mut self) -> TOUCH_PAD6_W<PAD_HOLD_SPEC> {
268 TOUCH_PAD6_W::new(self, 6)
269 }
270 #[doc = "Bit 7 - hold rtc pad-7"]
271 #[inline(always)]
272 pub fn touch_pad7(&mut self) -> TOUCH_PAD7_W<PAD_HOLD_SPEC> {
273 TOUCH_PAD7_W::new(self, 7)
274 }
275 #[doc = "Bit 8 - hold rtc pad-8"]
276 #[inline(always)]
277 pub fn touch_pad8(&mut self) -> TOUCH_PAD8_W<PAD_HOLD_SPEC> {
278 TOUCH_PAD8_W::new(self, 8)
279 }
280 #[doc = "Bit 9 - hold rtc pad-9"]
281 #[inline(always)]
282 pub fn touch_pad9(&mut self) -> TOUCH_PAD9_W<PAD_HOLD_SPEC> {
283 TOUCH_PAD9_W::new(self, 9)
284 }
285 #[doc = "Bit 10 - hold rtc pad-10"]
286 #[inline(always)]
287 pub fn touch_pad10(&mut self) -> TOUCH_PAD10_W<PAD_HOLD_SPEC> {
288 TOUCH_PAD10_W::new(self, 10)
289 }
290 #[doc = "Bit 11 - hold rtc pad-11"]
291 #[inline(always)]
292 pub fn touch_pad11(&mut self) -> TOUCH_PAD11_W<PAD_HOLD_SPEC> {
293 TOUCH_PAD11_W::new(self, 11)
294 }
295 #[doc = "Bit 12 - hold rtc pad-12"]
296 #[inline(always)]
297 pub fn touch_pad12(&mut self) -> TOUCH_PAD12_W<PAD_HOLD_SPEC> {
298 TOUCH_PAD12_W::new(self, 12)
299 }
300 #[doc = "Bit 13 - hold rtc pad-13"]
301 #[inline(always)]
302 pub fn touch_pad13(&mut self) -> TOUCH_PAD13_W<PAD_HOLD_SPEC> {
303 TOUCH_PAD13_W::new(self, 13)
304 }
305 #[doc = "Bit 14 - hold rtc pad-14"]
306 #[inline(always)]
307 pub fn touch_pad14(&mut self) -> TOUCH_PAD14_W<PAD_HOLD_SPEC> {
308 TOUCH_PAD14_W::new(self, 14)
309 }
310 #[doc = "Bit 15 - hold rtc pad-15"]
311 #[inline(always)]
312 pub fn x32p(&mut self) -> X32P_W<PAD_HOLD_SPEC> {
313 X32P_W::new(self, 15)
314 }
315 #[doc = "Bit 16 - hold rtc pad-16"]
316 #[inline(always)]
317 pub fn x32n(&mut self) -> X32N_W<PAD_HOLD_SPEC> {
318 X32N_W::new(self, 16)
319 }
320 #[doc = "Bit 17 - hold rtc pad-17"]
321 #[inline(always)]
322 pub fn pdac1(&mut self) -> PDAC1_W<PAD_HOLD_SPEC> {
323 PDAC1_W::new(self, 17)
324 }
325 #[doc = "Bit 18 - hold rtc pad-18"]
326 #[inline(always)]
327 pub fn pdac2(&mut self) -> PDAC2_W<PAD_HOLD_SPEC> {
328 PDAC2_W::new(self, 18)
329 }
330 #[doc = "Bit 19 - hold rtc pad-19"]
331 #[inline(always)]
332 pub fn pad19(&mut self) -> PAD19_W<PAD_HOLD_SPEC> {
333 PAD19_W::new(self, 19)
334 }
335 #[doc = "Bit 20 - hold rtc pad-20"]
336 #[inline(always)]
337 pub fn pad20(&mut self) -> PAD20_W<PAD_HOLD_SPEC> {
338 PAD20_W::new(self, 20)
339 }
340 #[doc = "Bit 21 - hold rtc pad-21"]
341 #[inline(always)]
342 pub fn pad21(&mut self) -> PAD21_W<PAD_HOLD_SPEC> {
343 PAD21_W::new(self, 21)
344 }
345}
346#[doc = "rtc pad hold configure\n\nYou can [`read`](crate::Reg::read) this register and get [`pad_hold::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pad_hold::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
347pub struct PAD_HOLD_SPEC;
348impl crate::RegisterSpec for PAD_HOLD_SPEC {
349 type Ux = u32;
350}
351#[doc = "`read()` method returns [`pad_hold::R`](R) reader structure"]
352impl crate::Readable for PAD_HOLD_SPEC {}
353#[doc = "`write(|w| ..)` method takes [`pad_hold::W`](W) writer structure"]
354impl crate::Writable for PAD_HOLD_SPEC {
355 type Safety = crate::Unsafe;
356 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
357 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
358}
359#[doc = "`reset()` method sets PAD_HOLD to value 0"]
360impl crate::Resettable for PAD_HOLD_SPEC {
361 const RESET_VALUE: u32 = 0;
362}