1#[doc = "Register `pucr1` reader"]
2pub struct R(crate::R<PUCR1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PUCR1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PUCR1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PUCR1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `pucr1` writer"]
17pub struct W(crate::W<PUCR1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<PUCR1_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<PUCR1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<PUCR1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `pu_sfreg` reader - "]
38pub type PU_SFREG_R = crate::BitReader<bool>;
39#[doc = "Field `pu_sfreg` writer - "]
40pub type PU_SFREG_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
41#[doc = "Field `pu_lna` reader - "]
42pub type PU_LNA_R = crate::BitReader<bool>;
43#[doc = "Field `pu_lna` writer - "]
44pub type PU_LNA_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
45#[doc = "Field `pu_rmxgm` reader - "]
46pub type PU_RMXGM_R = crate::BitReader<bool>;
47#[doc = "Field `pu_rmxgm` writer - "]
48pub type PU_RMXGM_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
49#[doc = "Field `pu_rmx` reader - "]
50pub type PU_RMX_R = crate::BitReader<bool>;
51#[doc = "Field `pu_rmx` writer - "]
52pub type PU_RMX_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
53#[doc = "Field `pu_rbb` reader - "]
54pub type PU_RBB_R = crate::BitReader<bool>;
55#[doc = "Field `pu_rbb` writer - "]
56pub type PU_RBB_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
57#[doc = "Field `pu_adda_ldo` reader - "]
58pub type PU_ADDA_LDO_R = crate::BitReader<bool>;
59#[doc = "Field `pu_adda_ldo` writer - "]
60pub type PU_ADDA_LDO_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
61#[doc = "Field `adc_clk_en` reader - "]
62pub type ADC_CLK_EN_R = crate::BitReader<bool>;
63#[doc = "Field `adc_clk_en` writer - "]
64pub type ADC_CLK_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
65#[doc = "Field `pu_adc` reader - "]
66pub type PU_ADC_R = crate::BitReader<bool>;
67#[doc = "Field `pu_adc` writer - "]
68pub type PU_ADC_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
69#[doc = "Field `pu_op_atest` reader - "]
70pub type PU_OP_ATEST_R = crate::BitReader<bool>;
71#[doc = "Field `pu_op_atest` writer - "]
72pub type PU_OP_ATEST_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
73#[doc = "Field `pu_pa` reader - "]
74pub type PU_PA_R = crate::BitReader<bool>;
75#[doc = "Field `pu_pa` writer - "]
76pub type PU_PA_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
77#[doc = "Field `pu_tmx` reader - "]
78pub type PU_TMX_R = crate::BitReader<bool>;
79#[doc = "Field `pu_tmx` writer - "]
80pub type PU_TMX_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
81#[doc = "Field `pu_tbb` reader - "]
82pub type PU_TBB_R = crate::BitReader<bool>;
83#[doc = "Field `pu_tbb` writer - "]
84pub type PU_TBB_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
85#[doc = "Field `pu_dac` reader - "]
86pub type PU_DAC_R = crate::BitReader<bool>;
87#[doc = "Field `pu_dac` writer - "]
88pub type PU_DAC_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
89#[doc = "Field `pu_vco` reader - "]
90pub type PU_VCO_R = crate::BitReader<bool>;
91#[doc = "Field `pu_vco` writer - "]
92pub type PU_VCO_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
93#[doc = "Field `pu_fbdv` reader - "]
94pub type PU_FBDV_R = crate::BitReader<bool>;
95#[doc = "Field `pu_fbdv` writer - "]
96pub type PU_FBDV_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
97#[doc = "Field `pu_pfd` reader - "]
98pub type PU_PFD_R = crate::BitReader<bool>;
99#[doc = "Field `pu_pfd` writer - "]
100pub type PU_PFD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
101#[doc = "Field `pu_osmx` reader - "]
102pub type PU_OSMX_R = crate::BitReader<bool>;
103#[doc = "Field `pu_osmx` writer - "]
104pub type PU_OSMX_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
105#[doc = "Field `pu_rxbuf` reader - "]
106pub type PU_RXBUF_R = crate::BitReader<bool>;
107#[doc = "Field `pu_rxbuf` writer - "]
108pub type PU_RXBUF_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
109#[doc = "Field `pu_txbuf` reader - "]
110pub type PU_TXBUF_R = crate::BitReader<bool>;
111#[doc = "Field `pu_txbuf` writer - "]
112pub type PU_TXBUF_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
113#[doc = "Field `trsw_en` reader - "]
114pub type TRSW_EN_R = crate::BitReader<bool>;
115#[doc = "Field `trsw_en` writer - "]
116pub type TRSW_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
117#[doc = "Field `pu_pkdet` reader - "]
118pub type PU_PKDET_R = crate::BitReader<bool>;
119#[doc = "Field `pu_pkdet` writer - "]
120pub type PU_PKDET_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
121#[doc = "Field `pu_rosdac` reader - "]
122pub type PU_ROSDAC_R = crate::BitReader<bool>;
123#[doc = "Field `pu_rosdac` writer - "]
124pub type PU_ROSDAC_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
125#[doc = "Field `pu_pwrmx` reader - "]
126pub type PU_PWRMX_R = crate::BitReader<bool>;
127#[doc = "Field `pu_pwrmx` writer - "]
128pub type PU_PWRMX_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
129#[doc = "Field `pu_tosdac` reader - "]
130pub type PU_TOSDAC_R = crate::BitReader<bool>;
131#[doc = "Field `pu_tosdac` writer - "]
132pub type PU_TOSDAC_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUCR1_SPEC, bool, O>;
133impl R {
134 #[doc = "Bit 0"]
135 #[inline(always)]
136 pub fn pu_sfreg(&self) -> PU_SFREG_R {
137 PU_SFREG_R::new((self.bits & 1) != 0)
138 }
139 #[doc = "Bit 8"]
140 #[inline(always)]
141 pub fn pu_lna(&self) -> PU_LNA_R {
142 PU_LNA_R::new(((self.bits >> 8) & 1) != 0)
143 }
144 #[doc = "Bit 9"]
145 #[inline(always)]
146 pub fn pu_rmxgm(&self) -> PU_RMXGM_R {
147 PU_RMXGM_R::new(((self.bits >> 9) & 1) != 0)
148 }
149 #[doc = "Bit 10"]
150 #[inline(always)]
151 pub fn pu_rmx(&self) -> PU_RMX_R {
152 PU_RMX_R::new(((self.bits >> 10) & 1) != 0)
153 }
154 #[doc = "Bit 11"]
155 #[inline(always)]
156 pub fn pu_rbb(&self) -> PU_RBB_R {
157 PU_RBB_R::new(((self.bits >> 11) & 1) != 0)
158 }
159 #[doc = "Bit 12"]
160 #[inline(always)]
161 pub fn pu_adda_ldo(&self) -> PU_ADDA_LDO_R {
162 PU_ADDA_LDO_R::new(((self.bits >> 12) & 1) != 0)
163 }
164 #[doc = "Bit 13"]
165 #[inline(always)]
166 pub fn adc_clk_en(&self) -> ADC_CLK_EN_R {
167 ADC_CLK_EN_R::new(((self.bits >> 13) & 1) != 0)
168 }
169 #[doc = "Bit 14"]
170 #[inline(always)]
171 pub fn pu_adc(&self) -> PU_ADC_R {
172 PU_ADC_R::new(((self.bits >> 14) & 1) != 0)
173 }
174 #[doc = "Bit 15"]
175 #[inline(always)]
176 pub fn pu_op_atest(&self) -> PU_OP_ATEST_R {
177 PU_OP_ATEST_R::new(((self.bits >> 15) & 1) != 0)
178 }
179 #[doc = "Bit 16"]
180 #[inline(always)]
181 pub fn pu_pa(&self) -> PU_PA_R {
182 PU_PA_R::new(((self.bits >> 16) & 1) != 0)
183 }
184 #[doc = "Bit 17"]
185 #[inline(always)]
186 pub fn pu_tmx(&self) -> PU_TMX_R {
187 PU_TMX_R::new(((self.bits >> 17) & 1) != 0)
188 }
189 #[doc = "Bit 18"]
190 #[inline(always)]
191 pub fn pu_tbb(&self) -> PU_TBB_R {
192 PU_TBB_R::new(((self.bits >> 18) & 1) != 0)
193 }
194 #[doc = "Bit 19"]
195 #[inline(always)]
196 pub fn pu_dac(&self) -> PU_DAC_R {
197 PU_DAC_R::new(((self.bits >> 19) & 1) != 0)
198 }
199 #[doc = "Bit 20"]
200 #[inline(always)]
201 pub fn pu_vco(&self) -> PU_VCO_R {
202 PU_VCO_R::new(((self.bits >> 20) & 1) != 0)
203 }
204 #[doc = "Bit 21"]
205 #[inline(always)]
206 pub fn pu_fbdv(&self) -> PU_FBDV_R {
207 PU_FBDV_R::new(((self.bits >> 21) & 1) != 0)
208 }
209 #[doc = "Bit 22"]
210 #[inline(always)]
211 pub fn pu_pfd(&self) -> PU_PFD_R {
212 PU_PFD_R::new(((self.bits >> 22) & 1) != 0)
213 }
214 #[doc = "Bit 23"]
215 #[inline(always)]
216 pub fn pu_osmx(&self) -> PU_OSMX_R {
217 PU_OSMX_R::new(((self.bits >> 23) & 1) != 0)
218 }
219 #[doc = "Bit 24"]
220 #[inline(always)]
221 pub fn pu_rxbuf(&self) -> PU_RXBUF_R {
222 PU_RXBUF_R::new(((self.bits >> 24) & 1) != 0)
223 }
224 #[doc = "Bit 25"]
225 #[inline(always)]
226 pub fn pu_txbuf(&self) -> PU_TXBUF_R {
227 PU_TXBUF_R::new(((self.bits >> 25) & 1) != 0)
228 }
229 #[doc = "Bit 26"]
230 #[inline(always)]
231 pub fn trsw_en(&self) -> TRSW_EN_R {
232 TRSW_EN_R::new(((self.bits >> 26) & 1) != 0)
233 }
234 #[doc = "Bit 28"]
235 #[inline(always)]
236 pub fn pu_pkdet(&self) -> PU_PKDET_R {
237 PU_PKDET_R::new(((self.bits >> 28) & 1) != 0)
238 }
239 #[doc = "Bit 29"]
240 #[inline(always)]
241 pub fn pu_rosdac(&self) -> PU_ROSDAC_R {
242 PU_ROSDAC_R::new(((self.bits >> 29) & 1) != 0)
243 }
244 #[doc = "Bit 30"]
245 #[inline(always)]
246 pub fn pu_pwrmx(&self) -> PU_PWRMX_R {
247 PU_PWRMX_R::new(((self.bits >> 30) & 1) != 0)
248 }
249 #[doc = "Bit 31"]
250 #[inline(always)]
251 pub fn pu_tosdac(&self) -> PU_TOSDAC_R {
252 PU_TOSDAC_R::new(((self.bits >> 31) & 1) != 0)
253 }
254}
255impl W {
256 #[doc = "Bit 0"]
257 #[inline(always)]
258 #[must_use]
259 pub fn pu_sfreg(&mut self) -> PU_SFREG_W<0> {
260 PU_SFREG_W::new(self)
261 }
262 #[doc = "Bit 8"]
263 #[inline(always)]
264 #[must_use]
265 pub fn pu_lna(&mut self) -> PU_LNA_W<8> {
266 PU_LNA_W::new(self)
267 }
268 #[doc = "Bit 9"]
269 #[inline(always)]
270 #[must_use]
271 pub fn pu_rmxgm(&mut self) -> PU_RMXGM_W<9> {
272 PU_RMXGM_W::new(self)
273 }
274 #[doc = "Bit 10"]
275 #[inline(always)]
276 #[must_use]
277 pub fn pu_rmx(&mut self) -> PU_RMX_W<10> {
278 PU_RMX_W::new(self)
279 }
280 #[doc = "Bit 11"]
281 #[inline(always)]
282 #[must_use]
283 pub fn pu_rbb(&mut self) -> PU_RBB_W<11> {
284 PU_RBB_W::new(self)
285 }
286 #[doc = "Bit 12"]
287 #[inline(always)]
288 #[must_use]
289 pub fn pu_adda_ldo(&mut self) -> PU_ADDA_LDO_W<12> {
290 PU_ADDA_LDO_W::new(self)
291 }
292 #[doc = "Bit 13"]
293 #[inline(always)]
294 #[must_use]
295 pub fn adc_clk_en(&mut self) -> ADC_CLK_EN_W<13> {
296 ADC_CLK_EN_W::new(self)
297 }
298 #[doc = "Bit 14"]
299 #[inline(always)]
300 #[must_use]
301 pub fn pu_adc(&mut self) -> PU_ADC_W<14> {
302 PU_ADC_W::new(self)
303 }
304 #[doc = "Bit 15"]
305 #[inline(always)]
306 #[must_use]
307 pub fn pu_op_atest(&mut self) -> PU_OP_ATEST_W<15> {
308 PU_OP_ATEST_W::new(self)
309 }
310 #[doc = "Bit 16"]
311 #[inline(always)]
312 #[must_use]
313 pub fn pu_pa(&mut self) -> PU_PA_W<16> {
314 PU_PA_W::new(self)
315 }
316 #[doc = "Bit 17"]
317 #[inline(always)]
318 #[must_use]
319 pub fn pu_tmx(&mut self) -> PU_TMX_W<17> {
320 PU_TMX_W::new(self)
321 }
322 #[doc = "Bit 18"]
323 #[inline(always)]
324 #[must_use]
325 pub fn pu_tbb(&mut self) -> PU_TBB_W<18> {
326 PU_TBB_W::new(self)
327 }
328 #[doc = "Bit 19"]
329 #[inline(always)]
330 #[must_use]
331 pub fn pu_dac(&mut self) -> PU_DAC_W<19> {
332 PU_DAC_W::new(self)
333 }
334 #[doc = "Bit 20"]
335 #[inline(always)]
336 #[must_use]
337 pub fn pu_vco(&mut self) -> PU_VCO_W<20> {
338 PU_VCO_W::new(self)
339 }
340 #[doc = "Bit 21"]
341 #[inline(always)]
342 #[must_use]
343 pub fn pu_fbdv(&mut self) -> PU_FBDV_W<21> {
344 PU_FBDV_W::new(self)
345 }
346 #[doc = "Bit 22"]
347 #[inline(always)]
348 #[must_use]
349 pub fn pu_pfd(&mut self) -> PU_PFD_W<22> {
350 PU_PFD_W::new(self)
351 }
352 #[doc = "Bit 23"]
353 #[inline(always)]
354 #[must_use]
355 pub fn pu_osmx(&mut self) -> PU_OSMX_W<23> {
356 PU_OSMX_W::new(self)
357 }
358 #[doc = "Bit 24"]
359 #[inline(always)]
360 #[must_use]
361 pub fn pu_rxbuf(&mut self) -> PU_RXBUF_W<24> {
362 PU_RXBUF_W::new(self)
363 }
364 #[doc = "Bit 25"]
365 #[inline(always)]
366 #[must_use]
367 pub fn pu_txbuf(&mut self) -> PU_TXBUF_W<25> {
368 PU_TXBUF_W::new(self)
369 }
370 #[doc = "Bit 26"]
371 #[inline(always)]
372 #[must_use]
373 pub fn trsw_en(&mut self) -> TRSW_EN_W<26> {
374 TRSW_EN_W::new(self)
375 }
376 #[doc = "Bit 28"]
377 #[inline(always)]
378 #[must_use]
379 pub fn pu_pkdet(&mut self) -> PU_PKDET_W<28> {
380 PU_PKDET_W::new(self)
381 }
382 #[doc = "Bit 29"]
383 #[inline(always)]
384 #[must_use]
385 pub fn pu_rosdac(&mut self) -> PU_ROSDAC_W<29> {
386 PU_ROSDAC_W::new(self)
387 }
388 #[doc = "Bit 30"]
389 #[inline(always)]
390 #[must_use]
391 pub fn pu_pwrmx(&mut self) -> PU_PWRMX_W<30> {
392 PU_PWRMX_W::new(self)
393 }
394 #[doc = "Bit 31"]
395 #[inline(always)]
396 #[must_use]
397 pub fn pu_tosdac(&mut self) -> PU_TOSDAC_W<31> {
398 PU_TOSDAC_W::new(self)
399 }
400 #[doc = "Writes raw bits to the register."]
401 #[inline(always)]
402 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
403 self.0.bits(bits);
404 self
405 }
406}
407#[doc = "pucr1.\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 [pucr1](index.html) module"]
408pub struct PUCR1_SPEC;
409impl crate::RegisterSpec for PUCR1_SPEC {
410 type Ux = u32;
411}
412#[doc = "`read()` method returns [pucr1::R](R) reader structure"]
413impl crate::Readable for PUCR1_SPEC {
414 type Reader = R;
415}
416#[doc = "`write(|w| ..)` method takes [pucr1::W](W) writer structure"]
417impl crate::Writable for PUCR1_SPEC {
418 type Writer = W;
419 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
420 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
421}
422#[doc = "`reset()` method sets pucr1 to value 0"]
423impl crate::Resettable for PUCR1_SPEC {
424 const RESET_VALUE: Self::Ux = 0;
425}