1#[doc = r" Value read from the register"]
2pub struct R {
3 bits: u32,
4}
5#[doc = r" Value to write to the register"]
6pub struct W {
7 bits: u32,
8}
9impl super::PDDR {
10 #[doc = r" Modifies the contents of the register"]
11 #[inline]
12 pub fn modify<F>(&self, f: F)
13 where
14 for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
15 {
16 let bits = self.register.get();
17 let r = R { bits: bits };
18 let mut w = W { bits: bits };
19 f(&r, &mut w);
20 self.register.set(w.bits);
21 }
22 #[doc = r" Reads the contents of the register"]
23 #[inline]
24 pub fn read(&self) -> R {
25 R {
26 bits: self.register.get(),
27 }
28 }
29 #[doc = r" Writes to the register"]
30 #[inline]
31 pub fn write<F>(&self, f: F)
32 where
33 F: FnOnce(&mut W) -> &mut W,
34 {
35 let mut w = W::reset_value();
36 f(&mut w);
37 self.register.set(w.bits);
38 }
39 #[doc = r" Writes the reset value to the register"]
40 #[inline]
41 pub fn reset(&self) {
42 self.write(|w| w)
43 }
44}
45#[doc = "Possible values of the field `PDD0`"]
46#[derive(Clone, Copy, Debug, PartialEq)]
47pub enum PDD0R {
48 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
49 _0,
50 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
51 _1,
52}
53impl PDD0R {
54 #[doc = r" Returns `true` if the bit is clear (0)"]
55 #[inline]
56 pub fn bit_is_clear(&self) -> bool {
57 !self.bit()
58 }
59 #[doc = r" Returns `true` if the bit is set (1)"]
60 #[inline]
61 pub fn bit_is_set(&self) -> bool {
62 self.bit()
63 }
64 #[doc = r" Value of the field as raw bits"]
65 #[inline]
66 pub fn bit(&self) -> bool {
67 match *self {
68 PDD0R::_0 => false,
69 PDD0R::_1 => true,
70 }
71 }
72 #[allow(missing_docs)]
73 #[doc(hidden)]
74 #[inline]
75 pub fn _from(value: bool) -> PDD0R {
76 match value {
77 false => PDD0R::_0,
78 true => PDD0R::_1,
79 }
80 }
81 #[doc = "Checks if the value of the field is `_0`"]
82 #[inline]
83 pub fn is_0(&self) -> bool {
84 *self == PDD0R::_0
85 }
86 #[doc = "Checks if the value of the field is `_1`"]
87 #[inline]
88 pub fn is_1(&self) -> bool {
89 *self == PDD0R::_1
90 }
91}
92#[doc = "Possible values of the field `PDD1`"]
93#[derive(Clone, Copy, Debug, PartialEq)]
94pub enum PDD1R {
95 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
96 _0,
97 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
98 _1,
99}
100impl PDD1R {
101 #[doc = r" Returns `true` if the bit is clear (0)"]
102 #[inline]
103 pub fn bit_is_clear(&self) -> bool {
104 !self.bit()
105 }
106 #[doc = r" Returns `true` if the bit is set (1)"]
107 #[inline]
108 pub fn bit_is_set(&self) -> bool {
109 self.bit()
110 }
111 #[doc = r" Value of the field as raw bits"]
112 #[inline]
113 pub fn bit(&self) -> bool {
114 match *self {
115 PDD1R::_0 => false,
116 PDD1R::_1 => true,
117 }
118 }
119 #[allow(missing_docs)]
120 #[doc(hidden)]
121 #[inline]
122 pub fn _from(value: bool) -> PDD1R {
123 match value {
124 false => PDD1R::_0,
125 true => PDD1R::_1,
126 }
127 }
128 #[doc = "Checks if the value of the field is `_0`"]
129 #[inline]
130 pub fn is_0(&self) -> bool {
131 *self == PDD1R::_0
132 }
133 #[doc = "Checks if the value of the field is `_1`"]
134 #[inline]
135 pub fn is_1(&self) -> bool {
136 *self == PDD1R::_1
137 }
138}
139#[doc = "Possible values of the field `PDD2`"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum PDD2R {
142 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
143 _0,
144 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
145 _1,
146}
147impl PDD2R {
148 #[doc = r" Returns `true` if the bit is clear (0)"]
149 #[inline]
150 pub fn bit_is_clear(&self) -> bool {
151 !self.bit()
152 }
153 #[doc = r" Returns `true` if the bit is set (1)"]
154 #[inline]
155 pub fn bit_is_set(&self) -> bool {
156 self.bit()
157 }
158 #[doc = r" Value of the field as raw bits"]
159 #[inline]
160 pub fn bit(&self) -> bool {
161 match *self {
162 PDD2R::_0 => false,
163 PDD2R::_1 => true,
164 }
165 }
166 #[allow(missing_docs)]
167 #[doc(hidden)]
168 #[inline]
169 pub fn _from(value: bool) -> PDD2R {
170 match value {
171 false => PDD2R::_0,
172 true => PDD2R::_1,
173 }
174 }
175 #[doc = "Checks if the value of the field is `_0`"]
176 #[inline]
177 pub fn is_0(&self) -> bool {
178 *self == PDD2R::_0
179 }
180 #[doc = "Checks if the value of the field is `_1`"]
181 #[inline]
182 pub fn is_1(&self) -> bool {
183 *self == PDD2R::_1
184 }
185}
186#[doc = "Possible values of the field `PDD3`"]
187#[derive(Clone, Copy, Debug, PartialEq)]
188pub enum PDD3R {
189 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
190 _0,
191 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
192 _1,
193}
194impl PDD3R {
195 #[doc = r" Returns `true` if the bit is clear (0)"]
196 #[inline]
197 pub fn bit_is_clear(&self) -> bool {
198 !self.bit()
199 }
200 #[doc = r" Returns `true` if the bit is set (1)"]
201 #[inline]
202 pub fn bit_is_set(&self) -> bool {
203 self.bit()
204 }
205 #[doc = r" Value of the field as raw bits"]
206 #[inline]
207 pub fn bit(&self) -> bool {
208 match *self {
209 PDD3R::_0 => false,
210 PDD3R::_1 => true,
211 }
212 }
213 #[allow(missing_docs)]
214 #[doc(hidden)]
215 #[inline]
216 pub fn _from(value: bool) -> PDD3R {
217 match value {
218 false => PDD3R::_0,
219 true => PDD3R::_1,
220 }
221 }
222 #[doc = "Checks if the value of the field is `_0`"]
223 #[inline]
224 pub fn is_0(&self) -> bool {
225 *self == PDD3R::_0
226 }
227 #[doc = "Checks if the value of the field is `_1`"]
228 #[inline]
229 pub fn is_1(&self) -> bool {
230 *self == PDD3R::_1
231 }
232}
233#[doc = "Possible values of the field `PDD4`"]
234#[derive(Clone, Copy, Debug, PartialEq)]
235pub enum PDD4R {
236 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
237 _0,
238 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
239 _1,
240}
241impl PDD4R {
242 #[doc = r" Returns `true` if the bit is clear (0)"]
243 #[inline]
244 pub fn bit_is_clear(&self) -> bool {
245 !self.bit()
246 }
247 #[doc = r" Returns `true` if the bit is set (1)"]
248 #[inline]
249 pub fn bit_is_set(&self) -> bool {
250 self.bit()
251 }
252 #[doc = r" Value of the field as raw bits"]
253 #[inline]
254 pub fn bit(&self) -> bool {
255 match *self {
256 PDD4R::_0 => false,
257 PDD4R::_1 => true,
258 }
259 }
260 #[allow(missing_docs)]
261 #[doc(hidden)]
262 #[inline]
263 pub fn _from(value: bool) -> PDD4R {
264 match value {
265 false => PDD4R::_0,
266 true => PDD4R::_1,
267 }
268 }
269 #[doc = "Checks if the value of the field is `_0`"]
270 #[inline]
271 pub fn is_0(&self) -> bool {
272 *self == PDD4R::_0
273 }
274 #[doc = "Checks if the value of the field is `_1`"]
275 #[inline]
276 pub fn is_1(&self) -> bool {
277 *self == PDD4R::_1
278 }
279}
280#[doc = "Possible values of the field `PDD5`"]
281#[derive(Clone, Copy, Debug, PartialEq)]
282pub enum PDD5R {
283 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
284 _0,
285 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
286 _1,
287}
288impl PDD5R {
289 #[doc = r" Returns `true` if the bit is clear (0)"]
290 #[inline]
291 pub fn bit_is_clear(&self) -> bool {
292 !self.bit()
293 }
294 #[doc = r" Returns `true` if the bit is set (1)"]
295 #[inline]
296 pub fn bit_is_set(&self) -> bool {
297 self.bit()
298 }
299 #[doc = r" Value of the field as raw bits"]
300 #[inline]
301 pub fn bit(&self) -> bool {
302 match *self {
303 PDD5R::_0 => false,
304 PDD5R::_1 => true,
305 }
306 }
307 #[allow(missing_docs)]
308 #[doc(hidden)]
309 #[inline]
310 pub fn _from(value: bool) -> PDD5R {
311 match value {
312 false => PDD5R::_0,
313 true => PDD5R::_1,
314 }
315 }
316 #[doc = "Checks if the value of the field is `_0`"]
317 #[inline]
318 pub fn is_0(&self) -> bool {
319 *self == PDD5R::_0
320 }
321 #[doc = "Checks if the value of the field is `_1`"]
322 #[inline]
323 pub fn is_1(&self) -> bool {
324 *self == PDD5R::_1
325 }
326}
327#[doc = "Possible values of the field `PDD6`"]
328#[derive(Clone, Copy, Debug, PartialEq)]
329pub enum PDD6R {
330 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
331 _0,
332 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
333 _1,
334}
335impl PDD6R {
336 #[doc = r" Returns `true` if the bit is clear (0)"]
337 #[inline]
338 pub fn bit_is_clear(&self) -> bool {
339 !self.bit()
340 }
341 #[doc = r" Returns `true` if the bit is set (1)"]
342 #[inline]
343 pub fn bit_is_set(&self) -> bool {
344 self.bit()
345 }
346 #[doc = r" Value of the field as raw bits"]
347 #[inline]
348 pub fn bit(&self) -> bool {
349 match *self {
350 PDD6R::_0 => false,
351 PDD6R::_1 => true,
352 }
353 }
354 #[allow(missing_docs)]
355 #[doc(hidden)]
356 #[inline]
357 pub fn _from(value: bool) -> PDD6R {
358 match value {
359 false => PDD6R::_0,
360 true => PDD6R::_1,
361 }
362 }
363 #[doc = "Checks if the value of the field is `_0`"]
364 #[inline]
365 pub fn is_0(&self) -> bool {
366 *self == PDD6R::_0
367 }
368 #[doc = "Checks if the value of the field is `_1`"]
369 #[inline]
370 pub fn is_1(&self) -> bool {
371 *self == PDD6R::_1
372 }
373}
374#[doc = "Possible values of the field `PDD7`"]
375#[derive(Clone, Copy, Debug, PartialEq)]
376pub enum PDD7R {
377 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
378 _0,
379 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
380 _1,
381}
382impl PDD7R {
383 #[doc = r" Returns `true` if the bit is clear (0)"]
384 #[inline]
385 pub fn bit_is_clear(&self) -> bool {
386 !self.bit()
387 }
388 #[doc = r" Returns `true` if the bit is set (1)"]
389 #[inline]
390 pub fn bit_is_set(&self) -> bool {
391 self.bit()
392 }
393 #[doc = r" Value of the field as raw bits"]
394 #[inline]
395 pub fn bit(&self) -> bool {
396 match *self {
397 PDD7R::_0 => false,
398 PDD7R::_1 => true,
399 }
400 }
401 #[allow(missing_docs)]
402 #[doc(hidden)]
403 #[inline]
404 pub fn _from(value: bool) -> PDD7R {
405 match value {
406 false => PDD7R::_0,
407 true => PDD7R::_1,
408 }
409 }
410 #[doc = "Checks if the value of the field is `_0`"]
411 #[inline]
412 pub fn is_0(&self) -> bool {
413 *self == PDD7R::_0
414 }
415 #[doc = "Checks if the value of the field is `_1`"]
416 #[inline]
417 pub fn is_1(&self) -> bool {
418 *self == PDD7R::_1
419 }
420}
421#[doc = "Possible values of the field `PDD8`"]
422#[derive(Clone, Copy, Debug, PartialEq)]
423pub enum PDD8R {
424 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
425 _0,
426 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
427 _1,
428}
429impl PDD8R {
430 #[doc = r" Returns `true` if the bit is clear (0)"]
431 #[inline]
432 pub fn bit_is_clear(&self) -> bool {
433 !self.bit()
434 }
435 #[doc = r" Returns `true` if the bit is set (1)"]
436 #[inline]
437 pub fn bit_is_set(&self) -> bool {
438 self.bit()
439 }
440 #[doc = r" Value of the field as raw bits"]
441 #[inline]
442 pub fn bit(&self) -> bool {
443 match *self {
444 PDD8R::_0 => false,
445 PDD8R::_1 => true,
446 }
447 }
448 #[allow(missing_docs)]
449 #[doc(hidden)]
450 #[inline]
451 pub fn _from(value: bool) -> PDD8R {
452 match value {
453 false => PDD8R::_0,
454 true => PDD8R::_1,
455 }
456 }
457 #[doc = "Checks if the value of the field is `_0`"]
458 #[inline]
459 pub fn is_0(&self) -> bool {
460 *self == PDD8R::_0
461 }
462 #[doc = "Checks if the value of the field is `_1`"]
463 #[inline]
464 pub fn is_1(&self) -> bool {
465 *self == PDD8R::_1
466 }
467}
468#[doc = "Possible values of the field `PDD9`"]
469#[derive(Clone, Copy, Debug, PartialEq)]
470pub enum PDD9R {
471 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
472 _0,
473 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
474 _1,
475}
476impl PDD9R {
477 #[doc = r" Returns `true` if the bit is clear (0)"]
478 #[inline]
479 pub fn bit_is_clear(&self) -> bool {
480 !self.bit()
481 }
482 #[doc = r" Returns `true` if the bit is set (1)"]
483 #[inline]
484 pub fn bit_is_set(&self) -> bool {
485 self.bit()
486 }
487 #[doc = r" Value of the field as raw bits"]
488 #[inline]
489 pub fn bit(&self) -> bool {
490 match *self {
491 PDD9R::_0 => false,
492 PDD9R::_1 => true,
493 }
494 }
495 #[allow(missing_docs)]
496 #[doc(hidden)]
497 #[inline]
498 pub fn _from(value: bool) -> PDD9R {
499 match value {
500 false => PDD9R::_0,
501 true => PDD9R::_1,
502 }
503 }
504 #[doc = "Checks if the value of the field is `_0`"]
505 #[inline]
506 pub fn is_0(&self) -> bool {
507 *self == PDD9R::_0
508 }
509 #[doc = "Checks if the value of the field is `_1`"]
510 #[inline]
511 pub fn is_1(&self) -> bool {
512 *self == PDD9R::_1
513 }
514}
515#[doc = "Possible values of the field `PDD10`"]
516#[derive(Clone, Copy, Debug, PartialEq)]
517pub enum PDD10R {
518 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
519 _0,
520 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
521 _1,
522}
523impl PDD10R {
524 #[doc = r" Returns `true` if the bit is clear (0)"]
525 #[inline]
526 pub fn bit_is_clear(&self) -> bool {
527 !self.bit()
528 }
529 #[doc = r" Returns `true` if the bit is set (1)"]
530 #[inline]
531 pub fn bit_is_set(&self) -> bool {
532 self.bit()
533 }
534 #[doc = r" Value of the field as raw bits"]
535 #[inline]
536 pub fn bit(&self) -> bool {
537 match *self {
538 PDD10R::_0 => false,
539 PDD10R::_1 => true,
540 }
541 }
542 #[allow(missing_docs)]
543 #[doc(hidden)]
544 #[inline]
545 pub fn _from(value: bool) -> PDD10R {
546 match value {
547 false => PDD10R::_0,
548 true => PDD10R::_1,
549 }
550 }
551 #[doc = "Checks if the value of the field is `_0`"]
552 #[inline]
553 pub fn is_0(&self) -> bool {
554 *self == PDD10R::_0
555 }
556 #[doc = "Checks if the value of the field is `_1`"]
557 #[inline]
558 pub fn is_1(&self) -> bool {
559 *self == PDD10R::_1
560 }
561}
562#[doc = "Possible values of the field `PDD11`"]
563#[derive(Clone, Copy, Debug, PartialEq)]
564pub enum PDD11R {
565 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
566 _0,
567 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
568 _1,
569}
570impl PDD11R {
571 #[doc = r" Returns `true` if the bit is clear (0)"]
572 #[inline]
573 pub fn bit_is_clear(&self) -> bool {
574 !self.bit()
575 }
576 #[doc = r" Returns `true` if the bit is set (1)"]
577 #[inline]
578 pub fn bit_is_set(&self) -> bool {
579 self.bit()
580 }
581 #[doc = r" Value of the field as raw bits"]
582 #[inline]
583 pub fn bit(&self) -> bool {
584 match *self {
585 PDD11R::_0 => false,
586 PDD11R::_1 => true,
587 }
588 }
589 #[allow(missing_docs)]
590 #[doc(hidden)]
591 #[inline]
592 pub fn _from(value: bool) -> PDD11R {
593 match value {
594 false => PDD11R::_0,
595 true => PDD11R::_1,
596 }
597 }
598 #[doc = "Checks if the value of the field is `_0`"]
599 #[inline]
600 pub fn is_0(&self) -> bool {
601 *self == PDD11R::_0
602 }
603 #[doc = "Checks if the value of the field is `_1`"]
604 #[inline]
605 pub fn is_1(&self) -> bool {
606 *self == PDD11R::_1
607 }
608}
609#[doc = "Possible values of the field `PDD12`"]
610#[derive(Clone, Copy, Debug, PartialEq)]
611pub enum PDD12R {
612 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
613 _0,
614 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
615 _1,
616}
617impl PDD12R {
618 #[doc = r" Returns `true` if the bit is clear (0)"]
619 #[inline]
620 pub fn bit_is_clear(&self) -> bool {
621 !self.bit()
622 }
623 #[doc = r" Returns `true` if the bit is set (1)"]
624 #[inline]
625 pub fn bit_is_set(&self) -> bool {
626 self.bit()
627 }
628 #[doc = r" Value of the field as raw bits"]
629 #[inline]
630 pub fn bit(&self) -> bool {
631 match *self {
632 PDD12R::_0 => false,
633 PDD12R::_1 => true,
634 }
635 }
636 #[allow(missing_docs)]
637 #[doc(hidden)]
638 #[inline]
639 pub fn _from(value: bool) -> PDD12R {
640 match value {
641 false => PDD12R::_0,
642 true => PDD12R::_1,
643 }
644 }
645 #[doc = "Checks if the value of the field is `_0`"]
646 #[inline]
647 pub fn is_0(&self) -> bool {
648 *self == PDD12R::_0
649 }
650 #[doc = "Checks if the value of the field is `_1`"]
651 #[inline]
652 pub fn is_1(&self) -> bool {
653 *self == PDD12R::_1
654 }
655}
656#[doc = "Possible values of the field `PDD13`"]
657#[derive(Clone, Copy, Debug, PartialEq)]
658pub enum PDD13R {
659 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
660 _0,
661 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
662 _1,
663}
664impl PDD13R {
665 #[doc = r" Returns `true` if the bit is clear (0)"]
666 #[inline]
667 pub fn bit_is_clear(&self) -> bool {
668 !self.bit()
669 }
670 #[doc = r" Returns `true` if the bit is set (1)"]
671 #[inline]
672 pub fn bit_is_set(&self) -> bool {
673 self.bit()
674 }
675 #[doc = r" Value of the field as raw bits"]
676 #[inline]
677 pub fn bit(&self) -> bool {
678 match *self {
679 PDD13R::_0 => false,
680 PDD13R::_1 => true,
681 }
682 }
683 #[allow(missing_docs)]
684 #[doc(hidden)]
685 #[inline]
686 pub fn _from(value: bool) -> PDD13R {
687 match value {
688 false => PDD13R::_0,
689 true => PDD13R::_1,
690 }
691 }
692 #[doc = "Checks if the value of the field is `_0`"]
693 #[inline]
694 pub fn is_0(&self) -> bool {
695 *self == PDD13R::_0
696 }
697 #[doc = "Checks if the value of the field is `_1`"]
698 #[inline]
699 pub fn is_1(&self) -> bool {
700 *self == PDD13R::_1
701 }
702}
703#[doc = "Possible values of the field `PDD14`"]
704#[derive(Clone, Copy, Debug, PartialEq)]
705pub enum PDD14R {
706 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
707 _0,
708 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
709 _1,
710}
711impl PDD14R {
712 #[doc = r" Returns `true` if the bit is clear (0)"]
713 #[inline]
714 pub fn bit_is_clear(&self) -> bool {
715 !self.bit()
716 }
717 #[doc = r" Returns `true` if the bit is set (1)"]
718 #[inline]
719 pub fn bit_is_set(&self) -> bool {
720 self.bit()
721 }
722 #[doc = r" Value of the field as raw bits"]
723 #[inline]
724 pub fn bit(&self) -> bool {
725 match *self {
726 PDD14R::_0 => false,
727 PDD14R::_1 => true,
728 }
729 }
730 #[allow(missing_docs)]
731 #[doc(hidden)]
732 #[inline]
733 pub fn _from(value: bool) -> PDD14R {
734 match value {
735 false => PDD14R::_0,
736 true => PDD14R::_1,
737 }
738 }
739 #[doc = "Checks if the value of the field is `_0`"]
740 #[inline]
741 pub fn is_0(&self) -> bool {
742 *self == PDD14R::_0
743 }
744 #[doc = "Checks if the value of the field is `_1`"]
745 #[inline]
746 pub fn is_1(&self) -> bool {
747 *self == PDD14R::_1
748 }
749}
750#[doc = "Possible values of the field `PDD15`"]
751#[derive(Clone, Copy, Debug, PartialEq)]
752pub enum PDD15R {
753 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
754 _0,
755 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
756 _1,
757}
758impl PDD15R {
759 #[doc = r" Returns `true` if the bit is clear (0)"]
760 #[inline]
761 pub fn bit_is_clear(&self) -> bool {
762 !self.bit()
763 }
764 #[doc = r" Returns `true` if the bit is set (1)"]
765 #[inline]
766 pub fn bit_is_set(&self) -> bool {
767 self.bit()
768 }
769 #[doc = r" Value of the field as raw bits"]
770 #[inline]
771 pub fn bit(&self) -> bool {
772 match *self {
773 PDD15R::_0 => false,
774 PDD15R::_1 => true,
775 }
776 }
777 #[allow(missing_docs)]
778 #[doc(hidden)]
779 #[inline]
780 pub fn _from(value: bool) -> PDD15R {
781 match value {
782 false => PDD15R::_0,
783 true => PDD15R::_1,
784 }
785 }
786 #[doc = "Checks if the value of the field is `_0`"]
787 #[inline]
788 pub fn is_0(&self) -> bool {
789 *self == PDD15R::_0
790 }
791 #[doc = "Checks if the value of the field is `_1`"]
792 #[inline]
793 pub fn is_1(&self) -> bool {
794 *self == PDD15R::_1
795 }
796}
797#[doc = "Possible values of the field `PDD16`"]
798#[derive(Clone, Copy, Debug, PartialEq)]
799pub enum PDD16R {
800 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
801 _0,
802 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
803 _1,
804}
805impl PDD16R {
806 #[doc = r" Returns `true` if the bit is clear (0)"]
807 #[inline]
808 pub fn bit_is_clear(&self) -> bool {
809 !self.bit()
810 }
811 #[doc = r" Returns `true` if the bit is set (1)"]
812 #[inline]
813 pub fn bit_is_set(&self) -> bool {
814 self.bit()
815 }
816 #[doc = r" Value of the field as raw bits"]
817 #[inline]
818 pub fn bit(&self) -> bool {
819 match *self {
820 PDD16R::_0 => false,
821 PDD16R::_1 => true,
822 }
823 }
824 #[allow(missing_docs)]
825 #[doc(hidden)]
826 #[inline]
827 pub fn _from(value: bool) -> PDD16R {
828 match value {
829 false => PDD16R::_0,
830 true => PDD16R::_1,
831 }
832 }
833 #[doc = "Checks if the value of the field is `_0`"]
834 #[inline]
835 pub fn is_0(&self) -> bool {
836 *self == PDD16R::_0
837 }
838 #[doc = "Checks if the value of the field is `_1`"]
839 #[inline]
840 pub fn is_1(&self) -> bool {
841 *self == PDD16R::_1
842 }
843}
844#[doc = "Possible values of the field `PDD17`"]
845#[derive(Clone, Copy, Debug, PartialEq)]
846pub enum PDD17R {
847 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
848 _0,
849 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
850 _1,
851}
852impl PDD17R {
853 #[doc = r" Returns `true` if the bit is clear (0)"]
854 #[inline]
855 pub fn bit_is_clear(&self) -> bool {
856 !self.bit()
857 }
858 #[doc = r" Returns `true` if the bit is set (1)"]
859 #[inline]
860 pub fn bit_is_set(&self) -> bool {
861 self.bit()
862 }
863 #[doc = r" Value of the field as raw bits"]
864 #[inline]
865 pub fn bit(&self) -> bool {
866 match *self {
867 PDD17R::_0 => false,
868 PDD17R::_1 => true,
869 }
870 }
871 #[allow(missing_docs)]
872 #[doc(hidden)]
873 #[inline]
874 pub fn _from(value: bool) -> PDD17R {
875 match value {
876 false => PDD17R::_0,
877 true => PDD17R::_1,
878 }
879 }
880 #[doc = "Checks if the value of the field is `_0`"]
881 #[inline]
882 pub fn is_0(&self) -> bool {
883 *self == PDD17R::_0
884 }
885 #[doc = "Checks if the value of the field is `_1`"]
886 #[inline]
887 pub fn is_1(&self) -> bool {
888 *self == PDD17R::_1
889 }
890}
891#[doc = "Possible values of the field `PDD18`"]
892#[derive(Clone, Copy, Debug, PartialEq)]
893pub enum PDD18R {
894 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
895 _0,
896 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
897 _1,
898}
899impl PDD18R {
900 #[doc = r" Returns `true` if the bit is clear (0)"]
901 #[inline]
902 pub fn bit_is_clear(&self) -> bool {
903 !self.bit()
904 }
905 #[doc = r" Returns `true` if the bit is set (1)"]
906 #[inline]
907 pub fn bit_is_set(&self) -> bool {
908 self.bit()
909 }
910 #[doc = r" Value of the field as raw bits"]
911 #[inline]
912 pub fn bit(&self) -> bool {
913 match *self {
914 PDD18R::_0 => false,
915 PDD18R::_1 => true,
916 }
917 }
918 #[allow(missing_docs)]
919 #[doc(hidden)]
920 #[inline]
921 pub fn _from(value: bool) -> PDD18R {
922 match value {
923 false => PDD18R::_0,
924 true => PDD18R::_1,
925 }
926 }
927 #[doc = "Checks if the value of the field is `_0`"]
928 #[inline]
929 pub fn is_0(&self) -> bool {
930 *self == PDD18R::_0
931 }
932 #[doc = "Checks if the value of the field is `_1`"]
933 #[inline]
934 pub fn is_1(&self) -> bool {
935 *self == PDD18R::_1
936 }
937}
938#[doc = "Possible values of the field `PDD19`"]
939#[derive(Clone, Copy, Debug, PartialEq)]
940pub enum PDD19R {
941 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
942 _0,
943 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
944 _1,
945}
946impl PDD19R {
947 #[doc = r" Returns `true` if the bit is clear (0)"]
948 #[inline]
949 pub fn bit_is_clear(&self) -> bool {
950 !self.bit()
951 }
952 #[doc = r" Returns `true` if the bit is set (1)"]
953 #[inline]
954 pub fn bit_is_set(&self) -> bool {
955 self.bit()
956 }
957 #[doc = r" Value of the field as raw bits"]
958 #[inline]
959 pub fn bit(&self) -> bool {
960 match *self {
961 PDD19R::_0 => false,
962 PDD19R::_1 => true,
963 }
964 }
965 #[allow(missing_docs)]
966 #[doc(hidden)]
967 #[inline]
968 pub fn _from(value: bool) -> PDD19R {
969 match value {
970 false => PDD19R::_0,
971 true => PDD19R::_1,
972 }
973 }
974 #[doc = "Checks if the value of the field is `_0`"]
975 #[inline]
976 pub fn is_0(&self) -> bool {
977 *self == PDD19R::_0
978 }
979 #[doc = "Checks if the value of the field is `_1`"]
980 #[inline]
981 pub fn is_1(&self) -> bool {
982 *self == PDD19R::_1
983 }
984}
985#[doc = "Possible values of the field `PDD20`"]
986#[derive(Clone, Copy, Debug, PartialEq)]
987pub enum PDD20R {
988 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
989 _0,
990 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
991 _1,
992}
993impl PDD20R {
994 #[doc = r" Returns `true` if the bit is clear (0)"]
995 #[inline]
996 pub fn bit_is_clear(&self) -> bool {
997 !self.bit()
998 }
999 #[doc = r" Returns `true` if the bit is set (1)"]
1000 #[inline]
1001 pub fn bit_is_set(&self) -> bool {
1002 self.bit()
1003 }
1004 #[doc = r" Value of the field as raw bits"]
1005 #[inline]
1006 pub fn bit(&self) -> bool {
1007 match *self {
1008 PDD20R::_0 => false,
1009 PDD20R::_1 => true,
1010 }
1011 }
1012 #[allow(missing_docs)]
1013 #[doc(hidden)]
1014 #[inline]
1015 pub fn _from(value: bool) -> PDD20R {
1016 match value {
1017 false => PDD20R::_0,
1018 true => PDD20R::_1,
1019 }
1020 }
1021 #[doc = "Checks if the value of the field is `_0`"]
1022 #[inline]
1023 pub fn is_0(&self) -> bool {
1024 *self == PDD20R::_0
1025 }
1026 #[doc = "Checks if the value of the field is `_1`"]
1027 #[inline]
1028 pub fn is_1(&self) -> bool {
1029 *self == PDD20R::_1
1030 }
1031}
1032#[doc = "Possible values of the field `PDD21`"]
1033#[derive(Clone, Copy, Debug, PartialEq)]
1034pub enum PDD21R {
1035 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1036 _0,
1037 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1038 _1,
1039}
1040impl PDD21R {
1041 #[doc = r" Returns `true` if the bit is clear (0)"]
1042 #[inline]
1043 pub fn bit_is_clear(&self) -> bool {
1044 !self.bit()
1045 }
1046 #[doc = r" Returns `true` if the bit is set (1)"]
1047 #[inline]
1048 pub fn bit_is_set(&self) -> bool {
1049 self.bit()
1050 }
1051 #[doc = r" Value of the field as raw bits"]
1052 #[inline]
1053 pub fn bit(&self) -> bool {
1054 match *self {
1055 PDD21R::_0 => false,
1056 PDD21R::_1 => true,
1057 }
1058 }
1059 #[allow(missing_docs)]
1060 #[doc(hidden)]
1061 #[inline]
1062 pub fn _from(value: bool) -> PDD21R {
1063 match value {
1064 false => PDD21R::_0,
1065 true => PDD21R::_1,
1066 }
1067 }
1068 #[doc = "Checks if the value of the field is `_0`"]
1069 #[inline]
1070 pub fn is_0(&self) -> bool {
1071 *self == PDD21R::_0
1072 }
1073 #[doc = "Checks if the value of the field is `_1`"]
1074 #[inline]
1075 pub fn is_1(&self) -> bool {
1076 *self == PDD21R::_1
1077 }
1078}
1079#[doc = "Possible values of the field `PDD22`"]
1080#[derive(Clone, Copy, Debug, PartialEq)]
1081pub enum PDD22R {
1082 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1083 _0,
1084 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1085 _1,
1086}
1087impl PDD22R {
1088 #[doc = r" Returns `true` if the bit is clear (0)"]
1089 #[inline]
1090 pub fn bit_is_clear(&self) -> bool {
1091 !self.bit()
1092 }
1093 #[doc = r" Returns `true` if the bit is set (1)"]
1094 #[inline]
1095 pub fn bit_is_set(&self) -> bool {
1096 self.bit()
1097 }
1098 #[doc = r" Value of the field as raw bits"]
1099 #[inline]
1100 pub fn bit(&self) -> bool {
1101 match *self {
1102 PDD22R::_0 => false,
1103 PDD22R::_1 => true,
1104 }
1105 }
1106 #[allow(missing_docs)]
1107 #[doc(hidden)]
1108 #[inline]
1109 pub fn _from(value: bool) -> PDD22R {
1110 match value {
1111 false => PDD22R::_0,
1112 true => PDD22R::_1,
1113 }
1114 }
1115 #[doc = "Checks if the value of the field is `_0`"]
1116 #[inline]
1117 pub fn is_0(&self) -> bool {
1118 *self == PDD22R::_0
1119 }
1120 #[doc = "Checks if the value of the field is `_1`"]
1121 #[inline]
1122 pub fn is_1(&self) -> bool {
1123 *self == PDD22R::_1
1124 }
1125}
1126#[doc = "Possible values of the field `PDD23`"]
1127#[derive(Clone, Copy, Debug, PartialEq)]
1128pub enum PDD23R {
1129 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1130 _0,
1131 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1132 _1,
1133}
1134impl PDD23R {
1135 #[doc = r" Returns `true` if the bit is clear (0)"]
1136 #[inline]
1137 pub fn bit_is_clear(&self) -> bool {
1138 !self.bit()
1139 }
1140 #[doc = r" Returns `true` if the bit is set (1)"]
1141 #[inline]
1142 pub fn bit_is_set(&self) -> bool {
1143 self.bit()
1144 }
1145 #[doc = r" Value of the field as raw bits"]
1146 #[inline]
1147 pub fn bit(&self) -> bool {
1148 match *self {
1149 PDD23R::_0 => false,
1150 PDD23R::_1 => true,
1151 }
1152 }
1153 #[allow(missing_docs)]
1154 #[doc(hidden)]
1155 #[inline]
1156 pub fn _from(value: bool) -> PDD23R {
1157 match value {
1158 false => PDD23R::_0,
1159 true => PDD23R::_1,
1160 }
1161 }
1162 #[doc = "Checks if the value of the field is `_0`"]
1163 #[inline]
1164 pub fn is_0(&self) -> bool {
1165 *self == PDD23R::_0
1166 }
1167 #[doc = "Checks if the value of the field is `_1`"]
1168 #[inline]
1169 pub fn is_1(&self) -> bool {
1170 *self == PDD23R::_1
1171 }
1172}
1173#[doc = "Possible values of the field `PDD24`"]
1174#[derive(Clone, Copy, Debug, PartialEq)]
1175pub enum PDD24R {
1176 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1177 _0,
1178 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1179 _1,
1180}
1181impl PDD24R {
1182 #[doc = r" Returns `true` if the bit is clear (0)"]
1183 #[inline]
1184 pub fn bit_is_clear(&self) -> bool {
1185 !self.bit()
1186 }
1187 #[doc = r" Returns `true` if the bit is set (1)"]
1188 #[inline]
1189 pub fn bit_is_set(&self) -> bool {
1190 self.bit()
1191 }
1192 #[doc = r" Value of the field as raw bits"]
1193 #[inline]
1194 pub fn bit(&self) -> bool {
1195 match *self {
1196 PDD24R::_0 => false,
1197 PDD24R::_1 => true,
1198 }
1199 }
1200 #[allow(missing_docs)]
1201 #[doc(hidden)]
1202 #[inline]
1203 pub fn _from(value: bool) -> PDD24R {
1204 match value {
1205 false => PDD24R::_0,
1206 true => PDD24R::_1,
1207 }
1208 }
1209 #[doc = "Checks if the value of the field is `_0`"]
1210 #[inline]
1211 pub fn is_0(&self) -> bool {
1212 *self == PDD24R::_0
1213 }
1214 #[doc = "Checks if the value of the field is `_1`"]
1215 #[inline]
1216 pub fn is_1(&self) -> bool {
1217 *self == PDD24R::_1
1218 }
1219}
1220#[doc = "Possible values of the field `PDD25`"]
1221#[derive(Clone, Copy, Debug, PartialEq)]
1222pub enum PDD25R {
1223 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1224 _0,
1225 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1226 _1,
1227}
1228impl PDD25R {
1229 #[doc = r" Returns `true` if the bit is clear (0)"]
1230 #[inline]
1231 pub fn bit_is_clear(&self) -> bool {
1232 !self.bit()
1233 }
1234 #[doc = r" Returns `true` if the bit is set (1)"]
1235 #[inline]
1236 pub fn bit_is_set(&self) -> bool {
1237 self.bit()
1238 }
1239 #[doc = r" Value of the field as raw bits"]
1240 #[inline]
1241 pub fn bit(&self) -> bool {
1242 match *self {
1243 PDD25R::_0 => false,
1244 PDD25R::_1 => true,
1245 }
1246 }
1247 #[allow(missing_docs)]
1248 #[doc(hidden)]
1249 #[inline]
1250 pub fn _from(value: bool) -> PDD25R {
1251 match value {
1252 false => PDD25R::_0,
1253 true => PDD25R::_1,
1254 }
1255 }
1256 #[doc = "Checks if the value of the field is `_0`"]
1257 #[inline]
1258 pub fn is_0(&self) -> bool {
1259 *self == PDD25R::_0
1260 }
1261 #[doc = "Checks if the value of the field is `_1`"]
1262 #[inline]
1263 pub fn is_1(&self) -> bool {
1264 *self == PDD25R::_1
1265 }
1266}
1267#[doc = "Possible values of the field `PDD26`"]
1268#[derive(Clone, Copy, Debug, PartialEq)]
1269pub enum PDD26R {
1270 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1271 _0,
1272 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1273 _1,
1274}
1275impl PDD26R {
1276 #[doc = r" Returns `true` if the bit is clear (0)"]
1277 #[inline]
1278 pub fn bit_is_clear(&self) -> bool {
1279 !self.bit()
1280 }
1281 #[doc = r" Returns `true` if the bit is set (1)"]
1282 #[inline]
1283 pub fn bit_is_set(&self) -> bool {
1284 self.bit()
1285 }
1286 #[doc = r" Value of the field as raw bits"]
1287 #[inline]
1288 pub fn bit(&self) -> bool {
1289 match *self {
1290 PDD26R::_0 => false,
1291 PDD26R::_1 => true,
1292 }
1293 }
1294 #[allow(missing_docs)]
1295 #[doc(hidden)]
1296 #[inline]
1297 pub fn _from(value: bool) -> PDD26R {
1298 match value {
1299 false => PDD26R::_0,
1300 true => PDD26R::_1,
1301 }
1302 }
1303 #[doc = "Checks if the value of the field is `_0`"]
1304 #[inline]
1305 pub fn is_0(&self) -> bool {
1306 *self == PDD26R::_0
1307 }
1308 #[doc = "Checks if the value of the field is `_1`"]
1309 #[inline]
1310 pub fn is_1(&self) -> bool {
1311 *self == PDD26R::_1
1312 }
1313}
1314#[doc = "Possible values of the field `PDD27`"]
1315#[derive(Clone, Copy, Debug, PartialEq)]
1316pub enum PDD27R {
1317 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1318 _0,
1319 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1320 _1,
1321}
1322impl PDD27R {
1323 #[doc = r" Returns `true` if the bit is clear (0)"]
1324 #[inline]
1325 pub fn bit_is_clear(&self) -> bool {
1326 !self.bit()
1327 }
1328 #[doc = r" Returns `true` if the bit is set (1)"]
1329 #[inline]
1330 pub fn bit_is_set(&self) -> bool {
1331 self.bit()
1332 }
1333 #[doc = r" Value of the field as raw bits"]
1334 #[inline]
1335 pub fn bit(&self) -> bool {
1336 match *self {
1337 PDD27R::_0 => false,
1338 PDD27R::_1 => true,
1339 }
1340 }
1341 #[allow(missing_docs)]
1342 #[doc(hidden)]
1343 #[inline]
1344 pub fn _from(value: bool) -> PDD27R {
1345 match value {
1346 false => PDD27R::_0,
1347 true => PDD27R::_1,
1348 }
1349 }
1350 #[doc = "Checks if the value of the field is `_0`"]
1351 #[inline]
1352 pub fn is_0(&self) -> bool {
1353 *self == PDD27R::_0
1354 }
1355 #[doc = "Checks if the value of the field is `_1`"]
1356 #[inline]
1357 pub fn is_1(&self) -> bool {
1358 *self == PDD27R::_1
1359 }
1360}
1361#[doc = "Possible values of the field `PDD28`"]
1362#[derive(Clone, Copy, Debug, PartialEq)]
1363pub enum PDD28R {
1364 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1365 _0,
1366 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1367 _1,
1368}
1369impl PDD28R {
1370 #[doc = r" Returns `true` if the bit is clear (0)"]
1371 #[inline]
1372 pub fn bit_is_clear(&self) -> bool {
1373 !self.bit()
1374 }
1375 #[doc = r" Returns `true` if the bit is set (1)"]
1376 #[inline]
1377 pub fn bit_is_set(&self) -> bool {
1378 self.bit()
1379 }
1380 #[doc = r" Value of the field as raw bits"]
1381 #[inline]
1382 pub fn bit(&self) -> bool {
1383 match *self {
1384 PDD28R::_0 => false,
1385 PDD28R::_1 => true,
1386 }
1387 }
1388 #[allow(missing_docs)]
1389 #[doc(hidden)]
1390 #[inline]
1391 pub fn _from(value: bool) -> PDD28R {
1392 match value {
1393 false => PDD28R::_0,
1394 true => PDD28R::_1,
1395 }
1396 }
1397 #[doc = "Checks if the value of the field is `_0`"]
1398 #[inline]
1399 pub fn is_0(&self) -> bool {
1400 *self == PDD28R::_0
1401 }
1402 #[doc = "Checks if the value of the field is `_1`"]
1403 #[inline]
1404 pub fn is_1(&self) -> bool {
1405 *self == PDD28R::_1
1406 }
1407}
1408#[doc = "Possible values of the field `PDD29`"]
1409#[derive(Clone, Copy, Debug, PartialEq)]
1410pub enum PDD29R {
1411 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1412 _0,
1413 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1414 _1,
1415}
1416impl PDD29R {
1417 #[doc = r" Returns `true` if the bit is clear (0)"]
1418 #[inline]
1419 pub fn bit_is_clear(&self) -> bool {
1420 !self.bit()
1421 }
1422 #[doc = r" Returns `true` if the bit is set (1)"]
1423 #[inline]
1424 pub fn bit_is_set(&self) -> bool {
1425 self.bit()
1426 }
1427 #[doc = r" Value of the field as raw bits"]
1428 #[inline]
1429 pub fn bit(&self) -> bool {
1430 match *self {
1431 PDD29R::_0 => false,
1432 PDD29R::_1 => true,
1433 }
1434 }
1435 #[allow(missing_docs)]
1436 #[doc(hidden)]
1437 #[inline]
1438 pub fn _from(value: bool) -> PDD29R {
1439 match value {
1440 false => PDD29R::_0,
1441 true => PDD29R::_1,
1442 }
1443 }
1444 #[doc = "Checks if the value of the field is `_0`"]
1445 #[inline]
1446 pub fn is_0(&self) -> bool {
1447 *self == PDD29R::_0
1448 }
1449 #[doc = "Checks if the value of the field is `_1`"]
1450 #[inline]
1451 pub fn is_1(&self) -> bool {
1452 *self == PDD29R::_1
1453 }
1454}
1455#[doc = "Possible values of the field `PDD30`"]
1456#[derive(Clone, Copy, Debug, PartialEq)]
1457pub enum PDD30R {
1458 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1459 _0,
1460 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1461 _1,
1462}
1463impl PDD30R {
1464 #[doc = r" Returns `true` if the bit is clear (0)"]
1465 #[inline]
1466 pub fn bit_is_clear(&self) -> bool {
1467 !self.bit()
1468 }
1469 #[doc = r" Returns `true` if the bit is set (1)"]
1470 #[inline]
1471 pub fn bit_is_set(&self) -> bool {
1472 self.bit()
1473 }
1474 #[doc = r" Value of the field as raw bits"]
1475 #[inline]
1476 pub fn bit(&self) -> bool {
1477 match *self {
1478 PDD30R::_0 => false,
1479 PDD30R::_1 => true,
1480 }
1481 }
1482 #[allow(missing_docs)]
1483 #[doc(hidden)]
1484 #[inline]
1485 pub fn _from(value: bool) -> PDD30R {
1486 match value {
1487 false => PDD30R::_0,
1488 true => PDD30R::_1,
1489 }
1490 }
1491 #[doc = "Checks if the value of the field is `_0`"]
1492 #[inline]
1493 pub fn is_0(&self) -> bool {
1494 *self == PDD30R::_0
1495 }
1496 #[doc = "Checks if the value of the field is `_1`"]
1497 #[inline]
1498 pub fn is_1(&self) -> bool {
1499 *self == PDD30R::_1
1500 }
1501}
1502#[doc = "Possible values of the field `PDD31`"]
1503#[derive(Clone, Copy, Debug, PartialEq)]
1504pub enum PDD31R {
1505 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1506 _0,
1507 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1508 _1,
1509}
1510impl PDD31R {
1511 #[doc = r" Returns `true` if the bit is clear (0)"]
1512 #[inline]
1513 pub fn bit_is_clear(&self) -> bool {
1514 !self.bit()
1515 }
1516 #[doc = r" Returns `true` if the bit is set (1)"]
1517 #[inline]
1518 pub fn bit_is_set(&self) -> bool {
1519 self.bit()
1520 }
1521 #[doc = r" Value of the field as raw bits"]
1522 #[inline]
1523 pub fn bit(&self) -> bool {
1524 match *self {
1525 PDD31R::_0 => false,
1526 PDD31R::_1 => true,
1527 }
1528 }
1529 #[allow(missing_docs)]
1530 #[doc(hidden)]
1531 #[inline]
1532 pub fn _from(value: bool) -> PDD31R {
1533 match value {
1534 false => PDD31R::_0,
1535 true => PDD31R::_1,
1536 }
1537 }
1538 #[doc = "Checks if the value of the field is `_0`"]
1539 #[inline]
1540 pub fn is_0(&self) -> bool {
1541 *self == PDD31R::_0
1542 }
1543 #[doc = "Checks if the value of the field is `_1`"]
1544 #[inline]
1545 pub fn is_1(&self) -> bool {
1546 *self == PDD31R::_1
1547 }
1548}
1549#[doc = "Values that can be written to the field `PDD0`"]
1550pub enum PDD0W {
1551 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1552 _0,
1553 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1554 _1,
1555}
1556impl PDD0W {
1557 #[allow(missing_docs)]
1558 #[doc(hidden)]
1559 #[inline]
1560 pub fn _bits(&self) -> bool {
1561 match *self {
1562 PDD0W::_0 => false,
1563 PDD0W::_1 => true,
1564 }
1565 }
1566}
1567#[doc = r" Proxy"]
1568pub struct _PDD0W<'a> {
1569 w: &'a mut W,
1570}
1571impl<'a> _PDD0W<'a> {
1572 #[doc = r" Writes `variant` to the field"]
1573 #[inline]
1574 pub fn variant(self, variant: PDD0W) -> &'a mut W {
1575 {
1576 self.bit(variant._bits())
1577 }
1578 }
1579 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1580 #[inline]
1581 pub fn _0(self) -> &'a mut W {
1582 self.variant(PDD0W::_0)
1583 }
1584 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1585 #[inline]
1586 pub fn _1(self) -> &'a mut W {
1587 self.variant(PDD0W::_1)
1588 }
1589 #[doc = r" Sets the field bit"]
1590 pub fn set_bit(self) -> &'a mut W {
1591 self.bit(true)
1592 }
1593 #[doc = r" Clears the field bit"]
1594 pub fn clear_bit(self) -> &'a mut W {
1595 self.bit(false)
1596 }
1597 #[doc = r" Writes raw bits to the field"]
1598 #[inline]
1599 pub fn bit(self, value: bool) -> &'a mut W {
1600 const MASK: bool = true;
1601 const OFFSET: u8 = 0;
1602 self.w.bits &= !((MASK as u32) << OFFSET);
1603 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1604 self.w
1605 }
1606}
1607#[doc = "Values that can be written to the field `PDD1`"]
1608pub enum PDD1W {
1609 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1610 _0,
1611 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1612 _1,
1613}
1614impl PDD1W {
1615 #[allow(missing_docs)]
1616 #[doc(hidden)]
1617 #[inline]
1618 pub fn _bits(&self) -> bool {
1619 match *self {
1620 PDD1W::_0 => false,
1621 PDD1W::_1 => true,
1622 }
1623 }
1624}
1625#[doc = r" Proxy"]
1626pub struct _PDD1W<'a> {
1627 w: &'a mut W,
1628}
1629impl<'a> _PDD1W<'a> {
1630 #[doc = r" Writes `variant` to the field"]
1631 #[inline]
1632 pub fn variant(self, variant: PDD1W) -> &'a mut W {
1633 {
1634 self.bit(variant._bits())
1635 }
1636 }
1637 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1638 #[inline]
1639 pub fn _0(self) -> &'a mut W {
1640 self.variant(PDD1W::_0)
1641 }
1642 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1643 #[inline]
1644 pub fn _1(self) -> &'a mut W {
1645 self.variant(PDD1W::_1)
1646 }
1647 #[doc = r" Sets the field bit"]
1648 pub fn set_bit(self) -> &'a mut W {
1649 self.bit(true)
1650 }
1651 #[doc = r" Clears the field bit"]
1652 pub fn clear_bit(self) -> &'a mut W {
1653 self.bit(false)
1654 }
1655 #[doc = r" Writes raw bits to the field"]
1656 #[inline]
1657 pub fn bit(self, value: bool) -> &'a mut W {
1658 const MASK: bool = true;
1659 const OFFSET: u8 = 1;
1660 self.w.bits &= !((MASK as u32) << OFFSET);
1661 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1662 self.w
1663 }
1664}
1665#[doc = "Values that can be written to the field `PDD2`"]
1666pub enum PDD2W {
1667 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1668 _0,
1669 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1670 _1,
1671}
1672impl PDD2W {
1673 #[allow(missing_docs)]
1674 #[doc(hidden)]
1675 #[inline]
1676 pub fn _bits(&self) -> bool {
1677 match *self {
1678 PDD2W::_0 => false,
1679 PDD2W::_1 => true,
1680 }
1681 }
1682}
1683#[doc = r" Proxy"]
1684pub struct _PDD2W<'a> {
1685 w: &'a mut W,
1686}
1687impl<'a> _PDD2W<'a> {
1688 #[doc = r" Writes `variant` to the field"]
1689 #[inline]
1690 pub fn variant(self, variant: PDD2W) -> &'a mut W {
1691 {
1692 self.bit(variant._bits())
1693 }
1694 }
1695 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1696 #[inline]
1697 pub fn _0(self) -> &'a mut W {
1698 self.variant(PDD2W::_0)
1699 }
1700 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1701 #[inline]
1702 pub fn _1(self) -> &'a mut W {
1703 self.variant(PDD2W::_1)
1704 }
1705 #[doc = r" Sets the field bit"]
1706 pub fn set_bit(self) -> &'a mut W {
1707 self.bit(true)
1708 }
1709 #[doc = r" Clears the field bit"]
1710 pub fn clear_bit(self) -> &'a mut W {
1711 self.bit(false)
1712 }
1713 #[doc = r" Writes raw bits to the field"]
1714 #[inline]
1715 pub fn bit(self, value: bool) -> &'a mut W {
1716 const MASK: bool = true;
1717 const OFFSET: u8 = 2;
1718 self.w.bits &= !((MASK as u32) << OFFSET);
1719 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1720 self.w
1721 }
1722}
1723#[doc = "Values that can be written to the field `PDD3`"]
1724pub enum PDD3W {
1725 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1726 _0,
1727 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1728 _1,
1729}
1730impl PDD3W {
1731 #[allow(missing_docs)]
1732 #[doc(hidden)]
1733 #[inline]
1734 pub fn _bits(&self) -> bool {
1735 match *self {
1736 PDD3W::_0 => false,
1737 PDD3W::_1 => true,
1738 }
1739 }
1740}
1741#[doc = r" Proxy"]
1742pub struct _PDD3W<'a> {
1743 w: &'a mut W,
1744}
1745impl<'a> _PDD3W<'a> {
1746 #[doc = r" Writes `variant` to the field"]
1747 #[inline]
1748 pub fn variant(self, variant: PDD3W) -> &'a mut W {
1749 {
1750 self.bit(variant._bits())
1751 }
1752 }
1753 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1754 #[inline]
1755 pub fn _0(self) -> &'a mut W {
1756 self.variant(PDD3W::_0)
1757 }
1758 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1759 #[inline]
1760 pub fn _1(self) -> &'a mut W {
1761 self.variant(PDD3W::_1)
1762 }
1763 #[doc = r" Sets the field bit"]
1764 pub fn set_bit(self) -> &'a mut W {
1765 self.bit(true)
1766 }
1767 #[doc = r" Clears the field bit"]
1768 pub fn clear_bit(self) -> &'a mut W {
1769 self.bit(false)
1770 }
1771 #[doc = r" Writes raw bits to the field"]
1772 #[inline]
1773 pub fn bit(self, value: bool) -> &'a mut W {
1774 const MASK: bool = true;
1775 const OFFSET: u8 = 3;
1776 self.w.bits &= !((MASK as u32) << OFFSET);
1777 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1778 self.w
1779 }
1780}
1781#[doc = "Values that can be written to the field `PDD4`"]
1782pub enum PDD4W {
1783 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1784 _0,
1785 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1786 _1,
1787}
1788impl PDD4W {
1789 #[allow(missing_docs)]
1790 #[doc(hidden)]
1791 #[inline]
1792 pub fn _bits(&self) -> bool {
1793 match *self {
1794 PDD4W::_0 => false,
1795 PDD4W::_1 => true,
1796 }
1797 }
1798}
1799#[doc = r" Proxy"]
1800pub struct _PDD4W<'a> {
1801 w: &'a mut W,
1802}
1803impl<'a> _PDD4W<'a> {
1804 #[doc = r" Writes `variant` to the field"]
1805 #[inline]
1806 pub fn variant(self, variant: PDD4W) -> &'a mut W {
1807 {
1808 self.bit(variant._bits())
1809 }
1810 }
1811 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1812 #[inline]
1813 pub fn _0(self) -> &'a mut W {
1814 self.variant(PDD4W::_0)
1815 }
1816 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1817 #[inline]
1818 pub fn _1(self) -> &'a mut W {
1819 self.variant(PDD4W::_1)
1820 }
1821 #[doc = r" Sets the field bit"]
1822 pub fn set_bit(self) -> &'a mut W {
1823 self.bit(true)
1824 }
1825 #[doc = r" Clears the field bit"]
1826 pub fn clear_bit(self) -> &'a mut W {
1827 self.bit(false)
1828 }
1829 #[doc = r" Writes raw bits to the field"]
1830 #[inline]
1831 pub fn bit(self, value: bool) -> &'a mut W {
1832 const MASK: bool = true;
1833 const OFFSET: u8 = 4;
1834 self.w.bits &= !((MASK as u32) << OFFSET);
1835 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1836 self.w
1837 }
1838}
1839#[doc = "Values that can be written to the field `PDD5`"]
1840pub enum PDD5W {
1841 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1842 _0,
1843 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1844 _1,
1845}
1846impl PDD5W {
1847 #[allow(missing_docs)]
1848 #[doc(hidden)]
1849 #[inline]
1850 pub fn _bits(&self) -> bool {
1851 match *self {
1852 PDD5W::_0 => false,
1853 PDD5W::_1 => true,
1854 }
1855 }
1856}
1857#[doc = r" Proxy"]
1858pub struct _PDD5W<'a> {
1859 w: &'a mut W,
1860}
1861impl<'a> _PDD5W<'a> {
1862 #[doc = r" Writes `variant` to the field"]
1863 #[inline]
1864 pub fn variant(self, variant: PDD5W) -> &'a mut W {
1865 {
1866 self.bit(variant._bits())
1867 }
1868 }
1869 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1870 #[inline]
1871 pub fn _0(self) -> &'a mut W {
1872 self.variant(PDD5W::_0)
1873 }
1874 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1875 #[inline]
1876 pub fn _1(self) -> &'a mut W {
1877 self.variant(PDD5W::_1)
1878 }
1879 #[doc = r" Sets the field bit"]
1880 pub fn set_bit(self) -> &'a mut W {
1881 self.bit(true)
1882 }
1883 #[doc = r" Clears the field bit"]
1884 pub fn clear_bit(self) -> &'a mut W {
1885 self.bit(false)
1886 }
1887 #[doc = r" Writes raw bits to the field"]
1888 #[inline]
1889 pub fn bit(self, value: bool) -> &'a mut W {
1890 const MASK: bool = true;
1891 const OFFSET: u8 = 5;
1892 self.w.bits &= !((MASK as u32) << OFFSET);
1893 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1894 self.w
1895 }
1896}
1897#[doc = "Values that can be written to the field `PDD6`"]
1898pub enum PDD6W {
1899 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1900 _0,
1901 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1902 _1,
1903}
1904impl PDD6W {
1905 #[allow(missing_docs)]
1906 #[doc(hidden)]
1907 #[inline]
1908 pub fn _bits(&self) -> bool {
1909 match *self {
1910 PDD6W::_0 => false,
1911 PDD6W::_1 => true,
1912 }
1913 }
1914}
1915#[doc = r" Proxy"]
1916pub struct _PDD6W<'a> {
1917 w: &'a mut W,
1918}
1919impl<'a> _PDD6W<'a> {
1920 #[doc = r" Writes `variant` to the field"]
1921 #[inline]
1922 pub fn variant(self, variant: PDD6W) -> &'a mut W {
1923 {
1924 self.bit(variant._bits())
1925 }
1926 }
1927 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1928 #[inline]
1929 pub fn _0(self) -> &'a mut W {
1930 self.variant(PDD6W::_0)
1931 }
1932 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1933 #[inline]
1934 pub fn _1(self) -> &'a mut W {
1935 self.variant(PDD6W::_1)
1936 }
1937 #[doc = r" Sets the field bit"]
1938 pub fn set_bit(self) -> &'a mut W {
1939 self.bit(true)
1940 }
1941 #[doc = r" Clears the field bit"]
1942 pub fn clear_bit(self) -> &'a mut W {
1943 self.bit(false)
1944 }
1945 #[doc = r" Writes raw bits to the field"]
1946 #[inline]
1947 pub fn bit(self, value: bool) -> &'a mut W {
1948 const MASK: bool = true;
1949 const OFFSET: u8 = 6;
1950 self.w.bits &= !((MASK as u32) << OFFSET);
1951 self.w.bits |= ((value & MASK) as u32) << OFFSET;
1952 self.w
1953 }
1954}
1955#[doc = "Values that can be written to the field `PDD7`"]
1956pub enum PDD7W {
1957 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1958 _0,
1959 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1960 _1,
1961}
1962impl PDD7W {
1963 #[allow(missing_docs)]
1964 #[doc(hidden)]
1965 #[inline]
1966 pub fn _bits(&self) -> bool {
1967 match *self {
1968 PDD7W::_0 => false,
1969 PDD7W::_1 => true,
1970 }
1971 }
1972}
1973#[doc = r" Proxy"]
1974pub struct _PDD7W<'a> {
1975 w: &'a mut W,
1976}
1977impl<'a> _PDD7W<'a> {
1978 #[doc = r" Writes `variant` to the field"]
1979 #[inline]
1980 pub fn variant(self, variant: PDD7W) -> &'a mut W {
1981 {
1982 self.bit(variant._bits())
1983 }
1984 }
1985 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
1986 #[inline]
1987 pub fn _0(self) -> &'a mut W {
1988 self.variant(PDD7W::_0)
1989 }
1990 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
1991 #[inline]
1992 pub fn _1(self) -> &'a mut W {
1993 self.variant(PDD7W::_1)
1994 }
1995 #[doc = r" Sets the field bit"]
1996 pub fn set_bit(self) -> &'a mut W {
1997 self.bit(true)
1998 }
1999 #[doc = r" Clears the field bit"]
2000 pub fn clear_bit(self) -> &'a mut W {
2001 self.bit(false)
2002 }
2003 #[doc = r" Writes raw bits to the field"]
2004 #[inline]
2005 pub fn bit(self, value: bool) -> &'a mut W {
2006 const MASK: bool = true;
2007 const OFFSET: u8 = 7;
2008 self.w.bits &= !((MASK as u32) << OFFSET);
2009 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2010 self.w
2011 }
2012}
2013#[doc = "Values that can be written to the field `PDD8`"]
2014pub enum PDD8W {
2015 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2016 _0,
2017 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2018 _1,
2019}
2020impl PDD8W {
2021 #[allow(missing_docs)]
2022 #[doc(hidden)]
2023 #[inline]
2024 pub fn _bits(&self) -> bool {
2025 match *self {
2026 PDD8W::_0 => false,
2027 PDD8W::_1 => true,
2028 }
2029 }
2030}
2031#[doc = r" Proxy"]
2032pub struct _PDD8W<'a> {
2033 w: &'a mut W,
2034}
2035impl<'a> _PDD8W<'a> {
2036 #[doc = r" Writes `variant` to the field"]
2037 #[inline]
2038 pub fn variant(self, variant: PDD8W) -> &'a mut W {
2039 {
2040 self.bit(variant._bits())
2041 }
2042 }
2043 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2044 #[inline]
2045 pub fn _0(self) -> &'a mut W {
2046 self.variant(PDD8W::_0)
2047 }
2048 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2049 #[inline]
2050 pub fn _1(self) -> &'a mut W {
2051 self.variant(PDD8W::_1)
2052 }
2053 #[doc = r" Sets the field bit"]
2054 pub fn set_bit(self) -> &'a mut W {
2055 self.bit(true)
2056 }
2057 #[doc = r" Clears the field bit"]
2058 pub fn clear_bit(self) -> &'a mut W {
2059 self.bit(false)
2060 }
2061 #[doc = r" Writes raw bits to the field"]
2062 #[inline]
2063 pub fn bit(self, value: bool) -> &'a mut W {
2064 const MASK: bool = true;
2065 const OFFSET: u8 = 8;
2066 self.w.bits &= !((MASK as u32) << OFFSET);
2067 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2068 self.w
2069 }
2070}
2071#[doc = "Values that can be written to the field `PDD9`"]
2072pub enum PDD9W {
2073 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2074 _0,
2075 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2076 _1,
2077}
2078impl PDD9W {
2079 #[allow(missing_docs)]
2080 #[doc(hidden)]
2081 #[inline]
2082 pub fn _bits(&self) -> bool {
2083 match *self {
2084 PDD9W::_0 => false,
2085 PDD9W::_1 => true,
2086 }
2087 }
2088}
2089#[doc = r" Proxy"]
2090pub struct _PDD9W<'a> {
2091 w: &'a mut W,
2092}
2093impl<'a> _PDD9W<'a> {
2094 #[doc = r" Writes `variant` to the field"]
2095 #[inline]
2096 pub fn variant(self, variant: PDD9W) -> &'a mut W {
2097 {
2098 self.bit(variant._bits())
2099 }
2100 }
2101 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2102 #[inline]
2103 pub fn _0(self) -> &'a mut W {
2104 self.variant(PDD9W::_0)
2105 }
2106 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2107 #[inline]
2108 pub fn _1(self) -> &'a mut W {
2109 self.variant(PDD9W::_1)
2110 }
2111 #[doc = r" Sets the field bit"]
2112 pub fn set_bit(self) -> &'a mut W {
2113 self.bit(true)
2114 }
2115 #[doc = r" Clears the field bit"]
2116 pub fn clear_bit(self) -> &'a mut W {
2117 self.bit(false)
2118 }
2119 #[doc = r" Writes raw bits to the field"]
2120 #[inline]
2121 pub fn bit(self, value: bool) -> &'a mut W {
2122 const MASK: bool = true;
2123 const OFFSET: u8 = 9;
2124 self.w.bits &= !((MASK as u32) << OFFSET);
2125 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2126 self.w
2127 }
2128}
2129#[doc = "Values that can be written to the field `PDD10`"]
2130pub enum PDD10W {
2131 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2132 _0,
2133 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2134 _1,
2135}
2136impl PDD10W {
2137 #[allow(missing_docs)]
2138 #[doc(hidden)]
2139 #[inline]
2140 pub fn _bits(&self) -> bool {
2141 match *self {
2142 PDD10W::_0 => false,
2143 PDD10W::_1 => true,
2144 }
2145 }
2146}
2147#[doc = r" Proxy"]
2148pub struct _PDD10W<'a> {
2149 w: &'a mut W,
2150}
2151impl<'a> _PDD10W<'a> {
2152 #[doc = r" Writes `variant` to the field"]
2153 #[inline]
2154 pub fn variant(self, variant: PDD10W) -> &'a mut W {
2155 {
2156 self.bit(variant._bits())
2157 }
2158 }
2159 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2160 #[inline]
2161 pub fn _0(self) -> &'a mut W {
2162 self.variant(PDD10W::_0)
2163 }
2164 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2165 #[inline]
2166 pub fn _1(self) -> &'a mut W {
2167 self.variant(PDD10W::_1)
2168 }
2169 #[doc = r" Sets the field bit"]
2170 pub fn set_bit(self) -> &'a mut W {
2171 self.bit(true)
2172 }
2173 #[doc = r" Clears the field bit"]
2174 pub fn clear_bit(self) -> &'a mut W {
2175 self.bit(false)
2176 }
2177 #[doc = r" Writes raw bits to the field"]
2178 #[inline]
2179 pub fn bit(self, value: bool) -> &'a mut W {
2180 const MASK: bool = true;
2181 const OFFSET: u8 = 10;
2182 self.w.bits &= !((MASK as u32) << OFFSET);
2183 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2184 self.w
2185 }
2186}
2187#[doc = "Values that can be written to the field `PDD11`"]
2188pub enum PDD11W {
2189 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2190 _0,
2191 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2192 _1,
2193}
2194impl PDD11W {
2195 #[allow(missing_docs)]
2196 #[doc(hidden)]
2197 #[inline]
2198 pub fn _bits(&self) -> bool {
2199 match *self {
2200 PDD11W::_0 => false,
2201 PDD11W::_1 => true,
2202 }
2203 }
2204}
2205#[doc = r" Proxy"]
2206pub struct _PDD11W<'a> {
2207 w: &'a mut W,
2208}
2209impl<'a> _PDD11W<'a> {
2210 #[doc = r" Writes `variant` to the field"]
2211 #[inline]
2212 pub fn variant(self, variant: PDD11W) -> &'a mut W {
2213 {
2214 self.bit(variant._bits())
2215 }
2216 }
2217 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2218 #[inline]
2219 pub fn _0(self) -> &'a mut W {
2220 self.variant(PDD11W::_0)
2221 }
2222 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2223 #[inline]
2224 pub fn _1(self) -> &'a mut W {
2225 self.variant(PDD11W::_1)
2226 }
2227 #[doc = r" Sets the field bit"]
2228 pub fn set_bit(self) -> &'a mut W {
2229 self.bit(true)
2230 }
2231 #[doc = r" Clears the field bit"]
2232 pub fn clear_bit(self) -> &'a mut W {
2233 self.bit(false)
2234 }
2235 #[doc = r" Writes raw bits to the field"]
2236 #[inline]
2237 pub fn bit(self, value: bool) -> &'a mut W {
2238 const MASK: bool = true;
2239 const OFFSET: u8 = 11;
2240 self.w.bits &= !((MASK as u32) << OFFSET);
2241 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2242 self.w
2243 }
2244}
2245#[doc = "Values that can be written to the field `PDD12`"]
2246pub enum PDD12W {
2247 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2248 _0,
2249 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2250 _1,
2251}
2252impl PDD12W {
2253 #[allow(missing_docs)]
2254 #[doc(hidden)]
2255 #[inline]
2256 pub fn _bits(&self) -> bool {
2257 match *self {
2258 PDD12W::_0 => false,
2259 PDD12W::_1 => true,
2260 }
2261 }
2262}
2263#[doc = r" Proxy"]
2264pub struct _PDD12W<'a> {
2265 w: &'a mut W,
2266}
2267impl<'a> _PDD12W<'a> {
2268 #[doc = r" Writes `variant` to the field"]
2269 #[inline]
2270 pub fn variant(self, variant: PDD12W) -> &'a mut W {
2271 {
2272 self.bit(variant._bits())
2273 }
2274 }
2275 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2276 #[inline]
2277 pub fn _0(self) -> &'a mut W {
2278 self.variant(PDD12W::_0)
2279 }
2280 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2281 #[inline]
2282 pub fn _1(self) -> &'a mut W {
2283 self.variant(PDD12W::_1)
2284 }
2285 #[doc = r" Sets the field bit"]
2286 pub fn set_bit(self) -> &'a mut W {
2287 self.bit(true)
2288 }
2289 #[doc = r" Clears the field bit"]
2290 pub fn clear_bit(self) -> &'a mut W {
2291 self.bit(false)
2292 }
2293 #[doc = r" Writes raw bits to the field"]
2294 #[inline]
2295 pub fn bit(self, value: bool) -> &'a mut W {
2296 const MASK: bool = true;
2297 const OFFSET: u8 = 12;
2298 self.w.bits &= !((MASK as u32) << OFFSET);
2299 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2300 self.w
2301 }
2302}
2303#[doc = "Values that can be written to the field `PDD13`"]
2304pub enum PDD13W {
2305 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2306 _0,
2307 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2308 _1,
2309}
2310impl PDD13W {
2311 #[allow(missing_docs)]
2312 #[doc(hidden)]
2313 #[inline]
2314 pub fn _bits(&self) -> bool {
2315 match *self {
2316 PDD13W::_0 => false,
2317 PDD13W::_1 => true,
2318 }
2319 }
2320}
2321#[doc = r" Proxy"]
2322pub struct _PDD13W<'a> {
2323 w: &'a mut W,
2324}
2325impl<'a> _PDD13W<'a> {
2326 #[doc = r" Writes `variant` to the field"]
2327 #[inline]
2328 pub fn variant(self, variant: PDD13W) -> &'a mut W {
2329 {
2330 self.bit(variant._bits())
2331 }
2332 }
2333 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2334 #[inline]
2335 pub fn _0(self) -> &'a mut W {
2336 self.variant(PDD13W::_0)
2337 }
2338 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2339 #[inline]
2340 pub fn _1(self) -> &'a mut W {
2341 self.variant(PDD13W::_1)
2342 }
2343 #[doc = r" Sets the field bit"]
2344 pub fn set_bit(self) -> &'a mut W {
2345 self.bit(true)
2346 }
2347 #[doc = r" Clears the field bit"]
2348 pub fn clear_bit(self) -> &'a mut W {
2349 self.bit(false)
2350 }
2351 #[doc = r" Writes raw bits to the field"]
2352 #[inline]
2353 pub fn bit(self, value: bool) -> &'a mut W {
2354 const MASK: bool = true;
2355 const OFFSET: u8 = 13;
2356 self.w.bits &= !((MASK as u32) << OFFSET);
2357 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2358 self.w
2359 }
2360}
2361#[doc = "Values that can be written to the field `PDD14`"]
2362pub enum PDD14W {
2363 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2364 _0,
2365 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2366 _1,
2367}
2368impl PDD14W {
2369 #[allow(missing_docs)]
2370 #[doc(hidden)]
2371 #[inline]
2372 pub fn _bits(&self) -> bool {
2373 match *self {
2374 PDD14W::_0 => false,
2375 PDD14W::_1 => true,
2376 }
2377 }
2378}
2379#[doc = r" Proxy"]
2380pub struct _PDD14W<'a> {
2381 w: &'a mut W,
2382}
2383impl<'a> _PDD14W<'a> {
2384 #[doc = r" Writes `variant` to the field"]
2385 #[inline]
2386 pub fn variant(self, variant: PDD14W) -> &'a mut W {
2387 {
2388 self.bit(variant._bits())
2389 }
2390 }
2391 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2392 #[inline]
2393 pub fn _0(self) -> &'a mut W {
2394 self.variant(PDD14W::_0)
2395 }
2396 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2397 #[inline]
2398 pub fn _1(self) -> &'a mut W {
2399 self.variant(PDD14W::_1)
2400 }
2401 #[doc = r" Sets the field bit"]
2402 pub fn set_bit(self) -> &'a mut W {
2403 self.bit(true)
2404 }
2405 #[doc = r" Clears the field bit"]
2406 pub fn clear_bit(self) -> &'a mut W {
2407 self.bit(false)
2408 }
2409 #[doc = r" Writes raw bits to the field"]
2410 #[inline]
2411 pub fn bit(self, value: bool) -> &'a mut W {
2412 const MASK: bool = true;
2413 const OFFSET: u8 = 14;
2414 self.w.bits &= !((MASK as u32) << OFFSET);
2415 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2416 self.w
2417 }
2418}
2419#[doc = "Values that can be written to the field `PDD15`"]
2420pub enum PDD15W {
2421 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2422 _0,
2423 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2424 _1,
2425}
2426impl PDD15W {
2427 #[allow(missing_docs)]
2428 #[doc(hidden)]
2429 #[inline]
2430 pub fn _bits(&self) -> bool {
2431 match *self {
2432 PDD15W::_0 => false,
2433 PDD15W::_1 => true,
2434 }
2435 }
2436}
2437#[doc = r" Proxy"]
2438pub struct _PDD15W<'a> {
2439 w: &'a mut W,
2440}
2441impl<'a> _PDD15W<'a> {
2442 #[doc = r" Writes `variant` to the field"]
2443 #[inline]
2444 pub fn variant(self, variant: PDD15W) -> &'a mut W {
2445 {
2446 self.bit(variant._bits())
2447 }
2448 }
2449 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2450 #[inline]
2451 pub fn _0(self) -> &'a mut W {
2452 self.variant(PDD15W::_0)
2453 }
2454 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2455 #[inline]
2456 pub fn _1(self) -> &'a mut W {
2457 self.variant(PDD15W::_1)
2458 }
2459 #[doc = r" Sets the field bit"]
2460 pub fn set_bit(self) -> &'a mut W {
2461 self.bit(true)
2462 }
2463 #[doc = r" Clears the field bit"]
2464 pub fn clear_bit(self) -> &'a mut W {
2465 self.bit(false)
2466 }
2467 #[doc = r" Writes raw bits to the field"]
2468 #[inline]
2469 pub fn bit(self, value: bool) -> &'a mut W {
2470 const MASK: bool = true;
2471 const OFFSET: u8 = 15;
2472 self.w.bits &= !((MASK as u32) << OFFSET);
2473 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2474 self.w
2475 }
2476}
2477#[doc = "Values that can be written to the field `PDD16`"]
2478pub enum PDD16W {
2479 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2480 _0,
2481 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2482 _1,
2483}
2484impl PDD16W {
2485 #[allow(missing_docs)]
2486 #[doc(hidden)]
2487 #[inline]
2488 pub fn _bits(&self) -> bool {
2489 match *self {
2490 PDD16W::_0 => false,
2491 PDD16W::_1 => true,
2492 }
2493 }
2494}
2495#[doc = r" Proxy"]
2496pub struct _PDD16W<'a> {
2497 w: &'a mut W,
2498}
2499impl<'a> _PDD16W<'a> {
2500 #[doc = r" Writes `variant` to the field"]
2501 #[inline]
2502 pub fn variant(self, variant: PDD16W) -> &'a mut W {
2503 {
2504 self.bit(variant._bits())
2505 }
2506 }
2507 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2508 #[inline]
2509 pub fn _0(self) -> &'a mut W {
2510 self.variant(PDD16W::_0)
2511 }
2512 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2513 #[inline]
2514 pub fn _1(self) -> &'a mut W {
2515 self.variant(PDD16W::_1)
2516 }
2517 #[doc = r" Sets the field bit"]
2518 pub fn set_bit(self) -> &'a mut W {
2519 self.bit(true)
2520 }
2521 #[doc = r" Clears the field bit"]
2522 pub fn clear_bit(self) -> &'a mut W {
2523 self.bit(false)
2524 }
2525 #[doc = r" Writes raw bits to the field"]
2526 #[inline]
2527 pub fn bit(self, value: bool) -> &'a mut W {
2528 const MASK: bool = true;
2529 const OFFSET: u8 = 16;
2530 self.w.bits &= !((MASK as u32) << OFFSET);
2531 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2532 self.w
2533 }
2534}
2535#[doc = "Values that can be written to the field `PDD17`"]
2536pub enum PDD17W {
2537 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2538 _0,
2539 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2540 _1,
2541}
2542impl PDD17W {
2543 #[allow(missing_docs)]
2544 #[doc(hidden)]
2545 #[inline]
2546 pub fn _bits(&self) -> bool {
2547 match *self {
2548 PDD17W::_0 => false,
2549 PDD17W::_1 => true,
2550 }
2551 }
2552}
2553#[doc = r" Proxy"]
2554pub struct _PDD17W<'a> {
2555 w: &'a mut W,
2556}
2557impl<'a> _PDD17W<'a> {
2558 #[doc = r" Writes `variant` to the field"]
2559 #[inline]
2560 pub fn variant(self, variant: PDD17W) -> &'a mut W {
2561 {
2562 self.bit(variant._bits())
2563 }
2564 }
2565 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2566 #[inline]
2567 pub fn _0(self) -> &'a mut W {
2568 self.variant(PDD17W::_0)
2569 }
2570 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2571 #[inline]
2572 pub fn _1(self) -> &'a mut W {
2573 self.variant(PDD17W::_1)
2574 }
2575 #[doc = r" Sets the field bit"]
2576 pub fn set_bit(self) -> &'a mut W {
2577 self.bit(true)
2578 }
2579 #[doc = r" Clears the field bit"]
2580 pub fn clear_bit(self) -> &'a mut W {
2581 self.bit(false)
2582 }
2583 #[doc = r" Writes raw bits to the field"]
2584 #[inline]
2585 pub fn bit(self, value: bool) -> &'a mut W {
2586 const MASK: bool = true;
2587 const OFFSET: u8 = 17;
2588 self.w.bits &= !((MASK as u32) << OFFSET);
2589 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2590 self.w
2591 }
2592}
2593#[doc = "Values that can be written to the field `PDD18`"]
2594pub enum PDD18W {
2595 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2596 _0,
2597 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2598 _1,
2599}
2600impl PDD18W {
2601 #[allow(missing_docs)]
2602 #[doc(hidden)]
2603 #[inline]
2604 pub fn _bits(&self) -> bool {
2605 match *self {
2606 PDD18W::_0 => false,
2607 PDD18W::_1 => true,
2608 }
2609 }
2610}
2611#[doc = r" Proxy"]
2612pub struct _PDD18W<'a> {
2613 w: &'a mut W,
2614}
2615impl<'a> _PDD18W<'a> {
2616 #[doc = r" Writes `variant` to the field"]
2617 #[inline]
2618 pub fn variant(self, variant: PDD18W) -> &'a mut W {
2619 {
2620 self.bit(variant._bits())
2621 }
2622 }
2623 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2624 #[inline]
2625 pub fn _0(self) -> &'a mut W {
2626 self.variant(PDD18W::_0)
2627 }
2628 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2629 #[inline]
2630 pub fn _1(self) -> &'a mut W {
2631 self.variant(PDD18W::_1)
2632 }
2633 #[doc = r" Sets the field bit"]
2634 pub fn set_bit(self) -> &'a mut W {
2635 self.bit(true)
2636 }
2637 #[doc = r" Clears the field bit"]
2638 pub fn clear_bit(self) -> &'a mut W {
2639 self.bit(false)
2640 }
2641 #[doc = r" Writes raw bits to the field"]
2642 #[inline]
2643 pub fn bit(self, value: bool) -> &'a mut W {
2644 const MASK: bool = true;
2645 const OFFSET: u8 = 18;
2646 self.w.bits &= !((MASK as u32) << OFFSET);
2647 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2648 self.w
2649 }
2650}
2651#[doc = "Values that can be written to the field `PDD19`"]
2652pub enum PDD19W {
2653 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2654 _0,
2655 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2656 _1,
2657}
2658impl PDD19W {
2659 #[allow(missing_docs)]
2660 #[doc(hidden)]
2661 #[inline]
2662 pub fn _bits(&self) -> bool {
2663 match *self {
2664 PDD19W::_0 => false,
2665 PDD19W::_1 => true,
2666 }
2667 }
2668}
2669#[doc = r" Proxy"]
2670pub struct _PDD19W<'a> {
2671 w: &'a mut W,
2672}
2673impl<'a> _PDD19W<'a> {
2674 #[doc = r" Writes `variant` to the field"]
2675 #[inline]
2676 pub fn variant(self, variant: PDD19W) -> &'a mut W {
2677 {
2678 self.bit(variant._bits())
2679 }
2680 }
2681 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2682 #[inline]
2683 pub fn _0(self) -> &'a mut W {
2684 self.variant(PDD19W::_0)
2685 }
2686 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2687 #[inline]
2688 pub fn _1(self) -> &'a mut W {
2689 self.variant(PDD19W::_1)
2690 }
2691 #[doc = r" Sets the field bit"]
2692 pub fn set_bit(self) -> &'a mut W {
2693 self.bit(true)
2694 }
2695 #[doc = r" Clears the field bit"]
2696 pub fn clear_bit(self) -> &'a mut W {
2697 self.bit(false)
2698 }
2699 #[doc = r" Writes raw bits to the field"]
2700 #[inline]
2701 pub fn bit(self, value: bool) -> &'a mut W {
2702 const MASK: bool = true;
2703 const OFFSET: u8 = 19;
2704 self.w.bits &= !((MASK as u32) << OFFSET);
2705 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2706 self.w
2707 }
2708}
2709#[doc = "Values that can be written to the field `PDD20`"]
2710pub enum PDD20W {
2711 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2712 _0,
2713 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2714 _1,
2715}
2716impl PDD20W {
2717 #[allow(missing_docs)]
2718 #[doc(hidden)]
2719 #[inline]
2720 pub fn _bits(&self) -> bool {
2721 match *self {
2722 PDD20W::_0 => false,
2723 PDD20W::_1 => true,
2724 }
2725 }
2726}
2727#[doc = r" Proxy"]
2728pub struct _PDD20W<'a> {
2729 w: &'a mut W,
2730}
2731impl<'a> _PDD20W<'a> {
2732 #[doc = r" Writes `variant` to the field"]
2733 #[inline]
2734 pub fn variant(self, variant: PDD20W) -> &'a mut W {
2735 {
2736 self.bit(variant._bits())
2737 }
2738 }
2739 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2740 #[inline]
2741 pub fn _0(self) -> &'a mut W {
2742 self.variant(PDD20W::_0)
2743 }
2744 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2745 #[inline]
2746 pub fn _1(self) -> &'a mut W {
2747 self.variant(PDD20W::_1)
2748 }
2749 #[doc = r" Sets the field bit"]
2750 pub fn set_bit(self) -> &'a mut W {
2751 self.bit(true)
2752 }
2753 #[doc = r" Clears the field bit"]
2754 pub fn clear_bit(self) -> &'a mut W {
2755 self.bit(false)
2756 }
2757 #[doc = r" Writes raw bits to the field"]
2758 #[inline]
2759 pub fn bit(self, value: bool) -> &'a mut W {
2760 const MASK: bool = true;
2761 const OFFSET: u8 = 20;
2762 self.w.bits &= !((MASK as u32) << OFFSET);
2763 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2764 self.w
2765 }
2766}
2767#[doc = "Values that can be written to the field `PDD21`"]
2768pub enum PDD21W {
2769 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2770 _0,
2771 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2772 _1,
2773}
2774impl PDD21W {
2775 #[allow(missing_docs)]
2776 #[doc(hidden)]
2777 #[inline]
2778 pub fn _bits(&self) -> bool {
2779 match *self {
2780 PDD21W::_0 => false,
2781 PDD21W::_1 => true,
2782 }
2783 }
2784}
2785#[doc = r" Proxy"]
2786pub struct _PDD21W<'a> {
2787 w: &'a mut W,
2788}
2789impl<'a> _PDD21W<'a> {
2790 #[doc = r" Writes `variant` to the field"]
2791 #[inline]
2792 pub fn variant(self, variant: PDD21W) -> &'a mut W {
2793 {
2794 self.bit(variant._bits())
2795 }
2796 }
2797 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2798 #[inline]
2799 pub fn _0(self) -> &'a mut W {
2800 self.variant(PDD21W::_0)
2801 }
2802 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2803 #[inline]
2804 pub fn _1(self) -> &'a mut W {
2805 self.variant(PDD21W::_1)
2806 }
2807 #[doc = r" Sets the field bit"]
2808 pub fn set_bit(self) -> &'a mut W {
2809 self.bit(true)
2810 }
2811 #[doc = r" Clears the field bit"]
2812 pub fn clear_bit(self) -> &'a mut W {
2813 self.bit(false)
2814 }
2815 #[doc = r" Writes raw bits to the field"]
2816 #[inline]
2817 pub fn bit(self, value: bool) -> &'a mut W {
2818 const MASK: bool = true;
2819 const OFFSET: u8 = 21;
2820 self.w.bits &= !((MASK as u32) << OFFSET);
2821 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2822 self.w
2823 }
2824}
2825#[doc = "Values that can be written to the field `PDD22`"]
2826pub enum PDD22W {
2827 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2828 _0,
2829 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2830 _1,
2831}
2832impl PDD22W {
2833 #[allow(missing_docs)]
2834 #[doc(hidden)]
2835 #[inline]
2836 pub fn _bits(&self) -> bool {
2837 match *self {
2838 PDD22W::_0 => false,
2839 PDD22W::_1 => true,
2840 }
2841 }
2842}
2843#[doc = r" Proxy"]
2844pub struct _PDD22W<'a> {
2845 w: &'a mut W,
2846}
2847impl<'a> _PDD22W<'a> {
2848 #[doc = r" Writes `variant` to the field"]
2849 #[inline]
2850 pub fn variant(self, variant: PDD22W) -> &'a mut W {
2851 {
2852 self.bit(variant._bits())
2853 }
2854 }
2855 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2856 #[inline]
2857 pub fn _0(self) -> &'a mut W {
2858 self.variant(PDD22W::_0)
2859 }
2860 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2861 #[inline]
2862 pub fn _1(self) -> &'a mut W {
2863 self.variant(PDD22W::_1)
2864 }
2865 #[doc = r" Sets the field bit"]
2866 pub fn set_bit(self) -> &'a mut W {
2867 self.bit(true)
2868 }
2869 #[doc = r" Clears the field bit"]
2870 pub fn clear_bit(self) -> &'a mut W {
2871 self.bit(false)
2872 }
2873 #[doc = r" Writes raw bits to the field"]
2874 #[inline]
2875 pub fn bit(self, value: bool) -> &'a mut W {
2876 const MASK: bool = true;
2877 const OFFSET: u8 = 22;
2878 self.w.bits &= !((MASK as u32) << OFFSET);
2879 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2880 self.w
2881 }
2882}
2883#[doc = "Values that can be written to the field `PDD23`"]
2884pub enum PDD23W {
2885 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2886 _0,
2887 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2888 _1,
2889}
2890impl PDD23W {
2891 #[allow(missing_docs)]
2892 #[doc(hidden)]
2893 #[inline]
2894 pub fn _bits(&self) -> bool {
2895 match *self {
2896 PDD23W::_0 => false,
2897 PDD23W::_1 => true,
2898 }
2899 }
2900}
2901#[doc = r" Proxy"]
2902pub struct _PDD23W<'a> {
2903 w: &'a mut W,
2904}
2905impl<'a> _PDD23W<'a> {
2906 #[doc = r" Writes `variant` to the field"]
2907 #[inline]
2908 pub fn variant(self, variant: PDD23W) -> &'a mut W {
2909 {
2910 self.bit(variant._bits())
2911 }
2912 }
2913 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2914 #[inline]
2915 pub fn _0(self) -> &'a mut W {
2916 self.variant(PDD23W::_0)
2917 }
2918 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2919 #[inline]
2920 pub fn _1(self) -> &'a mut W {
2921 self.variant(PDD23W::_1)
2922 }
2923 #[doc = r" Sets the field bit"]
2924 pub fn set_bit(self) -> &'a mut W {
2925 self.bit(true)
2926 }
2927 #[doc = r" Clears the field bit"]
2928 pub fn clear_bit(self) -> &'a mut W {
2929 self.bit(false)
2930 }
2931 #[doc = r" Writes raw bits to the field"]
2932 #[inline]
2933 pub fn bit(self, value: bool) -> &'a mut W {
2934 const MASK: bool = true;
2935 const OFFSET: u8 = 23;
2936 self.w.bits &= !((MASK as u32) << OFFSET);
2937 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2938 self.w
2939 }
2940}
2941#[doc = "Values that can be written to the field `PDD24`"]
2942pub enum PDD24W {
2943 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2944 _0,
2945 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2946 _1,
2947}
2948impl PDD24W {
2949 #[allow(missing_docs)]
2950 #[doc(hidden)]
2951 #[inline]
2952 pub fn _bits(&self) -> bool {
2953 match *self {
2954 PDD24W::_0 => false,
2955 PDD24W::_1 => true,
2956 }
2957 }
2958}
2959#[doc = r" Proxy"]
2960pub struct _PDD24W<'a> {
2961 w: &'a mut W,
2962}
2963impl<'a> _PDD24W<'a> {
2964 #[doc = r" Writes `variant` to the field"]
2965 #[inline]
2966 pub fn variant(self, variant: PDD24W) -> &'a mut W {
2967 {
2968 self.bit(variant._bits())
2969 }
2970 }
2971 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
2972 #[inline]
2973 pub fn _0(self) -> &'a mut W {
2974 self.variant(PDD24W::_0)
2975 }
2976 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
2977 #[inline]
2978 pub fn _1(self) -> &'a mut W {
2979 self.variant(PDD24W::_1)
2980 }
2981 #[doc = r" Sets the field bit"]
2982 pub fn set_bit(self) -> &'a mut W {
2983 self.bit(true)
2984 }
2985 #[doc = r" Clears the field bit"]
2986 pub fn clear_bit(self) -> &'a mut W {
2987 self.bit(false)
2988 }
2989 #[doc = r" Writes raw bits to the field"]
2990 #[inline]
2991 pub fn bit(self, value: bool) -> &'a mut W {
2992 const MASK: bool = true;
2993 const OFFSET: u8 = 24;
2994 self.w.bits &= !((MASK as u32) << OFFSET);
2995 self.w.bits |= ((value & MASK) as u32) << OFFSET;
2996 self.w
2997 }
2998}
2999#[doc = "Values that can be written to the field `PDD25`"]
3000pub enum PDD25W {
3001 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3002 _0,
3003 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3004 _1,
3005}
3006impl PDD25W {
3007 #[allow(missing_docs)]
3008 #[doc(hidden)]
3009 #[inline]
3010 pub fn _bits(&self) -> bool {
3011 match *self {
3012 PDD25W::_0 => false,
3013 PDD25W::_1 => true,
3014 }
3015 }
3016}
3017#[doc = r" Proxy"]
3018pub struct _PDD25W<'a> {
3019 w: &'a mut W,
3020}
3021impl<'a> _PDD25W<'a> {
3022 #[doc = r" Writes `variant` to the field"]
3023 #[inline]
3024 pub fn variant(self, variant: PDD25W) -> &'a mut W {
3025 {
3026 self.bit(variant._bits())
3027 }
3028 }
3029 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3030 #[inline]
3031 pub fn _0(self) -> &'a mut W {
3032 self.variant(PDD25W::_0)
3033 }
3034 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3035 #[inline]
3036 pub fn _1(self) -> &'a mut W {
3037 self.variant(PDD25W::_1)
3038 }
3039 #[doc = r" Sets the field bit"]
3040 pub fn set_bit(self) -> &'a mut W {
3041 self.bit(true)
3042 }
3043 #[doc = r" Clears the field bit"]
3044 pub fn clear_bit(self) -> &'a mut W {
3045 self.bit(false)
3046 }
3047 #[doc = r" Writes raw bits to the field"]
3048 #[inline]
3049 pub fn bit(self, value: bool) -> &'a mut W {
3050 const MASK: bool = true;
3051 const OFFSET: u8 = 25;
3052 self.w.bits &= !((MASK as u32) << OFFSET);
3053 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3054 self.w
3055 }
3056}
3057#[doc = "Values that can be written to the field `PDD26`"]
3058pub enum PDD26W {
3059 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3060 _0,
3061 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3062 _1,
3063}
3064impl PDD26W {
3065 #[allow(missing_docs)]
3066 #[doc(hidden)]
3067 #[inline]
3068 pub fn _bits(&self) -> bool {
3069 match *self {
3070 PDD26W::_0 => false,
3071 PDD26W::_1 => true,
3072 }
3073 }
3074}
3075#[doc = r" Proxy"]
3076pub struct _PDD26W<'a> {
3077 w: &'a mut W,
3078}
3079impl<'a> _PDD26W<'a> {
3080 #[doc = r" Writes `variant` to the field"]
3081 #[inline]
3082 pub fn variant(self, variant: PDD26W) -> &'a mut W {
3083 {
3084 self.bit(variant._bits())
3085 }
3086 }
3087 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3088 #[inline]
3089 pub fn _0(self) -> &'a mut W {
3090 self.variant(PDD26W::_0)
3091 }
3092 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3093 #[inline]
3094 pub fn _1(self) -> &'a mut W {
3095 self.variant(PDD26W::_1)
3096 }
3097 #[doc = r" Sets the field bit"]
3098 pub fn set_bit(self) -> &'a mut W {
3099 self.bit(true)
3100 }
3101 #[doc = r" Clears the field bit"]
3102 pub fn clear_bit(self) -> &'a mut W {
3103 self.bit(false)
3104 }
3105 #[doc = r" Writes raw bits to the field"]
3106 #[inline]
3107 pub fn bit(self, value: bool) -> &'a mut W {
3108 const MASK: bool = true;
3109 const OFFSET: u8 = 26;
3110 self.w.bits &= !((MASK as u32) << OFFSET);
3111 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3112 self.w
3113 }
3114}
3115#[doc = "Values that can be written to the field `PDD27`"]
3116pub enum PDD27W {
3117 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3118 _0,
3119 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3120 _1,
3121}
3122impl PDD27W {
3123 #[allow(missing_docs)]
3124 #[doc(hidden)]
3125 #[inline]
3126 pub fn _bits(&self) -> bool {
3127 match *self {
3128 PDD27W::_0 => false,
3129 PDD27W::_1 => true,
3130 }
3131 }
3132}
3133#[doc = r" Proxy"]
3134pub struct _PDD27W<'a> {
3135 w: &'a mut W,
3136}
3137impl<'a> _PDD27W<'a> {
3138 #[doc = r" Writes `variant` to the field"]
3139 #[inline]
3140 pub fn variant(self, variant: PDD27W) -> &'a mut W {
3141 {
3142 self.bit(variant._bits())
3143 }
3144 }
3145 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3146 #[inline]
3147 pub fn _0(self) -> &'a mut W {
3148 self.variant(PDD27W::_0)
3149 }
3150 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3151 #[inline]
3152 pub fn _1(self) -> &'a mut W {
3153 self.variant(PDD27W::_1)
3154 }
3155 #[doc = r" Sets the field bit"]
3156 pub fn set_bit(self) -> &'a mut W {
3157 self.bit(true)
3158 }
3159 #[doc = r" Clears the field bit"]
3160 pub fn clear_bit(self) -> &'a mut W {
3161 self.bit(false)
3162 }
3163 #[doc = r" Writes raw bits to the field"]
3164 #[inline]
3165 pub fn bit(self, value: bool) -> &'a mut W {
3166 const MASK: bool = true;
3167 const OFFSET: u8 = 27;
3168 self.w.bits &= !((MASK as u32) << OFFSET);
3169 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3170 self.w
3171 }
3172}
3173#[doc = "Values that can be written to the field `PDD28`"]
3174pub enum PDD28W {
3175 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3176 _0,
3177 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3178 _1,
3179}
3180impl PDD28W {
3181 #[allow(missing_docs)]
3182 #[doc(hidden)]
3183 #[inline]
3184 pub fn _bits(&self) -> bool {
3185 match *self {
3186 PDD28W::_0 => false,
3187 PDD28W::_1 => true,
3188 }
3189 }
3190}
3191#[doc = r" Proxy"]
3192pub struct _PDD28W<'a> {
3193 w: &'a mut W,
3194}
3195impl<'a> _PDD28W<'a> {
3196 #[doc = r" Writes `variant` to the field"]
3197 #[inline]
3198 pub fn variant(self, variant: PDD28W) -> &'a mut W {
3199 {
3200 self.bit(variant._bits())
3201 }
3202 }
3203 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3204 #[inline]
3205 pub fn _0(self) -> &'a mut W {
3206 self.variant(PDD28W::_0)
3207 }
3208 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3209 #[inline]
3210 pub fn _1(self) -> &'a mut W {
3211 self.variant(PDD28W::_1)
3212 }
3213 #[doc = r" Sets the field bit"]
3214 pub fn set_bit(self) -> &'a mut W {
3215 self.bit(true)
3216 }
3217 #[doc = r" Clears the field bit"]
3218 pub fn clear_bit(self) -> &'a mut W {
3219 self.bit(false)
3220 }
3221 #[doc = r" Writes raw bits to the field"]
3222 #[inline]
3223 pub fn bit(self, value: bool) -> &'a mut W {
3224 const MASK: bool = true;
3225 const OFFSET: u8 = 28;
3226 self.w.bits &= !((MASK as u32) << OFFSET);
3227 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3228 self.w
3229 }
3230}
3231#[doc = "Values that can be written to the field `PDD29`"]
3232pub enum PDD29W {
3233 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3234 _0,
3235 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3236 _1,
3237}
3238impl PDD29W {
3239 #[allow(missing_docs)]
3240 #[doc(hidden)]
3241 #[inline]
3242 pub fn _bits(&self) -> bool {
3243 match *self {
3244 PDD29W::_0 => false,
3245 PDD29W::_1 => true,
3246 }
3247 }
3248}
3249#[doc = r" Proxy"]
3250pub struct _PDD29W<'a> {
3251 w: &'a mut W,
3252}
3253impl<'a> _PDD29W<'a> {
3254 #[doc = r" Writes `variant` to the field"]
3255 #[inline]
3256 pub fn variant(self, variant: PDD29W) -> &'a mut W {
3257 {
3258 self.bit(variant._bits())
3259 }
3260 }
3261 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3262 #[inline]
3263 pub fn _0(self) -> &'a mut W {
3264 self.variant(PDD29W::_0)
3265 }
3266 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3267 #[inline]
3268 pub fn _1(self) -> &'a mut W {
3269 self.variant(PDD29W::_1)
3270 }
3271 #[doc = r" Sets the field bit"]
3272 pub fn set_bit(self) -> &'a mut W {
3273 self.bit(true)
3274 }
3275 #[doc = r" Clears the field bit"]
3276 pub fn clear_bit(self) -> &'a mut W {
3277 self.bit(false)
3278 }
3279 #[doc = r" Writes raw bits to the field"]
3280 #[inline]
3281 pub fn bit(self, value: bool) -> &'a mut W {
3282 const MASK: bool = true;
3283 const OFFSET: u8 = 29;
3284 self.w.bits &= !((MASK as u32) << OFFSET);
3285 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3286 self.w
3287 }
3288}
3289#[doc = "Values that can be written to the field `PDD30`"]
3290pub enum PDD30W {
3291 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3292 _0,
3293 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3294 _1,
3295}
3296impl PDD30W {
3297 #[allow(missing_docs)]
3298 #[doc(hidden)]
3299 #[inline]
3300 pub fn _bits(&self) -> bool {
3301 match *self {
3302 PDD30W::_0 => false,
3303 PDD30W::_1 => true,
3304 }
3305 }
3306}
3307#[doc = r" Proxy"]
3308pub struct _PDD30W<'a> {
3309 w: &'a mut W,
3310}
3311impl<'a> _PDD30W<'a> {
3312 #[doc = r" Writes `variant` to the field"]
3313 #[inline]
3314 pub fn variant(self, variant: PDD30W) -> &'a mut W {
3315 {
3316 self.bit(variant._bits())
3317 }
3318 }
3319 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3320 #[inline]
3321 pub fn _0(self) -> &'a mut W {
3322 self.variant(PDD30W::_0)
3323 }
3324 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3325 #[inline]
3326 pub fn _1(self) -> &'a mut W {
3327 self.variant(PDD30W::_1)
3328 }
3329 #[doc = r" Sets the field bit"]
3330 pub fn set_bit(self) -> &'a mut W {
3331 self.bit(true)
3332 }
3333 #[doc = r" Clears the field bit"]
3334 pub fn clear_bit(self) -> &'a mut W {
3335 self.bit(false)
3336 }
3337 #[doc = r" Writes raw bits to the field"]
3338 #[inline]
3339 pub fn bit(self, value: bool) -> &'a mut W {
3340 const MASK: bool = true;
3341 const OFFSET: u8 = 30;
3342 self.w.bits &= !((MASK as u32) << OFFSET);
3343 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3344 self.w
3345 }
3346}
3347#[doc = "Values that can be written to the field `PDD31`"]
3348pub enum PDD31W {
3349 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3350 _0,
3351 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3352 _1,
3353}
3354impl PDD31W {
3355 #[allow(missing_docs)]
3356 #[doc(hidden)]
3357 #[inline]
3358 pub fn _bits(&self) -> bool {
3359 match *self {
3360 PDD31W::_0 => false,
3361 PDD31W::_1 => true,
3362 }
3363 }
3364}
3365#[doc = r" Proxy"]
3366pub struct _PDD31W<'a> {
3367 w: &'a mut W,
3368}
3369impl<'a> _PDD31W<'a> {
3370 #[doc = r" Writes `variant` to the field"]
3371 #[inline]
3372 pub fn variant(self, variant: PDD31W) -> &'a mut W {
3373 {
3374 self.bit(variant._bits())
3375 }
3376 }
3377 #[doc = "Pin is configured as general-purpose input, for the GPIO function."]
3378 #[inline]
3379 pub fn _0(self) -> &'a mut W {
3380 self.variant(PDD31W::_0)
3381 }
3382 #[doc = "Pin is configured as general-purpose output, for the GPIO function."]
3383 #[inline]
3384 pub fn _1(self) -> &'a mut W {
3385 self.variant(PDD31W::_1)
3386 }
3387 #[doc = r" Sets the field bit"]
3388 pub fn set_bit(self) -> &'a mut W {
3389 self.bit(true)
3390 }
3391 #[doc = r" Clears the field bit"]
3392 pub fn clear_bit(self) -> &'a mut W {
3393 self.bit(false)
3394 }
3395 #[doc = r" Writes raw bits to the field"]
3396 #[inline]
3397 pub fn bit(self, value: bool) -> &'a mut W {
3398 const MASK: bool = true;
3399 const OFFSET: u8 = 31;
3400 self.w.bits &= !((MASK as u32) << OFFSET);
3401 self.w.bits |= ((value & MASK) as u32) << OFFSET;
3402 self.w
3403 }
3404}
3405impl R {
3406 #[doc = r" Value of the register as raw bits"]
3407 #[inline]
3408 pub fn bits(&self) -> u32 {
3409 self.bits
3410 }
3411 #[doc = "Bit 0 - Port Data Direction"]
3412 #[inline]
3413 pub fn pdd0(&self) -> PDD0R {
3414 PDD0R::_from({
3415 const MASK: bool = true;
3416 const OFFSET: u8 = 0;
3417 ((self.bits >> OFFSET) & MASK as u32) != 0
3418 })
3419 }
3420 #[doc = "Bit 1 - Port Data Direction"]
3421 #[inline]
3422 pub fn pdd1(&self) -> PDD1R {
3423 PDD1R::_from({
3424 const MASK: bool = true;
3425 const OFFSET: u8 = 1;
3426 ((self.bits >> OFFSET) & MASK as u32) != 0
3427 })
3428 }
3429 #[doc = "Bit 2 - Port Data Direction"]
3430 #[inline]
3431 pub fn pdd2(&self) -> PDD2R {
3432 PDD2R::_from({
3433 const MASK: bool = true;
3434 const OFFSET: u8 = 2;
3435 ((self.bits >> OFFSET) & MASK as u32) != 0
3436 })
3437 }
3438 #[doc = "Bit 3 - Port Data Direction"]
3439 #[inline]
3440 pub fn pdd3(&self) -> PDD3R {
3441 PDD3R::_from({
3442 const MASK: bool = true;
3443 const OFFSET: u8 = 3;
3444 ((self.bits >> OFFSET) & MASK as u32) != 0
3445 })
3446 }
3447 #[doc = "Bit 4 - Port Data Direction"]
3448 #[inline]
3449 pub fn pdd4(&self) -> PDD4R {
3450 PDD4R::_from({
3451 const MASK: bool = true;
3452 const OFFSET: u8 = 4;
3453 ((self.bits >> OFFSET) & MASK as u32) != 0
3454 })
3455 }
3456 #[doc = "Bit 5 - Port Data Direction"]
3457 #[inline]
3458 pub fn pdd5(&self) -> PDD5R {
3459 PDD5R::_from({
3460 const MASK: bool = true;
3461 const OFFSET: u8 = 5;
3462 ((self.bits >> OFFSET) & MASK as u32) != 0
3463 })
3464 }
3465 #[doc = "Bit 6 - Port Data Direction"]
3466 #[inline]
3467 pub fn pdd6(&self) -> PDD6R {
3468 PDD6R::_from({
3469 const MASK: bool = true;
3470 const OFFSET: u8 = 6;
3471 ((self.bits >> OFFSET) & MASK as u32) != 0
3472 })
3473 }
3474 #[doc = "Bit 7 - Port Data Direction"]
3475 #[inline]
3476 pub fn pdd7(&self) -> PDD7R {
3477 PDD7R::_from({
3478 const MASK: bool = true;
3479 const OFFSET: u8 = 7;
3480 ((self.bits >> OFFSET) & MASK as u32) != 0
3481 })
3482 }
3483 #[doc = "Bit 8 - Port Data Direction"]
3484 #[inline]
3485 pub fn pdd8(&self) -> PDD8R {
3486 PDD8R::_from({
3487 const MASK: bool = true;
3488 const OFFSET: u8 = 8;
3489 ((self.bits >> OFFSET) & MASK as u32) != 0
3490 })
3491 }
3492 #[doc = "Bit 9 - Port Data Direction"]
3493 #[inline]
3494 pub fn pdd9(&self) -> PDD9R {
3495 PDD9R::_from({
3496 const MASK: bool = true;
3497 const OFFSET: u8 = 9;
3498 ((self.bits >> OFFSET) & MASK as u32) != 0
3499 })
3500 }
3501 #[doc = "Bit 10 - Port Data Direction"]
3502 #[inline]
3503 pub fn pdd10(&self) -> PDD10R {
3504 PDD10R::_from({
3505 const MASK: bool = true;
3506 const OFFSET: u8 = 10;
3507 ((self.bits >> OFFSET) & MASK as u32) != 0
3508 })
3509 }
3510 #[doc = "Bit 11 - Port Data Direction"]
3511 #[inline]
3512 pub fn pdd11(&self) -> PDD11R {
3513 PDD11R::_from({
3514 const MASK: bool = true;
3515 const OFFSET: u8 = 11;
3516 ((self.bits >> OFFSET) & MASK as u32) != 0
3517 })
3518 }
3519 #[doc = "Bit 12 - Port Data Direction"]
3520 #[inline]
3521 pub fn pdd12(&self) -> PDD12R {
3522 PDD12R::_from({
3523 const MASK: bool = true;
3524 const OFFSET: u8 = 12;
3525 ((self.bits >> OFFSET) & MASK as u32) != 0
3526 })
3527 }
3528 #[doc = "Bit 13 - Port Data Direction"]
3529 #[inline]
3530 pub fn pdd13(&self) -> PDD13R {
3531 PDD13R::_from({
3532 const MASK: bool = true;
3533 const OFFSET: u8 = 13;
3534 ((self.bits >> OFFSET) & MASK as u32) != 0
3535 })
3536 }
3537 #[doc = "Bit 14 - Port Data Direction"]
3538 #[inline]
3539 pub fn pdd14(&self) -> PDD14R {
3540 PDD14R::_from({
3541 const MASK: bool = true;
3542 const OFFSET: u8 = 14;
3543 ((self.bits >> OFFSET) & MASK as u32) != 0
3544 })
3545 }
3546 #[doc = "Bit 15 - Port Data Direction"]
3547 #[inline]
3548 pub fn pdd15(&self) -> PDD15R {
3549 PDD15R::_from({
3550 const MASK: bool = true;
3551 const OFFSET: u8 = 15;
3552 ((self.bits >> OFFSET) & MASK as u32) != 0
3553 })
3554 }
3555 #[doc = "Bit 16 - Port Data Direction"]
3556 #[inline]
3557 pub fn pdd16(&self) -> PDD16R {
3558 PDD16R::_from({
3559 const MASK: bool = true;
3560 const OFFSET: u8 = 16;
3561 ((self.bits >> OFFSET) & MASK as u32) != 0
3562 })
3563 }
3564 #[doc = "Bit 17 - Port Data Direction"]
3565 #[inline]
3566 pub fn pdd17(&self) -> PDD17R {
3567 PDD17R::_from({
3568 const MASK: bool = true;
3569 const OFFSET: u8 = 17;
3570 ((self.bits >> OFFSET) & MASK as u32) != 0
3571 })
3572 }
3573 #[doc = "Bit 18 - Port Data Direction"]
3574 #[inline]
3575 pub fn pdd18(&self) -> PDD18R {
3576 PDD18R::_from({
3577 const MASK: bool = true;
3578 const OFFSET: u8 = 18;
3579 ((self.bits >> OFFSET) & MASK as u32) != 0
3580 })
3581 }
3582 #[doc = "Bit 19 - Port Data Direction"]
3583 #[inline]
3584 pub fn pdd19(&self) -> PDD19R {
3585 PDD19R::_from({
3586 const MASK: bool = true;
3587 const OFFSET: u8 = 19;
3588 ((self.bits >> OFFSET) & MASK as u32) != 0
3589 })
3590 }
3591 #[doc = "Bit 20 - Port Data Direction"]
3592 #[inline]
3593 pub fn pdd20(&self) -> PDD20R {
3594 PDD20R::_from({
3595 const MASK: bool = true;
3596 const OFFSET: u8 = 20;
3597 ((self.bits >> OFFSET) & MASK as u32) != 0
3598 })
3599 }
3600 #[doc = "Bit 21 - Port Data Direction"]
3601 #[inline]
3602 pub fn pdd21(&self) -> PDD21R {
3603 PDD21R::_from({
3604 const MASK: bool = true;
3605 const OFFSET: u8 = 21;
3606 ((self.bits >> OFFSET) & MASK as u32) != 0
3607 })
3608 }
3609 #[doc = "Bit 22 - Port Data Direction"]
3610 #[inline]
3611 pub fn pdd22(&self) -> PDD22R {
3612 PDD22R::_from({
3613 const MASK: bool = true;
3614 const OFFSET: u8 = 22;
3615 ((self.bits >> OFFSET) & MASK as u32) != 0
3616 })
3617 }
3618 #[doc = "Bit 23 - Port Data Direction"]
3619 #[inline]
3620 pub fn pdd23(&self) -> PDD23R {
3621 PDD23R::_from({
3622 const MASK: bool = true;
3623 const OFFSET: u8 = 23;
3624 ((self.bits >> OFFSET) & MASK as u32) != 0
3625 })
3626 }
3627 #[doc = "Bit 24 - Port Data Direction"]
3628 #[inline]
3629 pub fn pdd24(&self) -> PDD24R {
3630 PDD24R::_from({
3631 const MASK: bool = true;
3632 const OFFSET: u8 = 24;
3633 ((self.bits >> OFFSET) & MASK as u32) != 0
3634 })
3635 }
3636 #[doc = "Bit 25 - Port Data Direction"]
3637 #[inline]
3638 pub fn pdd25(&self) -> PDD25R {
3639 PDD25R::_from({
3640 const MASK: bool = true;
3641 const OFFSET: u8 = 25;
3642 ((self.bits >> OFFSET) & MASK as u32) != 0
3643 })
3644 }
3645 #[doc = "Bit 26 - Port Data Direction"]
3646 #[inline]
3647 pub fn pdd26(&self) -> PDD26R {
3648 PDD26R::_from({
3649 const MASK: bool = true;
3650 const OFFSET: u8 = 26;
3651 ((self.bits >> OFFSET) & MASK as u32) != 0
3652 })
3653 }
3654 #[doc = "Bit 27 - Port Data Direction"]
3655 #[inline]
3656 pub fn pdd27(&self) -> PDD27R {
3657 PDD27R::_from({
3658 const MASK: bool = true;
3659 const OFFSET: u8 = 27;
3660 ((self.bits >> OFFSET) & MASK as u32) != 0
3661 })
3662 }
3663 #[doc = "Bit 28 - Port Data Direction"]
3664 #[inline]
3665 pub fn pdd28(&self) -> PDD28R {
3666 PDD28R::_from({
3667 const MASK: bool = true;
3668 const OFFSET: u8 = 28;
3669 ((self.bits >> OFFSET) & MASK as u32) != 0
3670 })
3671 }
3672 #[doc = "Bit 29 - Port Data Direction"]
3673 #[inline]
3674 pub fn pdd29(&self) -> PDD29R {
3675 PDD29R::_from({
3676 const MASK: bool = true;
3677 const OFFSET: u8 = 29;
3678 ((self.bits >> OFFSET) & MASK as u32) != 0
3679 })
3680 }
3681 #[doc = "Bit 30 - Port Data Direction"]
3682 #[inline]
3683 pub fn pdd30(&self) -> PDD30R {
3684 PDD30R::_from({
3685 const MASK: bool = true;
3686 const OFFSET: u8 = 30;
3687 ((self.bits >> OFFSET) & MASK as u32) != 0
3688 })
3689 }
3690 #[doc = "Bit 31 - Port Data Direction"]
3691 #[inline]
3692 pub fn pdd31(&self) -> PDD31R {
3693 PDD31R::_from({
3694 const MASK: bool = true;
3695 const OFFSET: u8 = 31;
3696 ((self.bits >> OFFSET) & MASK as u32) != 0
3697 })
3698 }
3699}
3700impl W {
3701 #[doc = r" Reset value of the register"]
3702 #[inline]
3703 pub fn reset_value() -> W {
3704 W { bits: 0 }
3705 }
3706 #[doc = r" Writes raw bits to the register"]
3707 #[inline]
3708 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
3709 self.bits = bits;
3710 self
3711 }
3712 #[doc = "Bit 0 - Port Data Direction"]
3713 #[inline]
3714 pub fn pdd0(&mut self) -> _PDD0W {
3715 _PDD0W { w: self }
3716 }
3717 #[doc = "Bit 1 - Port Data Direction"]
3718 #[inline]
3719 pub fn pdd1(&mut self) -> _PDD1W {
3720 _PDD1W { w: self }
3721 }
3722 #[doc = "Bit 2 - Port Data Direction"]
3723 #[inline]
3724 pub fn pdd2(&mut self) -> _PDD2W {
3725 _PDD2W { w: self }
3726 }
3727 #[doc = "Bit 3 - Port Data Direction"]
3728 #[inline]
3729 pub fn pdd3(&mut self) -> _PDD3W {
3730 _PDD3W { w: self }
3731 }
3732 #[doc = "Bit 4 - Port Data Direction"]
3733 #[inline]
3734 pub fn pdd4(&mut self) -> _PDD4W {
3735 _PDD4W { w: self }
3736 }
3737 #[doc = "Bit 5 - Port Data Direction"]
3738 #[inline]
3739 pub fn pdd5(&mut self) -> _PDD5W {
3740 _PDD5W { w: self }
3741 }
3742 #[doc = "Bit 6 - Port Data Direction"]
3743 #[inline]
3744 pub fn pdd6(&mut self) -> _PDD6W {
3745 _PDD6W { w: self }
3746 }
3747 #[doc = "Bit 7 - Port Data Direction"]
3748 #[inline]
3749 pub fn pdd7(&mut self) -> _PDD7W {
3750 _PDD7W { w: self }
3751 }
3752 #[doc = "Bit 8 - Port Data Direction"]
3753 #[inline]
3754 pub fn pdd8(&mut self) -> _PDD8W {
3755 _PDD8W { w: self }
3756 }
3757 #[doc = "Bit 9 - Port Data Direction"]
3758 #[inline]
3759 pub fn pdd9(&mut self) -> _PDD9W {
3760 _PDD9W { w: self }
3761 }
3762 #[doc = "Bit 10 - Port Data Direction"]
3763 #[inline]
3764 pub fn pdd10(&mut self) -> _PDD10W {
3765 _PDD10W { w: self }
3766 }
3767 #[doc = "Bit 11 - Port Data Direction"]
3768 #[inline]
3769 pub fn pdd11(&mut self) -> _PDD11W {
3770 _PDD11W { w: self }
3771 }
3772 #[doc = "Bit 12 - Port Data Direction"]
3773 #[inline]
3774 pub fn pdd12(&mut self) -> _PDD12W {
3775 _PDD12W { w: self }
3776 }
3777 #[doc = "Bit 13 - Port Data Direction"]
3778 #[inline]
3779 pub fn pdd13(&mut self) -> _PDD13W {
3780 _PDD13W { w: self }
3781 }
3782 #[doc = "Bit 14 - Port Data Direction"]
3783 #[inline]
3784 pub fn pdd14(&mut self) -> _PDD14W {
3785 _PDD14W { w: self }
3786 }
3787 #[doc = "Bit 15 - Port Data Direction"]
3788 #[inline]
3789 pub fn pdd15(&mut self) -> _PDD15W {
3790 _PDD15W { w: self }
3791 }
3792 #[doc = "Bit 16 - Port Data Direction"]
3793 #[inline]
3794 pub fn pdd16(&mut self) -> _PDD16W {
3795 _PDD16W { w: self }
3796 }
3797 #[doc = "Bit 17 - Port Data Direction"]
3798 #[inline]
3799 pub fn pdd17(&mut self) -> _PDD17W {
3800 _PDD17W { w: self }
3801 }
3802 #[doc = "Bit 18 - Port Data Direction"]
3803 #[inline]
3804 pub fn pdd18(&mut self) -> _PDD18W {
3805 _PDD18W { w: self }
3806 }
3807 #[doc = "Bit 19 - Port Data Direction"]
3808 #[inline]
3809 pub fn pdd19(&mut self) -> _PDD19W {
3810 _PDD19W { w: self }
3811 }
3812 #[doc = "Bit 20 - Port Data Direction"]
3813 #[inline]
3814 pub fn pdd20(&mut self) -> _PDD20W {
3815 _PDD20W { w: self }
3816 }
3817 #[doc = "Bit 21 - Port Data Direction"]
3818 #[inline]
3819 pub fn pdd21(&mut self) -> _PDD21W {
3820 _PDD21W { w: self }
3821 }
3822 #[doc = "Bit 22 - Port Data Direction"]
3823 #[inline]
3824 pub fn pdd22(&mut self) -> _PDD22W {
3825 _PDD22W { w: self }
3826 }
3827 #[doc = "Bit 23 - Port Data Direction"]
3828 #[inline]
3829 pub fn pdd23(&mut self) -> _PDD23W {
3830 _PDD23W { w: self }
3831 }
3832 #[doc = "Bit 24 - Port Data Direction"]
3833 #[inline]
3834 pub fn pdd24(&mut self) -> _PDD24W {
3835 _PDD24W { w: self }
3836 }
3837 #[doc = "Bit 25 - Port Data Direction"]
3838 #[inline]
3839 pub fn pdd25(&mut self) -> _PDD25W {
3840 _PDD25W { w: self }
3841 }
3842 #[doc = "Bit 26 - Port Data Direction"]
3843 #[inline]
3844 pub fn pdd26(&mut self) -> _PDD26W {
3845 _PDD26W { w: self }
3846 }
3847 #[doc = "Bit 27 - Port Data Direction"]
3848 #[inline]
3849 pub fn pdd27(&mut self) -> _PDD27W {
3850 _PDD27W { w: self }
3851 }
3852 #[doc = "Bit 28 - Port Data Direction"]
3853 #[inline]
3854 pub fn pdd28(&mut self) -> _PDD28W {
3855 _PDD28W { w: self }
3856 }
3857 #[doc = "Bit 29 - Port Data Direction"]
3858 #[inline]
3859 pub fn pdd29(&mut self) -> _PDD29W {
3860 _PDD29W { w: self }
3861 }
3862 #[doc = "Bit 30 - Port Data Direction"]
3863 #[inline]
3864 pub fn pdd30(&mut self) -> _PDD30W {
3865 _PDD30W { w: self }
3866 }
3867 #[doc = "Bit 31 - Port Data Direction"]
3868 #[inline]
3869 pub fn pdd31(&mut self) -> _PDD31W {
3870 _PDD31W { w: self }
3871 }
3872}