atsams70q19/pioa/
pio_puer.rs

1#[doc = "Register `PIO_PUER` writer"]
2pub struct W(crate::W<PIO_PUER_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<PIO_PUER_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<PIO_PUER_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<PIO_PUER_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `P0` writer - Pull-Up Enable"]
23pub struct P0_W<'a> {
24    w: &'a mut W,
25}
26impl<'a> P0_W<'a> {
27    #[doc = r"Sets the field bit"]
28    #[inline(always)]
29    pub fn set_bit(self) -> &'a mut W {
30        self.bit(true)
31    }
32    #[doc = r"Clears the field bit"]
33    #[inline(always)]
34    pub fn clear_bit(self) -> &'a mut W {
35        self.bit(false)
36    }
37    #[doc = r"Writes raw bits to the field"]
38    #[inline(always)]
39    pub fn bit(self, value: bool) -> &'a mut W {
40        self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
41        self.w
42    }
43}
44#[doc = "Field `P1` writer - Pull-Up Enable"]
45pub struct P1_W<'a> {
46    w: &'a mut W,
47}
48impl<'a> P1_W<'a> {
49    #[doc = r"Sets the field bit"]
50    #[inline(always)]
51    pub fn set_bit(self) -> &'a mut W {
52        self.bit(true)
53    }
54    #[doc = r"Clears the field bit"]
55    #[inline(always)]
56    pub fn clear_bit(self) -> &'a mut W {
57        self.bit(false)
58    }
59    #[doc = r"Writes raw bits to the field"]
60    #[inline(always)]
61    pub fn bit(self, value: bool) -> &'a mut W {
62        self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
63        self.w
64    }
65}
66#[doc = "Field `P2` writer - Pull-Up Enable"]
67pub struct P2_W<'a> {
68    w: &'a mut W,
69}
70impl<'a> P2_W<'a> {
71    #[doc = r"Sets the field bit"]
72    #[inline(always)]
73    pub fn set_bit(self) -> &'a mut W {
74        self.bit(true)
75    }
76    #[doc = r"Clears the field bit"]
77    #[inline(always)]
78    pub fn clear_bit(self) -> &'a mut W {
79        self.bit(false)
80    }
81    #[doc = r"Writes raw bits to the field"]
82    #[inline(always)]
83    pub fn bit(self, value: bool) -> &'a mut W {
84        self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
85        self.w
86    }
87}
88#[doc = "Field `P3` writer - Pull-Up Enable"]
89pub struct P3_W<'a> {
90    w: &'a mut W,
91}
92impl<'a> P3_W<'a> {
93    #[doc = r"Sets the field bit"]
94    #[inline(always)]
95    pub fn set_bit(self) -> &'a mut W {
96        self.bit(true)
97    }
98    #[doc = r"Clears the field bit"]
99    #[inline(always)]
100    pub fn clear_bit(self) -> &'a mut W {
101        self.bit(false)
102    }
103    #[doc = r"Writes raw bits to the field"]
104    #[inline(always)]
105    pub fn bit(self, value: bool) -> &'a mut W {
106        self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
107        self.w
108    }
109}
110#[doc = "Field `P4` writer - Pull-Up Enable"]
111pub struct P4_W<'a> {
112    w: &'a mut W,
113}
114impl<'a> P4_W<'a> {
115    #[doc = r"Sets the field bit"]
116    #[inline(always)]
117    pub fn set_bit(self) -> &'a mut W {
118        self.bit(true)
119    }
120    #[doc = r"Clears the field bit"]
121    #[inline(always)]
122    pub fn clear_bit(self) -> &'a mut W {
123        self.bit(false)
124    }
125    #[doc = r"Writes raw bits to the field"]
126    #[inline(always)]
127    pub fn bit(self, value: bool) -> &'a mut W {
128        self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
129        self.w
130    }
131}
132#[doc = "Field `P5` writer - Pull-Up Enable"]
133pub struct P5_W<'a> {
134    w: &'a mut W,
135}
136impl<'a> P5_W<'a> {
137    #[doc = r"Sets the field bit"]
138    #[inline(always)]
139    pub fn set_bit(self) -> &'a mut W {
140        self.bit(true)
141    }
142    #[doc = r"Clears the field bit"]
143    #[inline(always)]
144    pub fn clear_bit(self) -> &'a mut W {
145        self.bit(false)
146    }
147    #[doc = r"Writes raw bits to the field"]
148    #[inline(always)]
149    pub fn bit(self, value: bool) -> &'a mut W {
150        self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
151        self.w
152    }
153}
154#[doc = "Field `P6` writer - Pull-Up Enable"]
155pub struct P6_W<'a> {
156    w: &'a mut W,
157}
158impl<'a> P6_W<'a> {
159    #[doc = r"Sets the field bit"]
160    #[inline(always)]
161    pub fn set_bit(self) -> &'a mut W {
162        self.bit(true)
163    }
164    #[doc = r"Clears the field bit"]
165    #[inline(always)]
166    pub fn clear_bit(self) -> &'a mut W {
167        self.bit(false)
168    }
169    #[doc = r"Writes raw bits to the field"]
170    #[inline(always)]
171    pub fn bit(self, value: bool) -> &'a mut W {
172        self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
173        self.w
174    }
175}
176#[doc = "Field `P7` writer - Pull-Up Enable"]
177pub struct P7_W<'a> {
178    w: &'a mut W,
179}
180impl<'a> P7_W<'a> {
181    #[doc = r"Sets the field bit"]
182    #[inline(always)]
183    pub fn set_bit(self) -> &'a mut W {
184        self.bit(true)
185    }
186    #[doc = r"Clears the field bit"]
187    #[inline(always)]
188    pub fn clear_bit(self) -> &'a mut W {
189        self.bit(false)
190    }
191    #[doc = r"Writes raw bits to the field"]
192    #[inline(always)]
193    pub fn bit(self, value: bool) -> &'a mut W {
194        self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
195        self.w
196    }
197}
198#[doc = "Field `P8` writer - Pull-Up Enable"]
199pub struct P8_W<'a> {
200    w: &'a mut W,
201}
202impl<'a> P8_W<'a> {
203    #[doc = r"Sets the field bit"]
204    #[inline(always)]
205    pub fn set_bit(self) -> &'a mut W {
206        self.bit(true)
207    }
208    #[doc = r"Clears the field bit"]
209    #[inline(always)]
210    pub fn clear_bit(self) -> &'a mut W {
211        self.bit(false)
212    }
213    #[doc = r"Writes raw bits to the field"]
214    #[inline(always)]
215    pub fn bit(self, value: bool) -> &'a mut W {
216        self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
217        self.w
218    }
219}
220#[doc = "Field `P9` writer - Pull-Up Enable"]
221pub struct P9_W<'a> {
222    w: &'a mut W,
223}
224impl<'a> P9_W<'a> {
225    #[doc = r"Sets the field bit"]
226    #[inline(always)]
227    pub fn set_bit(self) -> &'a mut W {
228        self.bit(true)
229    }
230    #[doc = r"Clears the field bit"]
231    #[inline(always)]
232    pub fn clear_bit(self) -> &'a mut W {
233        self.bit(false)
234    }
235    #[doc = r"Writes raw bits to the field"]
236    #[inline(always)]
237    pub fn bit(self, value: bool) -> &'a mut W {
238        self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
239        self.w
240    }
241}
242#[doc = "Field `P10` writer - Pull-Up Enable"]
243pub struct P10_W<'a> {
244    w: &'a mut W,
245}
246impl<'a> P10_W<'a> {
247    #[doc = r"Sets the field bit"]
248    #[inline(always)]
249    pub fn set_bit(self) -> &'a mut W {
250        self.bit(true)
251    }
252    #[doc = r"Clears the field bit"]
253    #[inline(always)]
254    pub fn clear_bit(self) -> &'a mut W {
255        self.bit(false)
256    }
257    #[doc = r"Writes raw bits to the field"]
258    #[inline(always)]
259    pub fn bit(self, value: bool) -> &'a mut W {
260        self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
261        self.w
262    }
263}
264#[doc = "Field `P11` writer - Pull-Up Enable"]
265pub struct P11_W<'a> {
266    w: &'a mut W,
267}
268impl<'a> P11_W<'a> {
269    #[doc = r"Sets the field bit"]
270    #[inline(always)]
271    pub fn set_bit(self) -> &'a mut W {
272        self.bit(true)
273    }
274    #[doc = r"Clears the field bit"]
275    #[inline(always)]
276    pub fn clear_bit(self) -> &'a mut W {
277        self.bit(false)
278    }
279    #[doc = r"Writes raw bits to the field"]
280    #[inline(always)]
281    pub fn bit(self, value: bool) -> &'a mut W {
282        self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
283        self.w
284    }
285}
286#[doc = "Field `P12` writer - Pull-Up Enable"]
287pub struct P12_W<'a> {
288    w: &'a mut W,
289}
290impl<'a> P12_W<'a> {
291    #[doc = r"Sets the field bit"]
292    #[inline(always)]
293    pub fn set_bit(self) -> &'a mut W {
294        self.bit(true)
295    }
296    #[doc = r"Clears the field bit"]
297    #[inline(always)]
298    pub fn clear_bit(self) -> &'a mut W {
299        self.bit(false)
300    }
301    #[doc = r"Writes raw bits to the field"]
302    #[inline(always)]
303    pub fn bit(self, value: bool) -> &'a mut W {
304        self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
305        self.w
306    }
307}
308#[doc = "Field `P13` writer - Pull-Up Enable"]
309pub struct P13_W<'a> {
310    w: &'a mut W,
311}
312impl<'a> P13_W<'a> {
313    #[doc = r"Sets the field bit"]
314    #[inline(always)]
315    pub fn set_bit(self) -> &'a mut W {
316        self.bit(true)
317    }
318    #[doc = r"Clears the field bit"]
319    #[inline(always)]
320    pub fn clear_bit(self) -> &'a mut W {
321        self.bit(false)
322    }
323    #[doc = r"Writes raw bits to the field"]
324    #[inline(always)]
325    pub fn bit(self, value: bool) -> &'a mut W {
326        self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
327        self.w
328    }
329}
330#[doc = "Field `P14` writer - Pull-Up Enable"]
331pub struct P14_W<'a> {
332    w: &'a mut W,
333}
334impl<'a> P14_W<'a> {
335    #[doc = r"Sets the field bit"]
336    #[inline(always)]
337    pub fn set_bit(self) -> &'a mut W {
338        self.bit(true)
339    }
340    #[doc = r"Clears the field bit"]
341    #[inline(always)]
342    pub fn clear_bit(self) -> &'a mut W {
343        self.bit(false)
344    }
345    #[doc = r"Writes raw bits to the field"]
346    #[inline(always)]
347    pub fn bit(self, value: bool) -> &'a mut W {
348        self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
349        self.w
350    }
351}
352#[doc = "Field `P15` writer - Pull-Up Enable"]
353pub struct P15_W<'a> {
354    w: &'a mut W,
355}
356impl<'a> P15_W<'a> {
357    #[doc = r"Sets the field bit"]
358    #[inline(always)]
359    pub fn set_bit(self) -> &'a mut W {
360        self.bit(true)
361    }
362    #[doc = r"Clears the field bit"]
363    #[inline(always)]
364    pub fn clear_bit(self) -> &'a mut W {
365        self.bit(false)
366    }
367    #[doc = r"Writes raw bits to the field"]
368    #[inline(always)]
369    pub fn bit(self, value: bool) -> &'a mut W {
370        self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
371        self.w
372    }
373}
374#[doc = "Field `P16` writer - Pull-Up Enable"]
375pub struct P16_W<'a> {
376    w: &'a mut W,
377}
378impl<'a> P16_W<'a> {
379    #[doc = r"Sets the field bit"]
380    #[inline(always)]
381    pub fn set_bit(self) -> &'a mut W {
382        self.bit(true)
383    }
384    #[doc = r"Clears the field bit"]
385    #[inline(always)]
386    pub fn clear_bit(self) -> &'a mut W {
387        self.bit(false)
388    }
389    #[doc = r"Writes raw bits to the field"]
390    #[inline(always)]
391    pub fn bit(self, value: bool) -> &'a mut W {
392        self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
393        self.w
394    }
395}
396#[doc = "Field `P17` writer - Pull-Up Enable"]
397pub struct P17_W<'a> {
398    w: &'a mut W,
399}
400impl<'a> P17_W<'a> {
401    #[doc = r"Sets the field bit"]
402    #[inline(always)]
403    pub fn set_bit(self) -> &'a mut W {
404        self.bit(true)
405    }
406    #[doc = r"Clears the field bit"]
407    #[inline(always)]
408    pub fn clear_bit(self) -> &'a mut W {
409        self.bit(false)
410    }
411    #[doc = r"Writes raw bits to the field"]
412    #[inline(always)]
413    pub fn bit(self, value: bool) -> &'a mut W {
414        self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
415        self.w
416    }
417}
418#[doc = "Field `P18` writer - Pull-Up Enable"]
419pub struct P18_W<'a> {
420    w: &'a mut W,
421}
422impl<'a> P18_W<'a> {
423    #[doc = r"Sets the field bit"]
424    #[inline(always)]
425    pub fn set_bit(self) -> &'a mut W {
426        self.bit(true)
427    }
428    #[doc = r"Clears the field bit"]
429    #[inline(always)]
430    pub fn clear_bit(self) -> &'a mut W {
431        self.bit(false)
432    }
433    #[doc = r"Writes raw bits to the field"]
434    #[inline(always)]
435    pub fn bit(self, value: bool) -> &'a mut W {
436        self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
437        self.w
438    }
439}
440#[doc = "Field `P19` writer - Pull-Up Enable"]
441pub struct P19_W<'a> {
442    w: &'a mut W,
443}
444impl<'a> P19_W<'a> {
445    #[doc = r"Sets the field bit"]
446    #[inline(always)]
447    pub fn set_bit(self) -> &'a mut W {
448        self.bit(true)
449    }
450    #[doc = r"Clears the field bit"]
451    #[inline(always)]
452    pub fn clear_bit(self) -> &'a mut W {
453        self.bit(false)
454    }
455    #[doc = r"Writes raw bits to the field"]
456    #[inline(always)]
457    pub fn bit(self, value: bool) -> &'a mut W {
458        self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
459        self.w
460    }
461}
462#[doc = "Field `P20` writer - Pull-Up Enable"]
463pub struct P20_W<'a> {
464    w: &'a mut W,
465}
466impl<'a> P20_W<'a> {
467    #[doc = r"Sets the field bit"]
468    #[inline(always)]
469    pub fn set_bit(self) -> &'a mut W {
470        self.bit(true)
471    }
472    #[doc = r"Clears the field bit"]
473    #[inline(always)]
474    pub fn clear_bit(self) -> &'a mut W {
475        self.bit(false)
476    }
477    #[doc = r"Writes raw bits to the field"]
478    #[inline(always)]
479    pub fn bit(self, value: bool) -> &'a mut W {
480        self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
481        self.w
482    }
483}
484#[doc = "Field `P21` writer - Pull-Up Enable"]
485pub struct P21_W<'a> {
486    w: &'a mut W,
487}
488impl<'a> P21_W<'a> {
489    #[doc = r"Sets the field bit"]
490    #[inline(always)]
491    pub fn set_bit(self) -> &'a mut W {
492        self.bit(true)
493    }
494    #[doc = r"Clears the field bit"]
495    #[inline(always)]
496    pub fn clear_bit(self) -> &'a mut W {
497        self.bit(false)
498    }
499    #[doc = r"Writes raw bits to the field"]
500    #[inline(always)]
501    pub fn bit(self, value: bool) -> &'a mut W {
502        self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
503        self.w
504    }
505}
506#[doc = "Field `P22` writer - Pull-Up Enable"]
507pub struct P22_W<'a> {
508    w: &'a mut W,
509}
510impl<'a> P22_W<'a> {
511    #[doc = r"Sets the field bit"]
512    #[inline(always)]
513    pub fn set_bit(self) -> &'a mut W {
514        self.bit(true)
515    }
516    #[doc = r"Clears the field bit"]
517    #[inline(always)]
518    pub fn clear_bit(self) -> &'a mut W {
519        self.bit(false)
520    }
521    #[doc = r"Writes raw bits to the field"]
522    #[inline(always)]
523    pub fn bit(self, value: bool) -> &'a mut W {
524        self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
525        self.w
526    }
527}
528#[doc = "Field `P23` writer - Pull-Up Enable"]
529pub struct P23_W<'a> {
530    w: &'a mut W,
531}
532impl<'a> P23_W<'a> {
533    #[doc = r"Sets the field bit"]
534    #[inline(always)]
535    pub fn set_bit(self) -> &'a mut W {
536        self.bit(true)
537    }
538    #[doc = r"Clears the field bit"]
539    #[inline(always)]
540    pub fn clear_bit(self) -> &'a mut W {
541        self.bit(false)
542    }
543    #[doc = r"Writes raw bits to the field"]
544    #[inline(always)]
545    pub fn bit(self, value: bool) -> &'a mut W {
546        self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
547        self.w
548    }
549}
550#[doc = "Field `P24` writer - Pull-Up Enable"]
551pub struct P24_W<'a> {
552    w: &'a mut W,
553}
554impl<'a> P24_W<'a> {
555    #[doc = r"Sets the field bit"]
556    #[inline(always)]
557    pub fn set_bit(self) -> &'a mut W {
558        self.bit(true)
559    }
560    #[doc = r"Clears the field bit"]
561    #[inline(always)]
562    pub fn clear_bit(self) -> &'a mut W {
563        self.bit(false)
564    }
565    #[doc = r"Writes raw bits to the field"]
566    #[inline(always)]
567    pub fn bit(self, value: bool) -> &'a mut W {
568        self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
569        self.w
570    }
571}
572#[doc = "Field `P25` writer - Pull-Up Enable"]
573pub struct P25_W<'a> {
574    w: &'a mut W,
575}
576impl<'a> P25_W<'a> {
577    #[doc = r"Sets the field bit"]
578    #[inline(always)]
579    pub fn set_bit(self) -> &'a mut W {
580        self.bit(true)
581    }
582    #[doc = r"Clears the field bit"]
583    #[inline(always)]
584    pub fn clear_bit(self) -> &'a mut W {
585        self.bit(false)
586    }
587    #[doc = r"Writes raw bits to the field"]
588    #[inline(always)]
589    pub fn bit(self, value: bool) -> &'a mut W {
590        self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
591        self.w
592    }
593}
594#[doc = "Field `P26` writer - Pull-Up Enable"]
595pub struct P26_W<'a> {
596    w: &'a mut W,
597}
598impl<'a> P26_W<'a> {
599    #[doc = r"Sets the field bit"]
600    #[inline(always)]
601    pub fn set_bit(self) -> &'a mut W {
602        self.bit(true)
603    }
604    #[doc = r"Clears the field bit"]
605    #[inline(always)]
606    pub fn clear_bit(self) -> &'a mut W {
607        self.bit(false)
608    }
609    #[doc = r"Writes raw bits to the field"]
610    #[inline(always)]
611    pub fn bit(self, value: bool) -> &'a mut W {
612        self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
613        self.w
614    }
615}
616#[doc = "Field `P27` writer - Pull-Up Enable"]
617pub struct P27_W<'a> {
618    w: &'a mut W,
619}
620impl<'a> P27_W<'a> {
621    #[doc = r"Sets the field bit"]
622    #[inline(always)]
623    pub fn set_bit(self) -> &'a mut W {
624        self.bit(true)
625    }
626    #[doc = r"Clears the field bit"]
627    #[inline(always)]
628    pub fn clear_bit(self) -> &'a mut W {
629        self.bit(false)
630    }
631    #[doc = r"Writes raw bits to the field"]
632    #[inline(always)]
633    pub fn bit(self, value: bool) -> &'a mut W {
634        self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
635        self.w
636    }
637}
638#[doc = "Field `P28` writer - Pull-Up Enable"]
639pub struct P28_W<'a> {
640    w: &'a mut W,
641}
642impl<'a> P28_W<'a> {
643    #[doc = r"Sets the field bit"]
644    #[inline(always)]
645    pub fn set_bit(self) -> &'a mut W {
646        self.bit(true)
647    }
648    #[doc = r"Clears the field bit"]
649    #[inline(always)]
650    pub fn clear_bit(self) -> &'a mut W {
651        self.bit(false)
652    }
653    #[doc = r"Writes raw bits to the field"]
654    #[inline(always)]
655    pub fn bit(self, value: bool) -> &'a mut W {
656        self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28);
657        self.w
658    }
659}
660#[doc = "Field `P29` writer - Pull-Up Enable"]
661pub struct P29_W<'a> {
662    w: &'a mut W,
663}
664impl<'a> P29_W<'a> {
665    #[doc = r"Sets the field bit"]
666    #[inline(always)]
667    pub fn set_bit(self) -> &'a mut W {
668        self.bit(true)
669    }
670    #[doc = r"Clears the field bit"]
671    #[inline(always)]
672    pub fn clear_bit(self) -> &'a mut W {
673        self.bit(false)
674    }
675    #[doc = r"Writes raw bits to the field"]
676    #[inline(always)]
677    pub fn bit(self, value: bool) -> &'a mut W {
678        self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29);
679        self.w
680    }
681}
682#[doc = "Field `P30` writer - Pull-Up Enable"]
683pub struct P30_W<'a> {
684    w: &'a mut W,
685}
686impl<'a> P30_W<'a> {
687    #[doc = r"Sets the field bit"]
688    #[inline(always)]
689    pub fn set_bit(self) -> &'a mut W {
690        self.bit(true)
691    }
692    #[doc = r"Clears the field bit"]
693    #[inline(always)]
694    pub fn clear_bit(self) -> &'a mut W {
695        self.bit(false)
696    }
697    #[doc = r"Writes raw bits to the field"]
698    #[inline(always)]
699    pub fn bit(self, value: bool) -> &'a mut W {
700        self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30);
701        self.w
702    }
703}
704#[doc = "Field `P31` writer - Pull-Up Enable"]
705pub struct P31_W<'a> {
706    w: &'a mut W,
707}
708impl<'a> P31_W<'a> {
709    #[doc = r"Sets the field bit"]
710    #[inline(always)]
711    pub fn set_bit(self) -> &'a mut W {
712        self.bit(true)
713    }
714    #[doc = r"Clears the field bit"]
715    #[inline(always)]
716    pub fn clear_bit(self) -> &'a mut W {
717        self.bit(false)
718    }
719    #[doc = r"Writes raw bits to the field"]
720    #[inline(always)]
721    pub fn bit(self, value: bool) -> &'a mut W {
722        self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31);
723        self.w
724    }
725}
726impl W {
727    #[doc = "Bit 0 - Pull-Up Enable"]
728    #[inline(always)]
729    pub fn p0(&mut self) -> P0_W {
730        P0_W { w: self }
731    }
732    #[doc = "Bit 1 - Pull-Up Enable"]
733    #[inline(always)]
734    pub fn p1(&mut self) -> P1_W {
735        P1_W { w: self }
736    }
737    #[doc = "Bit 2 - Pull-Up Enable"]
738    #[inline(always)]
739    pub fn p2(&mut self) -> P2_W {
740        P2_W { w: self }
741    }
742    #[doc = "Bit 3 - Pull-Up Enable"]
743    #[inline(always)]
744    pub fn p3(&mut self) -> P3_W {
745        P3_W { w: self }
746    }
747    #[doc = "Bit 4 - Pull-Up Enable"]
748    #[inline(always)]
749    pub fn p4(&mut self) -> P4_W {
750        P4_W { w: self }
751    }
752    #[doc = "Bit 5 - Pull-Up Enable"]
753    #[inline(always)]
754    pub fn p5(&mut self) -> P5_W {
755        P5_W { w: self }
756    }
757    #[doc = "Bit 6 - Pull-Up Enable"]
758    #[inline(always)]
759    pub fn p6(&mut self) -> P6_W {
760        P6_W { w: self }
761    }
762    #[doc = "Bit 7 - Pull-Up Enable"]
763    #[inline(always)]
764    pub fn p7(&mut self) -> P7_W {
765        P7_W { w: self }
766    }
767    #[doc = "Bit 8 - Pull-Up Enable"]
768    #[inline(always)]
769    pub fn p8(&mut self) -> P8_W {
770        P8_W { w: self }
771    }
772    #[doc = "Bit 9 - Pull-Up Enable"]
773    #[inline(always)]
774    pub fn p9(&mut self) -> P9_W {
775        P9_W { w: self }
776    }
777    #[doc = "Bit 10 - Pull-Up Enable"]
778    #[inline(always)]
779    pub fn p10(&mut self) -> P10_W {
780        P10_W { w: self }
781    }
782    #[doc = "Bit 11 - Pull-Up Enable"]
783    #[inline(always)]
784    pub fn p11(&mut self) -> P11_W {
785        P11_W { w: self }
786    }
787    #[doc = "Bit 12 - Pull-Up Enable"]
788    #[inline(always)]
789    pub fn p12(&mut self) -> P12_W {
790        P12_W { w: self }
791    }
792    #[doc = "Bit 13 - Pull-Up Enable"]
793    #[inline(always)]
794    pub fn p13(&mut self) -> P13_W {
795        P13_W { w: self }
796    }
797    #[doc = "Bit 14 - Pull-Up Enable"]
798    #[inline(always)]
799    pub fn p14(&mut self) -> P14_W {
800        P14_W { w: self }
801    }
802    #[doc = "Bit 15 - Pull-Up Enable"]
803    #[inline(always)]
804    pub fn p15(&mut self) -> P15_W {
805        P15_W { w: self }
806    }
807    #[doc = "Bit 16 - Pull-Up Enable"]
808    #[inline(always)]
809    pub fn p16(&mut self) -> P16_W {
810        P16_W { w: self }
811    }
812    #[doc = "Bit 17 - Pull-Up Enable"]
813    #[inline(always)]
814    pub fn p17(&mut self) -> P17_W {
815        P17_W { w: self }
816    }
817    #[doc = "Bit 18 - Pull-Up Enable"]
818    #[inline(always)]
819    pub fn p18(&mut self) -> P18_W {
820        P18_W { w: self }
821    }
822    #[doc = "Bit 19 - Pull-Up Enable"]
823    #[inline(always)]
824    pub fn p19(&mut self) -> P19_W {
825        P19_W { w: self }
826    }
827    #[doc = "Bit 20 - Pull-Up Enable"]
828    #[inline(always)]
829    pub fn p20(&mut self) -> P20_W {
830        P20_W { w: self }
831    }
832    #[doc = "Bit 21 - Pull-Up Enable"]
833    #[inline(always)]
834    pub fn p21(&mut self) -> P21_W {
835        P21_W { w: self }
836    }
837    #[doc = "Bit 22 - Pull-Up Enable"]
838    #[inline(always)]
839    pub fn p22(&mut self) -> P22_W {
840        P22_W { w: self }
841    }
842    #[doc = "Bit 23 - Pull-Up Enable"]
843    #[inline(always)]
844    pub fn p23(&mut self) -> P23_W {
845        P23_W { w: self }
846    }
847    #[doc = "Bit 24 - Pull-Up Enable"]
848    #[inline(always)]
849    pub fn p24(&mut self) -> P24_W {
850        P24_W { w: self }
851    }
852    #[doc = "Bit 25 - Pull-Up Enable"]
853    #[inline(always)]
854    pub fn p25(&mut self) -> P25_W {
855        P25_W { w: self }
856    }
857    #[doc = "Bit 26 - Pull-Up Enable"]
858    #[inline(always)]
859    pub fn p26(&mut self) -> P26_W {
860        P26_W { w: self }
861    }
862    #[doc = "Bit 27 - Pull-Up Enable"]
863    #[inline(always)]
864    pub fn p27(&mut self) -> P27_W {
865        P27_W { w: self }
866    }
867    #[doc = "Bit 28 - Pull-Up Enable"]
868    #[inline(always)]
869    pub fn p28(&mut self) -> P28_W {
870        P28_W { w: self }
871    }
872    #[doc = "Bit 29 - Pull-Up Enable"]
873    #[inline(always)]
874    pub fn p29(&mut self) -> P29_W {
875        P29_W { w: self }
876    }
877    #[doc = "Bit 30 - Pull-Up Enable"]
878    #[inline(always)]
879    pub fn p30(&mut self) -> P30_W {
880        P30_W { w: self }
881    }
882    #[doc = "Bit 31 - Pull-Up Enable"]
883    #[inline(always)]
884    pub fn p31(&mut self) -> P31_W {
885        P31_W { w: self }
886    }
887    #[doc = "Writes raw bits to the register."]
888    #[inline(always)]
889    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
890        self.0.bits(bits);
891        self
892    }
893}
894#[doc = "Pull-up Enable Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pio_puer](index.html) module"]
895pub struct PIO_PUER_SPEC;
896impl crate::RegisterSpec for PIO_PUER_SPEC {
897    type Ux = u32;
898}
899#[doc = "`write(|w| ..)` method takes [pio_puer::W](W) writer structure"]
900impl crate::Writable for PIO_PUER_SPEC {
901    type Writer = W;
902}
903#[doc = "`reset()` method sets PIO_PUER to value 0"]
904impl crate::Resettable for PIO_PUER_SPEC {
905    #[inline(always)]
906    fn reset_value() -> Self::Ux {
907        0
908    }
909}