rp2040_pac/psm/
done.rs
1#[doc = "Register `DONE` reader"]
2pub type R = crate::R<DONE_SPEC>;
3#[doc = "Field `rosc` reader - "]
4pub type ROSC_R = crate::BitReader;
5#[doc = "Field `xosc` reader - "]
6pub type XOSC_R = crate::BitReader;
7#[doc = "Field `clocks` reader - "]
8pub type CLOCKS_R = crate::BitReader;
9#[doc = "Field `resets` reader - "]
10pub type RESETS_R = crate::BitReader;
11#[doc = "Field `busfabric` reader - "]
12pub type BUSFABRIC_R = crate::BitReader;
13#[doc = "Field `rom` reader - "]
14pub type ROM_R = crate::BitReader;
15#[doc = "Field `sram0` reader - "]
16pub type SRAM0_R = crate::BitReader;
17#[doc = "Field `sram1` reader - "]
18pub type SRAM1_R = crate::BitReader;
19#[doc = "Field `sram2` reader - "]
20pub type SRAM2_R = crate::BitReader;
21#[doc = "Field `sram3` reader - "]
22pub type SRAM3_R = crate::BitReader;
23#[doc = "Field `sram4` reader - "]
24pub type SRAM4_R = crate::BitReader;
25#[doc = "Field `sram5` reader - "]
26pub type SRAM5_R = crate::BitReader;
27#[doc = "Field `xip` reader - "]
28pub type XIP_R = crate::BitReader;
29#[doc = "Field `vreg_and_chip_reset` reader - "]
30pub type VREG_AND_CHIP_RESET_R = crate::BitReader;
31#[doc = "Field `sio` reader - "]
32pub type SIO_R = crate::BitReader;
33#[doc = "Field `proc0` reader - "]
34pub type PROC0_R = crate::BitReader;
35#[doc = "Field `proc1` reader - "]
36pub type PROC1_R = crate::BitReader;
37impl R {
38 #[doc = "Bit 0"]
39 #[inline(always)]
40 pub fn rosc(&self) -> ROSC_R {
41 ROSC_R::new((self.bits & 1) != 0)
42 }
43 #[doc = "Bit 1"]
44 #[inline(always)]
45 pub fn xosc(&self) -> XOSC_R {
46 XOSC_R::new(((self.bits >> 1) & 1) != 0)
47 }
48 #[doc = "Bit 2"]
49 #[inline(always)]
50 pub fn clocks(&self) -> CLOCKS_R {
51 CLOCKS_R::new(((self.bits >> 2) & 1) != 0)
52 }
53 #[doc = "Bit 3"]
54 #[inline(always)]
55 pub fn resets(&self) -> RESETS_R {
56 RESETS_R::new(((self.bits >> 3) & 1) != 0)
57 }
58 #[doc = "Bit 4"]
59 #[inline(always)]
60 pub fn busfabric(&self) -> BUSFABRIC_R {
61 BUSFABRIC_R::new(((self.bits >> 4) & 1) != 0)
62 }
63 #[doc = "Bit 5"]
64 #[inline(always)]
65 pub fn rom(&self) -> ROM_R {
66 ROM_R::new(((self.bits >> 5) & 1) != 0)
67 }
68 #[doc = "Bit 6"]
69 #[inline(always)]
70 pub fn sram0(&self) -> SRAM0_R {
71 SRAM0_R::new(((self.bits >> 6) & 1) != 0)
72 }
73 #[doc = "Bit 7"]
74 #[inline(always)]
75 pub fn sram1(&self) -> SRAM1_R {
76 SRAM1_R::new(((self.bits >> 7) & 1) != 0)
77 }
78 #[doc = "Bit 8"]
79 #[inline(always)]
80 pub fn sram2(&self) -> SRAM2_R {
81 SRAM2_R::new(((self.bits >> 8) & 1) != 0)
82 }
83 #[doc = "Bit 9"]
84 #[inline(always)]
85 pub fn sram3(&self) -> SRAM3_R {
86 SRAM3_R::new(((self.bits >> 9) & 1) != 0)
87 }
88 #[doc = "Bit 10"]
89 #[inline(always)]
90 pub fn sram4(&self) -> SRAM4_R {
91 SRAM4_R::new(((self.bits >> 10) & 1) != 0)
92 }
93 #[doc = "Bit 11"]
94 #[inline(always)]
95 pub fn sram5(&self) -> SRAM5_R {
96 SRAM5_R::new(((self.bits >> 11) & 1) != 0)
97 }
98 #[doc = "Bit 12"]
99 #[inline(always)]
100 pub fn xip(&self) -> XIP_R {
101 XIP_R::new(((self.bits >> 12) & 1) != 0)
102 }
103 #[doc = "Bit 13"]
104 #[inline(always)]
105 pub fn vreg_and_chip_reset(&self) -> VREG_AND_CHIP_RESET_R {
106 VREG_AND_CHIP_RESET_R::new(((self.bits >> 13) & 1) != 0)
107 }
108 #[doc = "Bit 14"]
109 #[inline(always)]
110 pub fn sio(&self) -> SIO_R {
111 SIO_R::new(((self.bits >> 14) & 1) != 0)
112 }
113 #[doc = "Bit 15"]
114 #[inline(always)]
115 pub fn proc0(&self) -> PROC0_R {
116 PROC0_R::new(((self.bits >> 15) & 1) != 0)
117 }
118 #[doc = "Bit 16"]
119 #[inline(always)]
120 pub fn proc1(&self) -> PROC1_R {
121 PROC1_R::new(((self.bits >> 16) & 1) != 0)
122 }
123}
124#[doc = "Indicates the peripheral's registers are ready to access.
125
126You can [`read`](crate::generic::Reg::read) this register and get [`done::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
127pub struct DONE_SPEC;
128impl crate::RegisterSpec for DONE_SPEC {
129 type Ux = u32;
130}
131#[doc = "`read()` method returns [`done::R`](R) reader structure"]
132impl crate::Readable for DONE_SPEC {}
133#[doc = "`reset()` method sets DONE to value 0"]
134impl crate::Resettable for DONE_SPEC {
135 const RESET_VALUE: u32 = 0;
136}