atsams70n21/pmc/
pmc_pcsr1.rs1#[doc = "Register `PMC_PCSR1` reader"]
2pub struct R(crate::R<PMC_PCSR1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PMC_PCSR1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PMC_PCSR1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PMC_PCSR1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `PID32` reader - Peripheral Clock 32 Status"]
17pub struct PID32_R(crate::FieldReader<bool, bool>);
18impl PID32_R {
19 #[inline(always)]
20 pub(crate) fn new(bits: bool) -> Self {
21 PID32_R(crate::FieldReader::new(bits))
22 }
23}
24impl core::ops::Deref for PID32_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 `PID33` reader - Peripheral Clock 33 Status"]
32pub struct PID33_R(crate::FieldReader<bool, bool>);
33impl PID33_R {
34 #[inline(always)]
35 pub(crate) fn new(bits: bool) -> Self {
36 PID33_R(crate::FieldReader::new(bits))
37 }
38}
39impl core::ops::Deref for PID33_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 `PID34` reader - Peripheral Clock 34 Status"]
47pub struct PID34_R(crate::FieldReader<bool, bool>);
48impl PID34_R {
49 #[inline(always)]
50 pub(crate) fn new(bits: bool) -> Self {
51 PID34_R(crate::FieldReader::new(bits))
52 }
53}
54impl core::ops::Deref for PID34_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 `PID35` reader - Peripheral Clock 35 Status"]
62pub struct PID35_R(crate::FieldReader<bool, bool>);
63impl PID35_R {
64 #[inline(always)]
65 pub(crate) fn new(bits: bool) -> Self {
66 PID35_R(crate::FieldReader::new(bits))
67 }
68}
69impl core::ops::Deref for PID35_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 `PID37` reader - Peripheral Clock 37 Status"]
77pub struct PID37_R(crate::FieldReader<bool, bool>);
78impl PID37_R {
79 #[inline(always)]
80 pub(crate) fn new(bits: bool) -> Self {
81 PID37_R(crate::FieldReader::new(bits))
82 }
83}
84impl core::ops::Deref for PID37_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 `PID39` reader - Peripheral Clock 39 Status"]
92pub struct PID39_R(crate::FieldReader<bool, bool>);
93impl PID39_R {
94 #[inline(always)]
95 pub(crate) fn new(bits: bool) -> Self {
96 PID39_R(crate::FieldReader::new(bits))
97 }
98}
99impl core::ops::Deref for PID39_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 `PID40` reader - Peripheral Clock 40 Status"]
107pub struct PID40_R(crate::FieldReader<bool, bool>);
108impl PID40_R {
109 #[inline(always)]
110 pub(crate) fn new(bits: bool) -> Self {
111 PID40_R(crate::FieldReader::new(bits))
112 }
113}
114impl core::ops::Deref for PID40_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 `PID41` reader - Peripheral Clock 41 Status"]
122pub struct PID41_R(crate::FieldReader<bool, bool>);
123impl PID41_R {
124 #[inline(always)]
125 pub(crate) fn new(bits: bool) -> Self {
126 PID41_R(crate::FieldReader::new(bits))
127 }
128}
129impl core::ops::Deref for PID41_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 `PID42` reader - Peripheral Clock 42 Status"]
137pub struct PID42_R(crate::FieldReader<bool, bool>);
138impl PID42_R {
139 #[inline(always)]
140 pub(crate) fn new(bits: bool) -> Self {
141 PID42_R(crate::FieldReader::new(bits))
142 }
143}
144impl core::ops::Deref for PID42_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 `PID43` reader - Peripheral Clock 43 Status"]
152pub struct PID43_R(crate::FieldReader<bool, bool>);
153impl PID43_R {
154 #[inline(always)]
155 pub(crate) fn new(bits: bool) -> Self {
156 PID43_R(crate::FieldReader::new(bits))
157 }
158}
159impl core::ops::Deref for PID43_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 `PID44` reader - Peripheral Clock 44 Status"]
167pub struct PID44_R(crate::FieldReader<bool, bool>);
168impl PID44_R {
169 #[inline(always)]
170 pub(crate) fn new(bits: bool) -> Self {
171 PID44_R(crate::FieldReader::new(bits))
172 }
173}
174impl core::ops::Deref for PID44_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 `PID45` reader - Peripheral Clock 45 Status"]
182pub struct PID45_R(crate::FieldReader<bool, bool>);
183impl PID45_R {
184 #[inline(always)]
185 pub(crate) fn new(bits: bool) -> Self {
186 PID45_R(crate::FieldReader::new(bits))
187 }
188}
189impl core::ops::Deref for PID45_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 `PID46` reader - Peripheral Clock 46 Status"]
197pub struct PID46_R(crate::FieldReader<bool, bool>);
198impl PID46_R {
199 #[inline(always)]
200 pub(crate) fn new(bits: bool) -> Self {
201 PID46_R(crate::FieldReader::new(bits))
202 }
203}
204impl core::ops::Deref for PID46_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 `PID47` reader - Peripheral Clock 47 Status"]
212pub struct PID47_R(crate::FieldReader<bool, bool>);
213impl PID47_R {
214 #[inline(always)]
215 pub(crate) fn new(bits: bool) -> Self {
216 PID47_R(crate::FieldReader::new(bits))
217 }
218}
219impl core::ops::Deref for PID47_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 `PID48` reader - Peripheral Clock 48 Status"]
227pub struct PID48_R(crate::FieldReader<bool, bool>);
228impl PID48_R {
229 #[inline(always)]
230 pub(crate) fn new(bits: bool) -> Self {
231 PID48_R(crate::FieldReader::new(bits))
232 }
233}
234impl core::ops::Deref for PID48_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 `PID49` reader - Peripheral Clock 49 Status"]
242pub struct PID49_R(crate::FieldReader<bool, bool>);
243impl PID49_R {
244 #[inline(always)]
245 pub(crate) fn new(bits: bool) -> Self {
246 PID49_R(crate::FieldReader::new(bits))
247 }
248}
249impl core::ops::Deref for PID49_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 `PID50` reader - Peripheral Clock 50 Status"]
257pub struct PID50_R(crate::FieldReader<bool, bool>);
258impl PID50_R {
259 #[inline(always)]
260 pub(crate) fn new(bits: bool) -> Self {
261 PID50_R(crate::FieldReader::new(bits))
262 }
263}
264impl core::ops::Deref for PID50_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 `PID51` reader - Peripheral Clock 51 Status"]
272pub struct PID51_R(crate::FieldReader<bool, bool>);
273impl PID51_R {
274 #[inline(always)]
275 pub(crate) fn new(bits: bool) -> Self {
276 PID51_R(crate::FieldReader::new(bits))
277 }
278}
279impl core::ops::Deref for PID51_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 `PID52` reader - Peripheral Clock 52 Status"]
287pub struct PID52_R(crate::FieldReader<bool, bool>);
288impl PID52_R {
289 #[inline(always)]
290 pub(crate) fn new(bits: bool) -> Self {
291 PID52_R(crate::FieldReader::new(bits))
292 }
293}
294impl core::ops::Deref for PID52_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 `PID53` reader - Peripheral Clock 53 Status"]
302pub struct PID53_R(crate::FieldReader<bool, bool>);
303impl PID53_R {
304 #[inline(always)]
305 pub(crate) fn new(bits: bool) -> Self {
306 PID53_R(crate::FieldReader::new(bits))
307 }
308}
309impl core::ops::Deref for PID53_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 `PID56` reader - Peripheral Clock 56 Status"]
317pub struct PID56_R(crate::FieldReader<bool, bool>);
318impl PID56_R {
319 #[inline(always)]
320 pub(crate) fn new(bits: bool) -> Self {
321 PID56_R(crate::FieldReader::new(bits))
322 }
323}
324impl core::ops::Deref for PID56_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 `PID57` reader - Peripheral Clock 57 Status"]
332pub struct PID57_R(crate::FieldReader<bool, bool>);
333impl PID57_R {
334 #[inline(always)]
335 pub(crate) fn new(bits: bool) -> Self {
336 PID57_R(crate::FieldReader::new(bits))
337 }
338}
339impl core::ops::Deref for PID57_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 `PID58` reader - Peripheral Clock 58 Status"]
347pub struct PID58_R(crate::FieldReader<bool, bool>);
348impl PID58_R {
349 #[inline(always)]
350 pub(crate) fn new(bits: bool) -> Self {
351 PID58_R(crate::FieldReader::new(bits))
352 }
353}
354impl core::ops::Deref for PID58_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 `PID59` reader - Peripheral Clock 59 Status"]
362pub struct PID59_R(crate::FieldReader<bool, bool>);
363impl PID59_R {
364 #[inline(always)]
365 pub(crate) fn new(bits: bool) -> Self {
366 PID59_R(crate::FieldReader::new(bits))
367 }
368}
369impl core::ops::Deref for PID59_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 `PID60` reader - Peripheral Clock 60 Status"]
377pub struct PID60_R(crate::FieldReader<bool, bool>);
378impl PID60_R {
379 #[inline(always)]
380 pub(crate) fn new(bits: bool) -> Self {
381 PID60_R(crate::FieldReader::new(bits))
382 }
383}
384impl core::ops::Deref for PID60_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 0 - Peripheral Clock 32 Status"]
393 #[inline(always)]
394 pub fn pid32(&self) -> PID32_R {
395 PID32_R::new((self.bits & 0x01) != 0)
396 }
397 #[doc = "Bit 1 - Peripheral Clock 33 Status"]
398 #[inline(always)]
399 pub fn pid33(&self) -> PID33_R {
400 PID33_R::new(((self.bits >> 1) & 0x01) != 0)
401 }
402 #[doc = "Bit 2 - Peripheral Clock 34 Status"]
403 #[inline(always)]
404 pub fn pid34(&self) -> PID34_R {
405 PID34_R::new(((self.bits >> 2) & 0x01) != 0)
406 }
407 #[doc = "Bit 3 - Peripheral Clock 35 Status"]
408 #[inline(always)]
409 pub fn pid35(&self) -> PID35_R {
410 PID35_R::new(((self.bits >> 3) & 0x01) != 0)
411 }
412 #[doc = "Bit 5 - Peripheral Clock 37 Status"]
413 #[inline(always)]
414 pub fn pid37(&self) -> PID37_R {
415 PID37_R::new(((self.bits >> 5) & 0x01) != 0)
416 }
417 #[doc = "Bit 7 - Peripheral Clock 39 Status"]
418 #[inline(always)]
419 pub fn pid39(&self) -> PID39_R {
420 PID39_R::new(((self.bits >> 7) & 0x01) != 0)
421 }
422 #[doc = "Bit 8 - Peripheral Clock 40 Status"]
423 #[inline(always)]
424 pub fn pid40(&self) -> PID40_R {
425 PID40_R::new(((self.bits >> 8) & 0x01) != 0)
426 }
427 #[doc = "Bit 9 - Peripheral Clock 41 Status"]
428 #[inline(always)]
429 pub fn pid41(&self) -> PID41_R {
430 PID41_R::new(((self.bits >> 9) & 0x01) != 0)
431 }
432 #[doc = "Bit 10 - Peripheral Clock 42 Status"]
433 #[inline(always)]
434 pub fn pid42(&self) -> PID42_R {
435 PID42_R::new(((self.bits >> 10) & 0x01) != 0)
436 }
437 #[doc = "Bit 11 - Peripheral Clock 43 Status"]
438 #[inline(always)]
439 pub fn pid43(&self) -> PID43_R {
440 PID43_R::new(((self.bits >> 11) & 0x01) != 0)
441 }
442 #[doc = "Bit 12 - Peripheral Clock 44 Status"]
443 #[inline(always)]
444 pub fn pid44(&self) -> PID44_R {
445 PID44_R::new(((self.bits >> 12) & 0x01) != 0)
446 }
447 #[doc = "Bit 13 - Peripheral Clock 45 Status"]
448 #[inline(always)]
449 pub fn pid45(&self) -> PID45_R {
450 PID45_R::new(((self.bits >> 13) & 0x01) != 0)
451 }
452 #[doc = "Bit 14 - Peripheral Clock 46 Status"]
453 #[inline(always)]
454 pub fn pid46(&self) -> PID46_R {
455 PID46_R::new(((self.bits >> 14) & 0x01) != 0)
456 }
457 #[doc = "Bit 15 - Peripheral Clock 47 Status"]
458 #[inline(always)]
459 pub fn pid47(&self) -> PID47_R {
460 PID47_R::new(((self.bits >> 15) & 0x01) != 0)
461 }
462 #[doc = "Bit 16 - Peripheral Clock 48 Status"]
463 #[inline(always)]
464 pub fn pid48(&self) -> PID48_R {
465 PID48_R::new(((self.bits >> 16) & 0x01) != 0)
466 }
467 #[doc = "Bit 17 - Peripheral Clock 49 Status"]
468 #[inline(always)]
469 pub fn pid49(&self) -> PID49_R {
470 PID49_R::new(((self.bits >> 17) & 0x01) != 0)
471 }
472 #[doc = "Bit 18 - Peripheral Clock 50 Status"]
473 #[inline(always)]
474 pub fn pid50(&self) -> PID50_R {
475 PID50_R::new(((self.bits >> 18) & 0x01) != 0)
476 }
477 #[doc = "Bit 19 - Peripheral Clock 51 Status"]
478 #[inline(always)]
479 pub fn pid51(&self) -> PID51_R {
480 PID51_R::new(((self.bits >> 19) & 0x01) != 0)
481 }
482 #[doc = "Bit 20 - Peripheral Clock 52 Status"]
483 #[inline(always)]
484 pub fn pid52(&self) -> PID52_R {
485 PID52_R::new(((self.bits >> 20) & 0x01) != 0)
486 }
487 #[doc = "Bit 21 - Peripheral Clock 53 Status"]
488 #[inline(always)]
489 pub fn pid53(&self) -> PID53_R {
490 PID53_R::new(((self.bits >> 21) & 0x01) != 0)
491 }
492 #[doc = "Bit 24 - Peripheral Clock 56 Status"]
493 #[inline(always)]
494 pub fn pid56(&self) -> PID56_R {
495 PID56_R::new(((self.bits >> 24) & 0x01) != 0)
496 }
497 #[doc = "Bit 25 - Peripheral Clock 57 Status"]
498 #[inline(always)]
499 pub fn pid57(&self) -> PID57_R {
500 PID57_R::new(((self.bits >> 25) & 0x01) != 0)
501 }
502 #[doc = "Bit 26 - Peripheral Clock 58 Status"]
503 #[inline(always)]
504 pub fn pid58(&self) -> PID58_R {
505 PID58_R::new(((self.bits >> 26) & 0x01) != 0)
506 }
507 #[doc = "Bit 27 - Peripheral Clock 59 Status"]
508 #[inline(always)]
509 pub fn pid59(&self) -> PID59_R {
510 PID59_R::new(((self.bits >> 27) & 0x01) != 0)
511 }
512 #[doc = "Bit 28 - Peripheral Clock 60 Status"]
513 #[inline(always)]
514 pub fn pid60(&self) -> PID60_R {
515 PID60_R::new(((self.bits >> 28) & 0x01) != 0)
516 }
517}
518#[doc = "Peripheral Clock Status Register 1\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_pcsr1](index.html) module"]
519pub struct PMC_PCSR1_SPEC;
520impl crate::RegisterSpec for PMC_PCSR1_SPEC {
521 type Ux = u32;
522}
523#[doc = "`read()` method returns [pmc_pcsr1::R](R) reader structure"]
524impl crate::Readable for PMC_PCSR1_SPEC {
525 type Reader = R;
526}
527#[doc = "`reset()` method sets PMC_PCSR1 to value 0"]
528impl crate::Resettable for PMC_PCSR1_SPEC {
529 #[inline(always)]
530 fn reset_value() -> Self::Ux {
531 0
532 }
533}