bl702_pac/pds/
pu_rst_clkpll.rs

1#[doc = "Register `pu_rst_clkpll` reader"]
2pub struct R(crate::R<PU_RST_CLKPLL_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PU_RST_CLKPLL_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PU_RST_CLKPLL_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PU_RST_CLKPLL_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `pu_rst_clkpll` writer"]
17pub struct W(crate::W<PU_RST_CLKPLL_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PU_RST_CLKPLL_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<PU_RST_CLKPLL_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PU_RST_CLKPLL_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `clkpll_sdm_reset` reader - "]
38pub type CLKPLL_SDM_RESET_R = crate::BitReader<bool>;
39#[doc = "Field `clkpll_sdm_reset` writer - "]
40pub type CLKPLL_SDM_RESET_W<'a, const O: u8> =
41    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
42#[doc = "Field `clkpll_reset_postdiv` reader - "]
43pub type CLKPLL_RESET_POSTDIV_R = crate::BitReader<bool>;
44#[doc = "Field `clkpll_reset_postdiv` writer - "]
45pub type CLKPLL_RESET_POSTDIV_W<'a, const O: u8> =
46    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
47#[doc = "Field `clkpll_reset_fbdv` reader - "]
48pub type CLKPLL_RESET_FBDV_R = crate::BitReader<bool>;
49#[doc = "Field `clkpll_reset_fbdv` writer - "]
50pub type CLKPLL_RESET_FBDV_W<'a, const O: u8> =
51    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
52#[doc = "Field `clkpll_reset_refdiv` reader - "]
53pub type CLKPLL_RESET_REFDIV_R = crate::BitReader<bool>;
54#[doc = "Field `clkpll_reset_refdiv` writer - "]
55pub type CLKPLL_RESET_REFDIV_W<'a, const O: u8> =
56    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
57#[doc = "Field `clkpll_pu_postdiv` reader - "]
58pub type CLKPLL_PU_POSTDIV_R = crate::BitReader<bool>;
59#[doc = "Field `clkpll_pu_postdiv` writer - "]
60pub type CLKPLL_PU_POSTDIV_W<'a, const O: u8> =
61    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
62#[doc = "Field `clkpll_pu_fbdv` reader - "]
63pub type CLKPLL_PU_FBDV_R = crate::BitReader<bool>;
64#[doc = "Field `clkpll_pu_fbdv` writer - "]
65pub type CLKPLL_PU_FBDV_W<'a, const O: u8> = crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
66#[doc = "Field `clkpll_pu_clamp_op` reader - "]
67pub type CLKPLL_PU_CLAMP_OP_R = crate::BitReader<bool>;
68#[doc = "Field `clkpll_pu_clamp_op` writer - "]
69pub type CLKPLL_PU_CLAMP_OP_W<'a, const O: u8> =
70    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
71#[doc = "Field `clkpll_pu_pfd` reader - "]
72pub type CLKPLL_PU_PFD_R = crate::BitReader<bool>;
73#[doc = "Field `clkpll_pu_pfd` writer - "]
74pub type CLKPLL_PU_PFD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
75#[doc = "Field `clkpll_pu_cp` reader - "]
76pub type CLKPLL_PU_CP_R = crate::BitReader<bool>;
77#[doc = "Field `clkpll_pu_cp` writer - "]
78pub type CLKPLL_PU_CP_W<'a, const O: u8> = crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
79#[doc = "Field `pu_clkpll_sfreg` reader - "]
80pub type PU_CLKPLL_SFREG_R = crate::BitReader<bool>;
81#[doc = "Field `pu_clkpll_sfreg` writer - "]
82pub type PU_CLKPLL_SFREG_W<'a, const O: u8> =
83    crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
84#[doc = "Field `pu_clkpll` reader - "]
85pub type PU_CLKPLL_R = crate::BitReader<bool>;
86#[doc = "Field `pu_clkpll` writer - "]
87pub type PU_CLKPLL_W<'a, const O: u8> = crate::BitWriter<'a, u32, PU_RST_CLKPLL_SPEC, bool, O>;
88impl R {
89    #[doc = "Bit 0"]
90    #[inline(always)]
91    pub fn clkpll_sdm_reset(&self) -> CLKPLL_SDM_RESET_R {
92        CLKPLL_SDM_RESET_R::new((self.bits & 1) != 0)
93    }
94    #[doc = "Bit 1"]
95    #[inline(always)]
96    pub fn clkpll_reset_postdiv(&self) -> CLKPLL_RESET_POSTDIV_R {
97        CLKPLL_RESET_POSTDIV_R::new(((self.bits >> 1) & 1) != 0)
98    }
99    #[doc = "Bit 2"]
100    #[inline(always)]
101    pub fn clkpll_reset_fbdv(&self) -> CLKPLL_RESET_FBDV_R {
102        CLKPLL_RESET_FBDV_R::new(((self.bits >> 2) & 1) != 0)
103    }
104    #[doc = "Bit 3"]
105    #[inline(always)]
106    pub fn clkpll_reset_refdiv(&self) -> CLKPLL_RESET_REFDIV_R {
107        CLKPLL_RESET_REFDIV_R::new(((self.bits >> 3) & 1) != 0)
108    }
109    #[doc = "Bit 4"]
110    #[inline(always)]
111    pub fn clkpll_pu_postdiv(&self) -> CLKPLL_PU_POSTDIV_R {
112        CLKPLL_PU_POSTDIV_R::new(((self.bits >> 4) & 1) != 0)
113    }
114    #[doc = "Bit 5"]
115    #[inline(always)]
116    pub fn clkpll_pu_fbdv(&self) -> CLKPLL_PU_FBDV_R {
117        CLKPLL_PU_FBDV_R::new(((self.bits >> 5) & 1) != 0)
118    }
119    #[doc = "Bit 6"]
120    #[inline(always)]
121    pub fn clkpll_pu_clamp_op(&self) -> CLKPLL_PU_CLAMP_OP_R {
122        CLKPLL_PU_CLAMP_OP_R::new(((self.bits >> 6) & 1) != 0)
123    }
124    #[doc = "Bit 7"]
125    #[inline(always)]
126    pub fn clkpll_pu_pfd(&self) -> CLKPLL_PU_PFD_R {
127        CLKPLL_PU_PFD_R::new(((self.bits >> 7) & 1) != 0)
128    }
129    #[doc = "Bit 8"]
130    #[inline(always)]
131    pub fn clkpll_pu_cp(&self) -> CLKPLL_PU_CP_R {
132        CLKPLL_PU_CP_R::new(((self.bits >> 8) & 1) != 0)
133    }
134    #[doc = "Bit 9"]
135    #[inline(always)]
136    pub fn pu_clkpll_sfreg(&self) -> PU_CLKPLL_SFREG_R {
137        PU_CLKPLL_SFREG_R::new(((self.bits >> 9) & 1) != 0)
138    }
139    #[doc = "Bit 10"]
140    #[inline(always)]
141    pub fn pu_clkpll(&self) -> PU_CLKPLL_R {
142        PU_CLKPLL_R::new(((self.bits >> 10) & 1) != 0)
143    }
144}
145impl W {
146    #[doc = "Bit 0"]
147    #[inline(always)]
148    #[must_use]
149    pub fn clkpll_sdm_reset(&mut self) -> CLKPLL_SDM_RESET_W<0> {
150        CLKPLL_SDM_RESET_W::new(self)
151    }
152    #[doc = "Bit 1"]
153    #[inline(always)]
154    #[must_use]
155    pub fn clkpll_reset_postdiv(&mut self) -> CLKPLL_RESET_POSTDIV_W<1> {
156        CLKPLL_RESET_POSTDIV_W::new(self)
157    }
158    #[doc = "Bit 2"]
159    #[inline(always)]
160    #[must_use]
161    pub fn clkpll_reset_fbdv(&mut self) -> CLKPLL_RESET_FBDV_W<2> {
162        CLKPLL_RESET_FBDV_W::new(self)
163    }
164    #[doc = "Bit 3"]
165    #[inline(always)]
166    #[must_use]
167    pub fn clkpll_reset_refdiv(&mut self) -> CLKPLL_RESET_REFDIV_W<3> {
168        CLKPLL_RESET_REFDIV_W::new(self)
169    }
170    #[doc = "Bit 4"]
171    #[inline(always)]
172    #[must_use]
173    pub fn clkpll_pu_postdiv(&mut self) -> CLKPLL_PU_POSTDIV_W<4> {
174        CLKPLL_PU_POSTDIV_W::new(self)
175    }
176    #[doc = "Bit 5"]
177    #[inline(always)]
178    #[must_use]
179    pub fn clkpll_pu_fbdv(&mut self) -> CLKPLL_PU_FBDV_W<5> {
180        CLKPLL_PU_FBDV_W::new(self)
181    }
182    #[doc = "Bit 6"]
183    #[inline(always)]
184    #[must_use]
185    pub fn clkpll_pu_clamp_op(&mut self) -> CLKPLL_PU_CLAMP_OP_W<6> {
186        CLKPLL_PU_CLAMP_OP_W::new(self)
187    }
188    #[doc = "Bit 7"]
189    #[inline(always)]
190    #[must_use]
191    pub fn clkpll_pu_pfd(&mut self) -> CLKPLL_PU_PFD_W<7> {
192        CLKPLL_PU_PFD_W::new(self)
193    }
194    #[doc = "Bit 8"]
195    #[inline(always)]
196    #[must_use]
197    pub fn clkpll_pu_cp(&mut self) -> CLKPLL_PU_CP_W<8> {
198        CLKPLL_PU_CP_W::new(self)
199    }
200    #[doc = "Bit 9"]
201    #[inline(always)]
202    #[must_use]
203    pub fn pu_clkpll_sfreg(&mut self) -> PU_CLKPLL_SFREG_W<9> {
204        PU_CLKPLL_SFREG_W::new(self)
205    }
206    #[doc = "Bit 10"]
207    #[inline(always)]
208    #[must_use]
209    pub fn pu_clkpll(&mut self) -> PU_CLKPLL_W<10> {
210        PU_CLKPLL_W::new(self)
211    }
212    #[doc = "Writes raw bits to the register."]
213    #[inline(always)]
214    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
215        self.0.bits(bits);
216        self
217    }
218}
219#[doc = "pu_rst_clkpll.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pu_rst_clkpll](index.html) module"]
220pub struct PU_RST_CLKPLL_SPEC;
221impl crate::RegisterSpec for PU_RST_CLKPLL_SPEC {
222    type Ux = u32;
223}
224#[doc = "`read()` method returns [pu_rst_clkpll::R](R) reader structure"]
225impl crate::Readable for PU_RST_CLKPLL_SPEC {
226    type Reader = R;
227}
228#[doc = "`write(|w| ..)` method takes [pu_rst_clkpll::W](W) writer structure"]
229impl crate::Writable for PU_RST_CLKPLL_SPEC {
230    type Writer = W;
231    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
232    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
233}
234#[doc = "`reset()` method sets pu_rst_clkpll to value 0"]
235impl crate::Resettable for PU_RST_CLKPLL_SPEC {
236    const RESET_VALUE: Self::Ux = 0;
237}