1#[doc = "Register `dll` reader"]
2pub struct R(crate::R<DLL_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DLL_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DLL_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DLL_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `dll` writer"]
17pub struct W(crate::W<DLL_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<DLL_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<DLL_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<DLL_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `dtest_en_dll_refclk` reader - "]
38pub type DTEST_EN_DLL_REFCLK_R = crate::BitReader<bool>;
39#[doc = "Field `dtest_en_dll_refclk` writer - "]
40pub type DTEST_EN_DLL_REFCLK_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
41#[doc = "Field `dtest_en_dll_outclk` reader - "]
42pub type DTEST_EN_DLL_OUTCLK_R = crate::BitReader<bool>;
43#[doc = "Field `dtest_en_dll_outclk` writer - "]
44pub type DTEST_EN_DLL_OUTCLK_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
45#[doc = "Field `ten_dll` reader - "]
46pub type TEN_DLL_R = crate::BitReader<bool>;
47#[doc = "Field `ten_dll` writer - "]
48pub type TEN_DLL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
49#[doc = "Field `dll_clk_mmdiv_en` reader - "]
50pub type DLL_CLK_MMDIV_EN_R = crate::BitReader<bool>;
51#[doc = "Field `dll_clk_mmdiv_en` writer - "]
52pub type DLL_CLK_MMDIV_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
53#[doc = "Field `dll_clk_288M_en` reader - "]
54pub type DLL_CLK_288M_EN_R = crate::BitReader<bool>;
55#[doc = "Field `dll_clk_288M_en` writer - "]
56pub type DLL_CLK_288M_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
57#[doc = "Field `dll_clk_144M_en` reader - "]
58pub type DLL_CLK_144M_EN_R = crate::BitReader<bool>;
59#[doc = "Field `dll_clk_144M_en` writer - "]
60pub type DLL_CLK_144M_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
61#[doc = "Field `dll_clk_96M_en` reader - "]
62pub type DLL_CLK_96M_EN_R = crate::BitReader<bool>;
63#[doc = "Field `dll_clk_96M_en` writer - "]
64pub type DLL_CLK_96M_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
65#[doc = "Field `dll_clk_57p6M_en` reader - "]
66pub type DLL_CLK_57P6M_EN_R = crate::BitReader<bool>;
67#[doc = "Field `dll_clk_57p6M_en` writer - "]
68pub type DLL_CLK_57P6M_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
69#[doc = "Field `dll_vctrl_sel` reader - "]
70pub type DLL_VCTRL_SEL_R = crate::FieldReader<u8, u8>;
71#[doc = "Field `dll_vctrl_sel` writer - "]
72pub type DLL_VCTRL_SEL_W<'a, const O: u8> = crate::FieldWriter<'a, u32, DLL_SPEC, u8, u8, 3, O>;
73#[doc = "Field `dll_prechg_sel` reader - "]
74pub type DLL_PRECHG_SEL_R = crate::BitReader<bool>;
75#[doc = "Field `dll_prechg_sel` writer - "]
76pub type DLL_PRECHG_SEL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
77#[doc = "Field `dll_prechg_reg` reader - "]
78pub type DLL_PRECHG_REG_R = crate::BitReader<bool>;
79#[doc = "Field `dll_prechg_reg` writer - "]
80pub type DLL_PRECHG_REG_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
81#[doc = "Field `dll_prechg_en` reader - "]
82pub type DLL_PRECHG_EN_R = crate::BitReader<bool>;
83#[doc = "Field `dll_prechg_en` writer - "]
84pub type DLL_PRECHG_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
85#[doc = "Field `dll_vctrl_force_en` reader - "]
86pub type DLL_VCTRL_FORCE_EN_R = crate::BitReader<bool>;
87#[doc = "Field `dll_vctrl_force_en` writer - "]
88pub type DLL_VCTRL_FORCE_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
89#[doc = "Field `dll_post_div` reader - "]
90pub type DLL_POST_DIV_R = crate::FieldReader<u8, u8>;
91#[doc = "Field `dll_post_div` writer - "]
92pub type DLL_POST_DIV_W<'a, const O: u8> = crate::FieldWriter<'a, u32, DLL_SPEC, u8, u8, 4, O>;
93#[doc = "Field `dll_delay_sel` reader - "]
94pub type DLL_DELAY_SEL_R = crate::FieldReader<u8, u8>;
95#[doc = "Field `dll_delay_sel` writer - "]
96pub type DLL_DELAY_SEL_W<'a, const O: u8> = crate::FieldWriter<'a, u32, DLL_SPEC, u8, u8, 2, O>;
97#[doc = "Field `dll_cp_op_en` reader - "]
98pub type DLL_CP_OP_EN_R = crate::BitReader<bool>;
99#[doc = "Field `dll_cp_op_en` writer - "]
100pub type DLL_CP_OP_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
101#[doc = "Field `dll_cp_hiz` reader - "]
102pub type DLL_CP_HIZ_R = crate::BitReader<bool>;
103#[doc = "Field `dll_cp_hiz` writer - "]
104pub type DLL_CP_HIZ_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
105#[doc = "Field `dll_refclk_sel` reader - "]
106pub type DLL_REFCLK_SEL_R = crate::BitReader<bool>;
107#[doc = "Field `dll_refclk_sel` writer - "]
108pub type DLL_REFCLK_SEL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
109#[doc = "Field `dll_reset` reader - "]
110pub type DLL_RESET_R = crate::BitReader<bool>;
111#[doc = "Field `dll_reset` writer - "]
112pub type DLL_RESET_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
113#[doc = "Field `pu_dll` reader - "]
114pub type PU_DLL_R = crate::BitReader<bool>;
115#[doc = "Field `pu_dll` writer - "]
116pub type PU_DLL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
117#[doc = "Field `ppu_dll` reader - "]
118pub type PPU_DLL_R = crate::BitReader<bool>;
119#[doc = "Field `ppu_dll` writer - "]
120pub type PPU_DLL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DLL_SPEC, bool, O>;
121impl R {
122 #[doc = "Bit 0"]
123 #[inline(always)]
124 pub fn dtest_en_dll_refclk(&self) -> DTEST_EN_DLL_REFCLK_R {
125 DTEST_EN_DLL_REFCLK_R::new((self.bits & 1) != 0)
126 }
127 #[doc = "Bit 1"]
128 #[inline(always)]
129 pub fn dtest_en_dll_outclk(&self) -> DTEST_EN_DLL_OUTCLK_R {
130 DTEST_EN_DLL_OUTCLK_R::new(((self.bits >> 1) & 1) != 0)
131 }
132 #[doc = "Bit 2"]
133 #[inline(always)]
134 pub fn ten_dll(&self) -> TEN_DLL_R {
135 TEN_DLL_R::new(((self.bits >> 2) & 1) != 0)
136 }
137 #[doc = "Bit 3"]
138 #[inline(always)]
139 pub fn dll_clk_mmdiv_en(&self) -> DLL_CLK_MMDIV_EN_R {
140 DLL_CLK_MMDIV_EN_R::new(((self.bits >> 3) & 1) != 0)
141 }
142 #[doc = "Bit 4"]
143 #[inline(always)]
144 pub fn dll_clk_288m_en(&self) -> DLL_CLK_288M_EN_R {
145 DLL_CLK_288M_EN_R::new(((self.bits >> 4) & 1) != 0)
146 }
147 #[doc = "Bit 5"]
148 #[inline(always)]
149 pub fn dll_clk_144m_en(&self) -> DLL_CLK_144M_EN_R {
150 DLL_CLK_144M_EN_R::new(((self.bits >> 5) & 1) != 0)
151 }
152 #[doc = "Bit 6"]
153 #[inline(always)]
154 pub fn dll_clk_96m_en(&self) -> DLL_CLK_96M_EN_R {
155 DLL_CLK_96M_EN_R::new(((self.bits >> 6) & 1) != 0)
156 }
157 #[doc = "Bit 7"]
158 #[inline(always)]
159 pub fn dll_clk_57p6m_en(&self) -> DLL_CLK_57P6M_EN_R {
160 DLL_CLK_57P6M_EN_R::new(((self.bits >> 7) & 1) != 0)
161 }
162 #[doc = "Bits 8:10"]
163 #[inline(always)]
164 pub fn dll_vctrl_sel(&self) -> DLL_VCTRL_SEL_R {
165 DLL_VCTRL_SEL_R::new(((self.bits >> 8) & 7) as u8)
166 }
167 #[doc = "Bit 12"]
168 #[inline(always)]
169 pub fn dll_prechg_sel(&self) -> DLL_PRECHG_SEL_R {
170 DLL_PRECHG_SEL_R::new(((self.bits >> 12) & 1) != 0)
171 }
172 #[doc = "Bit 13"]
173 #[inline(always)]
174 pub fn dll_prechg_reg(&self) -> DLL_PRECHG_REG_R {
175 DLL_PRECHG_REG_R::new(((self.bits >> 13) & 1) != 0)
176 }
177 #[doc = "Bit 14"]
178 #[inline(always)]
179 pub fn dll_prechg_en(&self) -> DLL_PRECHG_EN_R {
180 DLL_PRECHG_EN_R::new(((self.bits >> 14) & 1) != 0)
181 }
182 #[doc = "Bit 15"]
183 #[inline(always)]
184 pub fn dll_vctrl_force_en(&self) -> DLL_VCTRL_FORCE_EN_R {
185 DLL_VCTRL_FORCE_EN_R::new(((self.bits >> 15) & 1) != 0)
186 }
187 #[doc = "Bits 16:19"]
188 #[inline(always)]
189 pub fn dll_post_div(&self) -> DLL_POST_DIV_R {
190 DLL_POST_DIV_R::new(((self.bits >> 16) & 0x0f) as u8)
191 }
192 #[doc = "Bits 20:21"]
193 #[inline(always)]
194 pub fn dll_delay_sel(&self) -> DLL_DELAY_SEL_R {
195 DLL_DELAY_SEL_R::new(((self.bits >> 20) & 3) as u8)
196 }
197 #[doc = "Bit 22"]
198 #[inline(always)]
199 pub fn dll_cp_op_en(&self) -> DLL_CP_OP_EN_R {
200 DLL_CP_OP_EN_R::new(((self.bits >> 22) & 1) != 0)
201 }
202 #[doc = "Bit 23"]
203 #[inline(always)]
204 pub fn dll_cp_hiz(&self) -> DLL_CP_HIZ_R {
205 DLL_CP_HIZ_R::new(((self.bits >> 23) & 1) != 0)
206 }
207 #[doc = "Bit 28"]
208 #[inline(always)]
209 pub fn dll_refclk_sel(&self) -> DLL_REFCLK_SEL_R {
210 DLL_REFCLK_SEL_R::new(((self.bits >> 28) & 1) != 0)
211 }
212 #[doc = "Bit 29"]
213 #[inline(always)]
214 pub fn dll_reset(&self) -> DLL_RESET_R {
215 DLL_RESET_R::new(((self.bits >> 29) & 1) != 0)
216 }
217 #[doc = "Bit 30"]
218 #[inline(always)]
219 pub fn pu_dll(&self) -> PU_DLL_R {
220 PU_DLL_R::new(((self.bits >> 30) & 1) != 0)
221 }
222 #[doc = "Bit 31"]
223 #[inline(always)]
224 pub fn ppu_dll(&self) -> PPU_DLL_R {
225 PPU_DLL_R::new(((self.bits >> 31) & 1) != 0)
226 }
227}
228impl W {
229 #[doc = "Bit 0"]
230 #[inline(always)]
231 #[must_use]
232 pub fn dtest_en_dll_refclk(&mut self) -> DTEST_EN_DLL_REFCLK_W<0> {
233 DTEST_EN_DLL_REFCLK_W::new(self)
234 }
235 #[doc = "Bit 1"]
236 #[inline(always)]
237 #[must_use]
238 pub fn dtest_en_dll_outclk(&mut self) -> DTEST_EN_DLL_OUTCLK_W<1> {
239 DTEST_EN_DLL_OUTCLK_W::new(self)
240 }
241 #[doc = "Bit 2"]
242 #[inline(always)]
243 #[must_use]
244 pub fn ten_dll(&mut self) -> TEN_DLL_W<2> {
245 TEN_DLL_W::new(self)
246 }
247 #[doc = "Bit 3"]
248 #[inline(always)]
249 #[must_use]
250 pub fn dll_clk_mmdiv_en(&mut self) -> DLL_CLK_MMDIV_EN_W<3> {
251 DLL_CLK_MMDIV_EN_W::new(self)
252 }
253 #[doc = "Bit 4"]
254 #[inline(always)]
255 #[must_use]
256 pub fn dll_clk_288m_en(&mut self) -> DLL_CLK_288M_EN_W<4> {
257 DLL_CLK_288M_EN_W::new(self)
258 }
259 #[doc = "Bit 5"]
260 #[inline(always)]
261 #[must_use]
262 pub fn dll_clk_144m_en(&mut self) -> DLL_CLK_144M_EN_W<5> {
263 DLL_CLK_144M_EN_W::new(self)
264 }
265 #[doc = "Bit 6"]
266 #[inline(always)]
267 #[must_use]
268 pub fn dll_clk_96m_en(&mut self) -> DLL_CLK_96M_EN_W<6> {
269 DLL_CLK_96M_EN_W::new(self)
270 }
271 #[doc = "Bit 7"]
272 #[inline(always)]
273 #[must_use]
274 pub fn dll_clk_57p6m_en(&mut self) -> DLL_CLK_57P6M_EN_W<7> {
275 DLL_CLK_57P6M_EN_W::new(self)
276 }
277 #[doc = "Bits 8:10"]
278 #[inline(always)]
279 #[must_use]
280 pub fn dll_vctrl_sel(&mut self) -> DLL_VCTRL_SEL_W<8> {
281 DLL_VCTRL_SEL_W::new(self)
282 }
283 #[doc = "Bit 12"]
284 #[inline(always)]
285 #[must_use]
286 pub fn dll_prechg_sel(&mut self) -> DLL_PRECHG_SEL_W<12> {
287 DLL_PRECHG_SEL_W::new(self)
288 }
289 #[doc = "Bit 13"]
290 #[inline(always)]
291 #[must_use]
292 pub fn dll_prechg_reg(&mut self) -> DLL_PRECHG_REG_W<13> {
293 DLL_PRECHG_REG_W::new(self)
294 }
295 #[doc = "Bit 14"]
296 #[inline(always)]
297 #[must_use]
298 pub fn dll_prechg_en(&mut self) -> DLL_PRECHG_EN_W<14> {
299 DLL_PRECHG_EN_W::new(self)
300 }
301 #[doc = "Bit 15"]
302 #[inline(always)]
303 #[must_use]
304 pub fn dll_vctrl_force_en(&mut self) -> DLL_VCTRL_FORCE_EN_W<15> {
305 DLL_VCTRL_FORCE_EN_W::new(self)
306 }
307 #[doc = "Bits 16:19"]
308 #[inline(always)]
309 #[must_use]
310 pub fn dll_post_div(&mut self) -> DLL_POST_DIV_W<16> {
311 DLL_POST_DIV_W::new(self)
312 }
313 #[doc = "Bits 20:21"]
314 #[inline(always)]
315 #[must_use]
316 pub fn dll_delay_sel(&mut self) -> DLL_DELAY_SEL_W<20> {
317 DLL_DELAY_SEL_W::new(self)
318 }
319 #[doc = "Bit 22"]
320 #[inline(always)]
321 #[must_use]
322 pub fn dll_cp_op_en(&mut self) -> DLL_CP_OP_EN_W<22> {
323 DLL_CP_OP_EN_W::new(self)
324 }
325 #[doc = "Bit 23"]
326 #[inline(always)]
327 #[must_use]
328 pub fn dll_cp_hiz(&mut self) -> DLL_CP_HIZ_W<23> {
329 DLL_CP_HIZ_W::new(self)
330 }
331 #[doc = "Bit 28"]
332 #[inline(always)]
333 #[must_use]
334 pub fn dll_refclk_sel(&mut self) -> DLL_REFCLK_SEL_W<28> {
335 DLL_REFCLK_SEL_W::new(self)
336 }
337 #[doc = "Bit 29"]
338 #[inline(always)]
339 #[must_use]
340 pub fn dll_reset(&mut self) -> DLL_RESET_W<29> {
341 DLL_RESET_W::new(self)
342 }
343 #[doc = "Bit 30"]
344 #[inline(always)]
345 #[must_use]
346 pub fn pu_dll(&mut self) -> PU_DLL_W<30> {
347 PU_DLL_W::new(self)
348 }
349 #[doc = "Bit 31"]
350 #[inline(always)]
351 #[must_use]
352 pub fn ppu_dll(&mut self) -> PPU_DLL_W<31> {
353 PPU_DLL_W::new(self)
354 }
355 #[doc = "Writes raw bits to the register."]
356 #[inline(always)]
357 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
358 self.0.bits(bits);
359 self
360 }
361}
362#[doc = "dll.\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 [dll](index.html) module"]
363pub struct DLL_SPEC;
364impl crate::RegisterSpec for DLL_SPEC {
365 type Ux = u32;
366}
367#[doc = "`read()` method returns [dll::R](R) reader structure"]
368impl crate::Readable for DLL_SPEC {
369 type Reader = R;
370}
371#[doc = "`write(|w| ..)` method takes [dll::W](W) writer structure"]
372impl crate::Writable for DLL_SPEC {
373 type Writer = W;
374 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
375 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
376}
377#[doc = "`reset()` method sets dll to value 0"]
378impl crate::Resettable for DLL_SPEC {
379 const RESET_VALUE: Self::Ux = 0;
380}