atsams70j21/pmc/
pmc_slpwk_sr0.rs1#[doc = "Register `PMC_SLPWK_SR0` reader"]
2pub struct R(crate::R<PMC_SLPWK_SR0_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PMC_SLPWK_SR0_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PMC_SLPWK_SR0_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PMC_SLPWK_SR0_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `PID7` reader - Peripheral 7 SleepWalking Status"]
17pub struct PID7_R(crate::FieldReader<bool, bool>);
18impl PID7_R {
19 #[inline(always)]
20 pub(crate) fn new(bits: bool) -> Self {
21 PID7_R(crate::FieldReader::new(bits))
22 }
23}
24impl core::ops::Deref for PID7_R {
25 type Target = crate::FieldReader<bool, bool>;
26 #[inline(always)]
27 fn deref(&self) -> &Self::Target {
28 &self.0
29 }
30}
31#[doc = "Field `PID8` reader - Peripheral 8 SleepWalking Status"]
32pub struct PID8_R(crate::FieldReader<bool, bool>);
33impl PID8_R {
34 #[inline(always)]
35 pub(crate) fn new(bits: bool) -> Self {
36 PID8_R(crate::FieldReader::new(bits))
37 }
38}
39impl core::ops::Deref for PID8_R {
40 type Target = crate::FieldReader<bool, bool>;
41 #[inline(always)]
42 fn deref(&self) -> &Self::Target {
43 &self.0
44 }
45}
46#[doc = "Field `PID9` reader - Peripheral 9 SleepWalking Status"]
47pub struct PID9_R(crate::FieldReader<bool, bool>);
48impl PID9_R {
49 #[inline(always)]
50 pub(crate) fn new(bits: bool) -> Self {
51 PID9_R(crate::FieldReader::new(bits))
52 }
53}
54impl core::ops::Deref for PID9_R {
55 type Target = crate::FieldReader<bool, bool>;
56 #[inline(always)]
57 fn deref(&self) -> &Self::Target {
58 &self.0
59 }
60}
61#[doc = "Field `PID10` reader - Peripheral 10 SleepWalking Status"]
62pub struct PID10_R(crate::FieldReader<bool, bool>);
63impl PID10_R {
64 #[inline(always)]
65 pub(crate) fn new(bits: bool) -> Self {
66 PID10_R(crate::FieldReader::new(bits))
67 }
68}
69impl core::ops::Deref for PID10_R {
70 type Target = crate::FieldReader<bool, bool>;
71 #[inline(always)]
72 fn deref(&self) -> &Self::Target {
73 &self.0
74 }
75}
76#[doc = "Field `PID11` reader - Peripheral 11 SleepWalking Status"]
77pub struct PID11_R(crate::FieldReader<bool, bool>);
78impl PID11_R {
79 #[inline(always)]
80 pub(crate) fn new(bits: bool) -> Self {
81 PID11_R(crate::FieldReader::new(bits))
82 }
83}
84impl core::ops::Deref for PID11_R {
85 type Target = crate::FieldReader<bool, bool>;
86 #[inline(always)]
87 fn deref(&self) -> &Self::Target {
88 &self.0
89 }
90}
91#[doc = "Field `PID12` reader - Peripheral 12 SleepWalking Status"]
92pub struct PID12_R(crate::FieldReader<bool, bool>);
93impl PID12_R {
94 #[inline(always)]
95 pub(crate) fn new(bits: bool) -> Self {
96 PID12_R(crate::FieldReader::new(bits))
97 }
98}
99impl core::ops::Deref for PID12_R {
100 type Target = crate::FieldReader<bool, bool>;
101 #[inline(always)]
102 fn deref(&self) -> &Self::Target {
103 &self.0
104 }
105}
106#[doc = "Field `PID13` reader - Peripheral 13 SleepWalking Status"]
107pub struct PID13_R(crate::FieldReader<bool, bool>);
108impl PID13_R {
109 #[inline(always)]
110 pub(crate) fn new(bits: bool) -> Self {
111 PID13_R(crate::FieldReader::new(bits))
112 }
113}
114impl core::ops::Deref for PID13_R {
115 type Target = crate::FieldReader<bool, bool>;
116 #[inline(always)]
117 fn deref(&self) -> &Self::Target {
118 &self.0
119 }
120}
121#[doc = "Field `PID14` reader - Peripheral 14 SleepWalking Status"]
122pub struct PID14_R(crate::FieldReader<bool, bool>);
123impl PID14_R {
124 #[inline(always)]
125 pub(crate) fn new(bits: bool) -> Self {
126 PID14_R(crate::FieldReader::new(bits))
127 }
128}
129impl core::ops::Deref for PID14_R {
130 type Target = crate::FieldReader<bool, bool>;
131 #[inline(always)]
132 fn deref(&self) -> &Self::Target {
133 &self.0
134 }
135}
136#[doc = "Field `PID15` reader - Peripheral 15 SleepWalking Status"]
137pub struct PID15_R(crate::FieldReader<bool, bool>);
138impl PID15_R {
139 #[inline(always)]
140 pub(crate) fn new(bits: bool) -> Self {
141 PID15_R(crate::FieldReader::new(bits))
142 }
143}
144impl core::ops::Deref for PID15_R {
145 type Target = crate::FieldReader<bool, bool>;
146 #[inline(always)]
147 fn deref(&self) -> &Self::Target {
148 &self.0
149 }
150}
151#[doc = "Field `PID16` reader - Peripheral 16 SleepWalking Status"]
152pub struct PID16_R(crate::FieldReader<bool, bool>);
153impl PID16_R {
154 #[inline(always)]
155 pub(crate) fn new(bits: bool) -> Self {
156 PID16_R(crate::FieldReader::new(bits))
157 }
158}
159impl core::ops::Deref for PID16_R {
160 type Target = crate::FieldReader<bool, bool>;
161 #[inline(always)]
162 fn deref(&self) -> &Self::Target {
163 &self.0
164 }
165}
166#[doc = "Field `PID17` reader - Peripheral 17 SleepWalking Status"]
167pub struct PID17_R(crate::FieldReader<bool, bool>);
168impl PID17_R {
169 #[inline(always)]
170 pub(crate) fn new(bits: bool) -> Self {
171 PID17_R(crate::FieldReader::new(bits))
172 }
173}
174impl core::ops::Deref for PID17_R {
175 type Target = crate::FieldReader<bool, bool>;
176 #[inline(always)]
177 fn deref(&self) -> &Self::Target {
178 &self.0
179 }
180}
181#[doc = "Field `PID18` reader - Peripheral 18 SleepWalking Status"]
182pub struct PID18_R(crate::FieldReader<bool, bool>);
183impl PID18_R {
184 #[inline(always)]
185 pub(crate) fn new(bits: bool) -> Self {
186 PID18_R(crate::FieldReader::new(bits))
187 }
188}
189impl core::ops::Deref for PID18_R {
190 type Target = crate::FieldReader<bool, bool>;
191 #[inline(always)]
192 fn deref(&self) -> &Self::Target {
193 &self.0
194 }
195}
196#[doc = "Field `PID19` reader - Peripheral 19 SleepWalking Status"]
197pub struct PID19_R(crate::FieldReader<bool, bool>);
198impl PID19_R {
199 #[inline(always)]
200 pub(crate) fn new(bits: bool) -> Self {
201 PID19_R(crate::FieldReader::new(bits))
202 }
203}
204impl core::ops::Deref for PID19_R {
205 type Target = crate::FieldReader<bool, bool>;
206 #[inline(always)]
207 fn deref(&self) -> &Self::Target {
208 &self.0
209 }
210}
211#[doc = "Field `PID20` reader - Peripheral 20 SleepWalking Status"]
212pub struct PID20_R(crate::FieldReader<bool, bool>);
213impl PID20_R {
214 #[inline(always)]
215 pub(crate) fn new(bits: bool) -> Self {
216 PID20_R(crate::FieldReader::new(bits))
217 }
218}
219impl core::ops::Deref for PID20_R {
220 type Target = crate::FieldReader<bool, bool>;
221 #[inline(always)]
222 fn deref(&self) -> &Self::Target {
223 &self.0
224 }
225}
226#[doc = "Field `PID21` reader - Peripheral 21 SleepWalking Status"]
227pub struct PID21_R(crate::FieldReader<bool, bool>);
228impl PID21_R {
229 #[inline(always)]
230 pub(crate) fn new(bits: bool) -> Self {
231 PID21_R(crate::FieldReader::new(bits))
232 }
233}
234impl core::ops::Deref for PID21_R {
235 type Target = crate::FieldReader<bool, bool>;
236 #[inline(always)]
237 fn deref(&self) -> &Self::Target {
238 &self.0
239 }
240}
241#[doc = "Field `PID22` reader - Peripheral 22 SleepWalking Status"]
242pub struct PID22_R(crate::FieldReader<bool, bool>);
243impl PID22_R {
244 #[inline(always)]
245 pub(crate) fn new(bits: bool) -> Self {
246 PID22_R(crate::FieldReader::new(bits))
247 }
248}
249impl core::ops::Deref for PID22_R {
250 type Target = crate::FieldReader<bool, bool>;
251 #[inline(always)]
252 fn deref(&self) -> &Self::Target {
253 &self.0
254 }
255}
256#[doc = "Field `PID23` reader - Peripheral 23 SleepWalking Status"]
257pub struct PID23_R(crate::FieldReader<bool, bool>);
258impl PID23_R {
259 #[inline(always)]
260 pub(crate) fn new(bits: bool) -> Self {
261 PID23_R(crate::FieldReader::new(bits))
262 }
263}
264impl core::ops::Deref for PID23_R {
265 type Target = crate::FieldReader<bool, bool>;
266 #[inline(always)]
267 fn deref(&self) -> &Self::Target {
268 &self.0
269 }
270}
271#[doc = "Field `PID24` reader - Peripheral 24 SleepWalking Status"]
272pub struct PID24_R(crate::FieldReader<bool, bool>);
273impl PID24_R {
274 #[inline(always)]
275 pub(crate) fn new(bits: bool) -> Self {
276 PID24_R(crate::FieldReader::new(bits))
277 }
278}
279impl core::ops::Deref for PID24_R {
280 type Target = crate::FieldReader<bool, bool>;
281 #[inline(always)]
282 fn deref(&self) -> &Self::Target {
283 &self.0
284 }
285}
286#[doc = "Field `PID25` reader - Peripheral 25 SleepWalking Status"]
287pub struct PID25_R(crate::FieldReader<bool, bool>);
288impl PID25_R {
289 #[inline(always)]
290 pub(crate) fn new(bits: bool) -> Self {
291 PID25_R(crate::FieldReader::new(bits))
292 }
293}
294impl core::ops::Deref for PID25_R {
295 type Target = crate::FieldReader<bool, bool>;
296 #[inline(always)]
297 fn deref(&self) -> &Self::Target {
298 &self.0
299 }
300}
301#[doc = "Field `PID26` reader - Peripheral 26 SleepWalking Status"]
302pub struct PID26_R(crate::FieldReader<bool, bool>);
303impl PID26_R {
304 #[inline(always)]
305 pub(crate) fn new(bits: bool) -> Self {
306 PID26_R(crate::FieldReader::new(bits))
307 }
308}
309impl core::ops::Deref for PID26_R {
310 type Target = crate::FieldReader<bool, bool>;
311 #[inline(always)]
312 fn deref(&self) -> &Self::Target {
313 &self.0
314 }
315}
316#[doc = "Field `PID27` reader - Peripheral 27 SleepWalking Status"]
317pub struct PID27_R(crate::FieldReader<bool, bool>);
318impl PID27_R {
319 #[inline(always)]
320 pub(crate) fn new(bits: bool) -> Self {
321 PID27_R(crate::FieldReader::new(bits))
322 }
323}
324impl core::ops::Deref for PID27_R {
325 type Target = crate::FieldReader<bool, bool>;
326 #[inline(always)]
327 fn deref(&self) -> &Self::Target {
328 &self.0
329 }
330}
331#[doc = "Field `PID28` reader - Peripheral 28 SleepWalking Status"]
332pub struct PID28_R(crate::FieldReader<bool, bool>);
333impl PID28_R {
334 #[inline(always)]
335 pub(crate) fn new(bits: bool) -> Self {
336 PID28_R(crate::FieldReader::new(bits))
337 }
338}
339impl core::ops::Deref for PID28_R {
340 type Target = crate::FieldReader<bool, bool>;
341 #[inline(always)]
342 fn deref(&self) -> &Self::Target {
343 &self.0
344 }
345}
346#[doc = "Field `PID29` reader - Peripheral 29 SleepWalking Status"]
347pub struct PID29_R(crate::FieldReader<bool, bool>);
348impl PID29_R {
349 #[inline(always)]
350 pub(crate) fn new(bits: bool) -> Self {
351 PID29_R(crate::FieldReader::new(bits))
352 }
353}
354impl core::ops::Deref for PID29_R {
355 type Target = crate::FieldReader<bool, bool>;
356 #[inline(always)]
357 fn deref(&self) -> &Self::Target {
358 &self.0
359 }
360}
361#[doc = "Field `PID30` reader - Peripheral 30 SleepWalking Status"]
362pub struct PID30_R(crate::FieldReader<bool, bool>);
363impl PID30_R {
364 #[inline(always)]
365 pub(crate) fn new(bits: bool) -> Self {
366 PID30_R(crate::FieldReader::new(bits))
367 }
368}
369impl core::ops::Deref for PID30_R {
370 type Target = crate::FieldReader<bool, bool>;
371 #[inline(always)]
372 fn deref(&self) -> &Self::Target {
373 &self.0
374 }
375}
376#[doc = "Field `PID31` reader - Peripheral 31 SleepWalking Status"]
377pub struct PID31_R(crate::FieldReader<bool, bool>);
378impl PID31_R {
379 #[inline(always)]
380 pub(crate) fn new(bits: bool) -> Self {
381 PID31_R(crate::FieldReader::new(bits))
382 }
383}
384impl core::ops::Deref for PID31_R {
385 type Target = crate::FieldReader<bool, bool>;
386 #[inline(always)]
387 fn deref(&self) -> &Self::Target {
388 &self.0
389 }
390}
391impl R {
392 #[doc = "Bit 7 - Peripheral 7 SleepWalking Status"]
393 #[inline(always)]
394 pub fn pid7(&self) -> PID7_R {
395 PID7_R::new(((self.bits >> 7) & 0x01) != 0)
396 }
397 #[doc = "Bit 8 - Peripheral 8 SleepWalking Status"]
398 #[inline(always)]
399 pub fn pid8(&self) -> PID8_R {
400 PID8_R::new(((self.bits >> 8) & 0x01) != 0)
401 }
402 #[doc = "Bit 9 - Peripheral 9 SleepWalking Status"]
403 #[inline(always)]
404 pub fn pid9(&self) -> PID9_R {
405 PID9_R::new(((self.bits >> 9) & 0x01) != 0)
406 }
407 #[doc = "Bit 10 - Peripheral 10 SleepWalking Status"]
408 #[inline(always)]
409 pub fn pid10(&self) -> PID10_R {
410 PID10_R::new(((self.bits >> 10) & 0x01) != 0)
411 }
412 #[doc = "Bit 11 - Peripheral 11 SleepWalking Status"]
413 #[inline(always)]
414 pub fn pid11(&self) -> PID11_R {
415 PID11_R::new(((self.bits >> 11) & 0x01) != 0)
416 }
417 #[doc = "Bit 12 - Peripheral 12 SleepWalking Status"]
418 #[inline(always)]
419 pub fn pid12(&self) -> PID12_R {
420 PID12_R::new(((self.bits >> 12) & 0x01) != 0)
421 }
422 #[doc = "Bit 13 - Peripheral 13 SleepWalking Status"]
423 #[inline(always)]
424 pub fn pid13(&self) -> PID13_R {
425 PID13_R::new(((self.bits >> 13) & 0x01) != 0)
426 }
427 #[doc = "Bit 14 - Peripheral 14 SleepWalking Status"]
428 #[inline(always)]
429 pub fn pid14(&self) -> PID14_R {
430 PID14_R::new(((self.bits >> 14) & 0x01) != 0)
431 }
432 #[doc = "Bit 15 - Peripheral 15 SleepWalking Status"]
433 #[inline(always)]
434 pub fn pid15(&self) -> PID15_R {
435 PID15_R::new(((self.bits >> 15) & 0x01) != 0)
436 }
437 #[doc = "Bit 16 - Peripheral 16 SleepWalking Status"]
438 #[inline(always)]
439 pub fn pid16(&self) -> PID16_R {
440 PID16_R::new(((self.bits >> 16) & 0x01) != 0)
441 }
442 #[doc = "Bit 17 - Peripheral 17 SleepWalking Status"]
443 #[inline(always)]
444 pub fn pid17(&self) -> PID17_R {
445 PID17_R::new(((self.bits >> 17) & 0x01) != 0)
446 }
447 #[doc = "Bit 18 - Peripheral 18 SleepWalking Status"]
448 #[inline(always)]
449 pub fn pid18(&self) -> PID18_R {
450 PID18_R::new(((self.bits >> 18) & 0x01) != 0)
451 }
452 #[doc = "Bit 19 - Peripheral 19 SleepWalking Status"]
453 #[inline(always)]
454 pub fn pid19(&self) -> PID19_R {
455 PID19_R::new(((self.bits >> 19) & 0x01) != 0)
456 }
457 #[doc = "Bit 20 - Peripheral 20 SleepWalking Status"]
458 #[inline(always)]
459 pub fn pid20(&self) -> PID20_R {
460 PID20_R::new(((self.bits >> 20) & 0x01) != 0)
461 }
462 #[doc = "Bit 21 - Peripheral 21 SleepWalking Status"]
463 #[inline(always)]
464 pub fn pid21(&self) -> PID21_R {
465 PID21_R::new(((self.bits >> 21) & 0x01) != 0)
466 }
467 #[doc = "Bit 22 - Peripheral 22 SleepWalking Status"]
468 #[inline(always)]
469 pub fn pid22(&self) -> PID22_R {
470 PID22_R::new(((self.bits >> 22) & 0x01) != 0)
471 }
472 #[doc = "Bit 23 - Peripheral 23 SleepWalking Status"]
473 #[inline(always)]
474 pub fn pid23(&self) -> PID23_R {
475 PID23_R::new(((self.bits >> 23) & 0x01) != 0)
476 }
477 #[doc = "Bit 24 - Peripheral 24 SleepWalking Status"]
478 #[inline(always)]
479 pub fn pid24(&self) -> PID24_R {
480 PID24_R::new(((self.bits >> 24) & 0x01) != 0)
481 }
482 #[doc = "Bit 25 - Peripheral 25 SleepWalking Status"]
483 #[inline(always)]
484 pub fn pid25(&self) -> PID25_R {
485 PID25_R::new(((self.bits >> 25) & 0x01) != 0)
486 }
487 #[doc = "Bit 26 - Peripheral 26 SleepWalking Status"]
488 #[inline(always)]
489 pub fn pid26(&self) -> PID26_R {
490 PID26_R::new(((self.bits >> 26) & 0x01) != 0)
491 }
492 #[doc = "Bit 27 - Peripheral 27 SleepWalking Status"]
493 #[inline(always)]
494 pub fn pid27(&self) -> PID27_R {
495 PID27_R::new(((self.bits >> 27) & 0x01) != 0)
496 }
497 #[doc = "Bit 28 - Peripheral 28 SleepWalking Status"]
498 #[inline(always)]
499 pub fn pid28(&self) -> PID28_R {
500 PID28_R::new(((self.bits >> 28) & 0x01) != 0)
501 }
502 #[doc = "Bit 29 - Peripheral 29 SleepWalking Status"]
503 #[inline(always)]
504 pub fn pid29(&self) -> PID29_R {
505 PID29_R::new(((self.bits >> 29) & 0x01) != 0)
506 }
507 #[doc = "Bit 30 - Peripheral 30 SleepWalking Status"]
508 #[inline(always)]
509 pub fn pid30(&self) -> PID30_R {
510 PID30_R::new(((self.bits >> 30) & 0x01) != 0)
511 }
512 #[doc = "Bit 31 - Peripheral 31 SleepWalking Status"]
513 #[inline(always)]
514 pub fn pid31(&self) -> PID31_R {
515 PID31_R::new(((self.bits >> 31) & 0x01) != 0)
516 }
517}
518#[doc = "SleepWalking Status Register 0\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 [pmc_slpwk_sr0](index.html) module"]
519pub struct PMC_SLPWK_SR0_SPEC;
520impl crate::RegisterSpec for PMC_SLPWK_SR0_SPEC {
521 type Ux = u32;
522}
523#[doc = "`read()` method returns [pmc_slpwk_sr0::R](R) reader structure"]
524impl crate::Readable for PMC_SLPWK_SR0_SPEC {
525 type Reader = R;
526}
527#[doc = "`reset()` method sets PMC_SLPWK_SR0 to value 0"]
528impl crate::Resettable for PMC_SLPWK_SR0_SPEC {
529 #[inline(always)]
530 fn reset_value() -> Self::Ux {
531 0
532 }
533}