1#[doc = "Register `DIR` reader"]
2pub struct R(crate::R<DIR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DIR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DIR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DIR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `DIR` writer"]
17pub struct W(crate::W<DIR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<DIR_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<DIR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<DIR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `PIN0` reader - Pin 0"]
38pub type PIN0_R = crate::BitReader<PIN0_A>;
39#[doc = "Pin 0\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum PIN0_A {
42 #[doc = "0: Pin set as input"]
43 INPUT = 0,
44 #[doc = "1: Pin set as output"]
45 OUTPUT = 1,
46}
47impl From<PIN0_A> for bool {
48 #[inline(always)]
49 fn from(variant: PIN0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl PIN0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> PIN0_A {
57 match self.bits {
58 false => PIN0_A::INPUT,
59 true => PIN0_A::OUTPUT,
60 }
61 }
62 #[doc = "Checks if the value of the field is `INPUT`"]
63 #[inline(always)]
64 pub fn is_input(&self) -> bool {
65 *self == PIN0_A::INPUT
66 }
67 #[doc = "Checks if the value of the field is `OUTPUT`"]
68 #[inline(always)]
69 pub fn is_output(&self) -> bool {
70 *self == PIN0_A::OUTPUT
71 }
72}
73#[doc = "Field `PIN0` writer - Pin 0"]
74pub type PIN0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN0_A, O>;
75impl<'a, const O: u8> PIN0_W<'a, O> {
76 #[doc = "Pin set as input"]
77 #[inline(always)]
78 pub fn input(self) -> &'a mut W {
79 self.variant(PIN0_A::INPUT)
80 }
81 #[doc = "Pin set as output"]
82 #[inline(always)]
83 pub fn output(self) -> &'a mut W {
84 self.variant(PIN0_A::OUTPUT)
85 }
86}
87#[doc = "Field `PIN1` reader - Pin 1"]
88pub type PIN1_R = crate::BitReader<PIN1_A>;
89#[doc = "Pin 1\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum PIN1_A {
92 #[doc = "0: Pin set as input"]
93 INPUT = 0,
94 #[doc = "1: Pin set as output"]
95 OUTPUT = 1,
96}
97impl From<PIN1_A> for bool {
98 #[inline(always)]
99 fn from(variant: PIN1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl PIN1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> PIN1_A {
107 match self.bits {
108 false => PIN1_A::INPUT,
109 true => PIN1_A::OUTPUT,
110 }
111 }
112 #[doc = "Checks if the value of the field is `INPUT`"]
113 #[inline(always)]
114 pub fn is_input(&self) -> bool {
115 *self == PIN1_A::INPUT
116 }
117 #[doc = "Checks if the value of the field is `OUTPUT`"]
118 #[inline(always)]
119 pub fn is_output(&self) -> bool {
120 *self == PIN1_A::OUTPUT
121 }
122}
123#[doc = "Field `PIN1` writer - Pin 1"]
124pub type PIN1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN1_A, O>;
125impl<'a, const O: u8> PIN1_W<'a, O> {
126 #[doc = "Pin set as input"]
127 #[inline(always)]
128 pub fn input(self) -> &'a mut W {
129 self.variant(PIN1_A::INPUT)
130 }
131 #[doc = "Pin set as output"]
132 #[inline(always)]
133 pub fn output(self) -> &'a mut W {
134 self.variant(PIN1_A::OUTPUT)
135 }
136}
137#[doc = "Field `PIN2` reader - Pin 2"]
138pub type PIN2_R = crate::BitReader<PIN2_A>;
139#[doc = "Pin 2\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum PIN2_A {
142 #[doc = "0: Pin set as input"]
143 INPUT = 0,
144 #[doc = "1: Pin set as output"]
145 OUTPUT = 1,
146}
147impl From<PIN2_A> for bool {
148 #[inline(always)]
149 fn from(variant: PIN2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl PIN2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> PIN2_A {
157 match self.bits {
158 false => PIN2_A::INPUT,
159 true => PIN2_A::OUTPUT,
160 }
161 }
162 #[doc = "Checks if the value of the field is `INPUT`"]
163 #[inline(always)]
164 pub fn is_input(&self) -> bool {
165 *self == PIN2_A::INPUT
166 }
167 #[doc = "Checks if the value of the field is `OUTPUT`"]
168 #[inline(always)]
169 pub fn is_output(&self) -> bool {
170 *self == PIN2_A::OUTPUT
171 }
172}
173#[doc = "Field `PIN2` writer - Pin 2"]
174pub type PIN2_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN2_A, O>;
175impl<'a, const O: u8> PIN2_W<'a, O> {
176 #[doc = "Pin set as input"]
177 #[inline(always)]
178 pub fn input(self) -> &'a mut W {
179 self.variant(PIN2_A::INPUT)
180 }
181 #[doc = "Pin set as output"]
182 #[inline(always)]
183 pub fn output(self) -> &'a mut W {
184 self.variant(PIN2_A::OUTPUT)
185 }
186}
187#[doc = "Field `PIN3` reader - Pin 3"]
188pub type PIN3_R = crate::BitReader<PIN3_A>;
189#[doc = "Pin 3\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum PIN3_A {
192 #[doc = "0: Pin set as input"]
193 INPUT = 0,
194 #[doc = "1: Pin set as output"]
195 OUTPUT = 1,
196}
197impl From<PIN3_A> for bool {
198 #[inline(always)]
199 fn from(variant: PIN3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl PIN3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> PIN3_A {
207 match self.bits {
208 false => PIN3_A::INPUT,
209 true => PIN3_A::OUTPUT,
210 }
211 }
212 #[doc = "Checks if the value of the field is `INPUT`"]
213 #[inline(always)]
214 pub fn is_input(&self) -> bool {
215 *self == PIN3_A::INPUT
216 }
217 #[doc = "Checks if the value of the field is `OUTPUT`"]
218 #[inline(always)]
219 pub fn is_output(&self) -> bool {
220 *self == PIN3_A::OUTPUT
221 }
222}
223#[doc = "Field `PIN3` writer - Pin 3"]
224pub type PIN3_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN3_A, O>;
225impl<'a, const O: u8> PIN3_W<'a, O> {
226 #[doc = "Pin set as input"]
227 #[inline(always)]
228 pub fn input(self) -> &'a mut W {
229 self.variant(PIN3_A::INPUT)
230 }
231 #[doc = "Pin set as output"]
232 #[inline(always)]
233 pub fn output(self) -> &'a mut W {
234 self.variant(PIN3_A::OUTPUT)
235 }
236}
237#[doc = "Field `PIN4` reader - Pin 4"]
238pub type PIN4_R = crate::BitReader<PIN4_A>;
239#[doc = "Pin 4\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum PIN4_A {
242 #[doc = "0: Pin set as input"]
243 INPUT = 0,
244 #[doc = "1: Pin set as output"]
245 OUTPUT = 1,
246}
247impl From<PIN4_A> for bool {
248 #[inline(always)]
249 fn from(variant: PIN4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl PIN4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> PIN4_A {
257 match self.bits {
258 false => PIN4_A::INPUT,
259 true => PIN4_A::OUTPUT,
260 }
261 }
262 #[doc = "Checks if the value of the field is `INPUT`"]
263 #[inline(always)]
264 pub fn is_input(&self) -> bool {
265 *self == PIN4_A::INPUT
266 }
267 #[doc = "Checks if the value of the field is `OUTPUT`"]
268 #[inline(always)]
269 pub fn is_output(&self) -> bool {
270 *self == PIN4_A::OUTPUT
271 }
272}
273#[doc = "Field `PIN4` writer - Pin 4"]
274pub type PIN4_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN4_A, O>;
275impl<'a, const O: u8> PIN4_W<'a, O> {
276 #[doc = "Pin set as input"]
277 #[inline(always)]
278 pub fn input(self) -> &'a mut W {
279 self.variant(PIN4_A::INPUT)
280 }
281 #[doc = "Pin set as output"]
282 #[inline(always)]
283 pub fn output(self) -> &'a mut W {
284 self.variant(PIN4_A::OUTPUT)
285 }
286}
287#[doc = "Field `PIN5` reader - Pin 5"]
288pub type PIN5_R = crate::BitReader<PIN5_A>;
289#[doc = "Pin 5\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum PIN5_A {
292 #[doc = "0: Pin set as input"]
293 INPUT = 0,
294 #[doc = "1: Pin set as output"]
295 OUTPUT = 1,
296}
297impl From<PIN5_A> for bool {
298 #[inline(always)]
299 fn from(variant: PIN5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl PIN5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> PIN5_A {
307 match self.bits {
308 false => PIN5_A::INPUT,
309 true => PIN5_A::OUTPUT,
310 }
311 }
312 #[doc = "Checks if the value of the field is `INPUT`"]
313 #[inline(always)]
314 pub fn is_input(&self) -> bool {
315 *self == PIN5_A::INPUT
316 }
317 #[doc = "Checks if the value of the field is `OUTPUT`"]
318 #[inline(always)]
319 pub fn is_output(&self) -> bool {
320 *self == PIN5_A::OUTPUT
321 }
322}
323#[doc = "Field `PIN5` writer - Pin 5"]
324pub type PIN5_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN5_A, O>;
325impl<'a, const O: u8> PIN5_W<'a, O> {
326 #[doc = "Pin set as input"]
327 #[inline(always)]
328 pub fn input(self) -> &'a mut W {
329 self.variant(PIN5_A::INPUT)
330 }
331 #[doc = "Pin set as output"]
332 #[inline(always)]
333 pub fn output(self) -> &'a mut W {
334 self.variant(PIN5_A::OUTPUT)
335 }
336}
337#[doc = "Field `PIN6` reader - Pin 6"]
338pub type PIN6_R = crate::BitReader<PIN6_A>;
339#[doc = "Pin 6\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum PIN6_A {
342 #[doc = "0: Pin set as input"]
343 INPUT = 0,
344 #[doc = "1: Pin set as output"]
345 OUTPUT = 1,
346}
347impl From<PIN6_A> for bool {
348 #[inline(always)]
349 fn from(variant: PIN6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl PIN6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> PIN6_A {
357 match self.bits {
358 false => PIN6_A::INPUT,
359 true => PIN6_A::OUTPUT,
360 }
361 }
362 #[doc = "Checks if the value of the field is `INPUT`"]
363 #[inline(always)]
364 pub fn is_input(&self) -> bool {
365 *self == PIN6_A::INPUT
366 }
367 #[doc = "Checks if the value of the field is `OUTPUT`"]
368 #[inline(always)]
369 pub fn is_output(&self) -> bool {
370 *self == PIN6_A::OUTPUT
371 }
372}
373#[doc = "Field `PIN6` writer - Pin 6"]
374pub type PIN6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN6_A, O>;
375impl<'a, const O: u8> PIN6_W<'a, O> {
376 #[doc = "Pin set as input"]
377 #[inline(always)]
378 pub fn input(self) -> &'a mut W {
379 self.variant(PIN6_A::INPUT)
380 }
381 #[doc = "Pin set as output"]
382 #[inline(always)]
383 pub fn output(self) -> &'a mut W {
384 self.variant(PIN6_A::OUTPUT)
385 }
386}
387#[doc = "Field `PIN7` reader - Pin 7"]
388pub type PIN7_R = crate::BitReader<PIN7_A>;
389#[doc = "Pin 7\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum PIN7_A {
392 #[doc = "0: Pin set as input"]
393 INPUT = 0,
394 #[doc = "1: Pin set as output"]
395 OUTPUT = 1,
396}
397impl From<PIN7_A> for bool {
398 #[inline(always)]
399 fn from(variant: PIN7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl PIN7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> PIN7_A {
407 match self.bits {
408 false => PIN7_A::INPUT,
409 true => PIN7_A::OUTPUT,
410 }
411 }
412 #[doc = "Checks if the value of the field is `INPUT`"]
413 #[inline(always)]
414 pub fn is_input(&self) -> bool {
415 *self == PIN7_A::INPUT
416 }
417 #[doc = "Checks if the value of the field is `OUTPUT`"]
418 #[inline(always)]
419 pub fn is_output(&self) -> bool {
420 *self == PIN7_A::OUTPUT
421 }
422}
423#[doc = "Field `PIN7` writer - Pin 7"]
424pub type PIN7_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN7_A, O>;
425impl<'a, const O: u8> PIN7_W<'a, O> {
426 #[doc = "Pin set as input"]
427 #[inline(always)]
428 pub fn input(self) -> &'a mut W {
429 self.variant(PIN7_A::INPUT)
430 }
431 #[doc = "Pin set as output"]
432 #[inline(always)]
433 pub fn output(self) -> &'a mut W {
434 self.variant(PIN7_A::OUTPUT)
435 }
436}
437#[doc = "Field `PIN8` reader - Pin 8"]
438pub type PIN8_R = crate::BitReader<PIN8_A>;
439#[doc = "Pin 8\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum PIN8_A {
442 #[doc = "0: Pin set as input"]
443 INPUT = 0,
444 #[doc = "1: Pin set as output"]
445 OUTPUT = 1,
446}
447impl From<PIN8_A> for bool {
448 #[inline(always)]
449 fn from(variant: PIN8_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl PIN8_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> PIN8_A {
457 match self.bits {
458 false => PIN8_A::INPUT,
459 true => PIN8_A::OUTPUT,
460 }
461 }
462 #[doc = "Checks if the value of the field is `INPUT`"]
463 #[inline(always)]
464 pub fn is_input(&self) -> bool {
465 *self == PIN8_A::INPUT
466 }
467 #[doc = "Checks if the value of the field is `OUTPUT`"]
468 #[inline(always)]
469 pub fn is_output(&self) -> bool {
470 *self == PIN8_A::OUTPUT
471 }
472}
473#[doc = "Field `PIN8` writer - Pin 8"]
474pub type PIN8_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN8_A, O>;
475impl<'a, const O: u8> PIN8_W<'a, O> {
476 #[doc = "Pin set as input"]
477 #[inline(always)]
478 pub fn input(self) -> &'a mut W {
479 self.variant(PIN8_A::INPUT)
480 }
481 #[doc = "Pin set as output"]
482 #[inline(always)]
483 pub fn output(self) -> &'a mut W {
484 self.variant(PIN8_A::OUTPUT)
485 }
486}
487#[doc = "Field `PIN9` reader - Pin 9"]
488pub type PIN9_R = crate::BitReader<PIN9_A>;
489#[doc = "Pin 9\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum PIN9_A {
492 #[doc = "0: Pin set as input"]
493 INPUT = 0,
494 #[doc = "1: Pin set as output"]
495 OUTPUT = 1,
496}
497impl From<PIN9_A> for bool {
498 #[inline(always)]
499 fn from(variant: PIN9_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl PIN9_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> PIN9_A {
507 match self.bits {
508 false => PIN9_A::INPUT,
509 true => PIN9_A::OUTPUT,
510 }
511 }
512 #[doc = "Checks if the value of the field is `INPUT`"]
513 #[inline(always)]
514 pub fn is_input(&self) -> bool {
515 *self == PIN9_A::INPUT
516 }
517 #[doc = "Checks if the value of the field is `OUTPUT`"]
518 #[inline(always)]
519 pub fn is_output(&self) -> bool {
520 *self == PIN9_A::OUTPUT
521 }
522}
523#[doc = "Field `PIN9` writer - Pin 9"]
524pub type PIN9_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN9_A, O>;
525impl<'a, const O: u8> PIN9_W<'a, O> {
526 #[doc = "Pin set as input"]
527 #[inline(always)]
528 pub fn input(self) -> &'a mut W {
529 self.variant(PIN9_A::INPUT)
530 }
531 #[doc = "Pin set as output"]
532 #[inline(always)]
533 pub fn output(self) -> &'a mut W {
534 self.variant(PIN9_A::OUTPUT)
535 }
536}
537#[doc = "Field `PIN10` reader - Pin 10"]
538pub type PIN10_R = crate::BitReader<PIN10_A>;
539#[doc = "Pin 10\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum PIN10_A {
542 #[doc = "0: Pin set as input"]
543 INPUT = 0,
544 #[doc = "1: Pin set as output"]
545 OUTPUT = 1,
546}
547impl From<PIN10_A> for bool {
548 #[inline(always)]
549 fn from(variant: PIN10_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl PIN10_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> PIN10_A {
557 match self.bits {
558 false => PIN10_A::INPUT,
559 true => PIN10_A::OUTPUT,
560 }
561 }
562 #[doc = "Checks if the value of the field is `INPUT`"]
563 #[inline(always)]
564 pub fn is_input(&self) -> bool {
565 *self == PIN10_A::INPUT
566 }
567 #[doc = "Checks if the value of the field is `OUTPUT`"]
568 #[inline(always)]
569 pub fn is_output(&self) -> bool {
570 *self == PIN10_A::OUTPUT
571 }
572}
573#[doc = "Field `PIN10` writer - Pin 10"]
574pub type PIN10_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN10_A, O>;
575impl<'a, const O: u8> PIN10_W<'a, O> {
576 #[doc = "Pin set as input"]
577 #[inline(always)]
578 pub fn input(self) -> &'a mut W {
579 self.variant(PIN10_A::INPUT)
580 }
581 #[doc = "Pin set as output"]
582 #[inline(always)]
583 pub fn output(self) -> &'a mut W {
584 self.variant(PIN10_A::OUTPUT)
585 }
586}
587#[doc = "Field `PIN11` reader - Pin 11"]
588pub type PIN11_R = crate::BitReader<PIN11_A>;
589#[doc = "Pin 11\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum PIN11_A {
592 #[doc = "0: Pin set as input"]
593 INPUT = 0,
594 #[doc = "1: Pin set as output"]
595 OUTPUT = 1,
596}
597impl From<PIN11_A> for bool {
598 #[inline(always)]
599 fn from(variant: PIN11_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl PIN11_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> PIN11_A {
607 match self.bits {
608 false => PIN11_A::INPUT,
609 true => PIN11_A::OUTPUT,
610 }
611 }
612 #[doc = "Checks if the value of the field is `INPUT`"]
613 #[inline(always)]
614 pub fn is_input(&self) -> bool {
615 *self == PIN11_A::INPUT
616 }
617 #[doc = "Checks if the value of the field is `OUTPUT`"]
618 #[inline(always)]
619 pub fn is_output(&self) -> bool {
620 *self == PIN11_A::OUTPUT
621 }
622}
623#[doc = "Field `PIN11` writer - Pin 11"]
624pub type PIN11_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN11_A, O>;
625impl<'a, const O: u8> PIN11_W<'a, O> {
626 #[doc = "Pin set as input"]
627 #[inline(always)]
628 pub fn input(self) -> &'a mut W {
629 self.variant(PIN11_A::INPUT)
630 }
631 #[doc = "Pin set as output"]
632 #[inline(always)]
633 pub fn output(self) -> &'a mut W {
634 self.variant(PIN11_A::OUTPUT)
635 }
636}
637#[doc = "Field `PIN12` reader - Pin 12"]
638pub type PIN12_R = crate::BitReader<PIN12_A>;
639#[doc = "Pin 12\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum PIN12_A {
642 #[doc = "0: Pin set as input"]
643 INPUT = 0,
644 #[doc = "1: Pin set as output"]
645 OUTPUT = 1,
646}
647impl From<PIN12_A> for bool {
648 #[inline(always)]
649 fn from(variant: PIN12_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl PIN12_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> PIN12_A {
657 match self.bits {
658 false => PIN12_A::INPUT,
659 true => PIN12_A::OUTPUT,
660 }
661 }
662 #[doc = "Checks if the value of the field is `INPUT`"]
663 #[inline(always)]
664 pub fn is_input(&self) -> bool {
665 *self == PIN12_A::INPUT
666 }
667 #[doc = "Checks if the value of the field is `OUTPUT`"]
668 #[inline(always)]
669 pub fn is_output(&self) -> bool {
670 *self == PIN12_A::OUTPUT
671 }
672}
673#[doc = "Field `PIN12` writer - Pin 12"]
674pub type PIN12_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN12_A, O>;
675impl<'a, const O: u8> PIN12_W<'a, O> {
676 #[doc = "Pin set as input"]
677 #[inline(always)]
678 pub fn input(self) -> &'a mut W {
679 self.variant(PIN12_A::INPUT)
680 }
681 #[doc = "Pin set as output"]
682 #[inline(always)]
683 pub fn output(self) -> &'a mut W {
684 self.variant(PIN12_A::OUTPUT)
685 }
686}
687#[doc = "Field `PIN13` reader - Pin 13"]
688pub type PIN13_R = crate::BitReader<PIN13_A>;
689#[doc = "Pin 13\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum PIN13_A {
692 #[doc = "0: Pin set as input"]
693 INPUT = 0,
694 #[doc = "1: Pin set as output"]
695 OUTPUT = 1,
696}
697impl From<PIN13_A> for bool {
698 #[inline(always)]
699 fn from(variant: PIN13_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl PIN13_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> PIN13_A {
707 match self.bits {
708 false => PIN13_A::INPUT,
709 true => PIN13_A::OUTPUT,
710 }
711 }
712 #[doc = "Checks if the value of the field is `INPUT`"]
713 #[inline(always)]
714 pub fn is_input(&self) -> bool {
715 *self == PIN13_A::INPUT
716 }
717 #[doc = "Checks if the value of the field is `OUTPUT`"]
718 #[inline(always)]
719 pub fn is_output(&self) -> bool {
720 *self == PIN13_A::OUTPUT
721 }
722}
723#[doc = "Field `PIN13` writer - Pin 13"]
724pub type PIN13_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN13_A, O>;
725impl<'a, const O: u8> PIN13_W<'a, O> {
726 #[doc = "Pin set as input"]
727 #[inline(always)]
728 pub fn input(self) -> &'a mut W {
729 self.variant(PIN13_A::INPUT)
730 }
731 #[doc = "Pin set as output"]
732 #[inline(always)]
733 pub fn output(self) -> &'a mut W {
734 self.variant(PIN13_A::OUTPUT)
735 }
736}
737#[doc = "Field `PIN14` reader - Pin 14"]
738pub type PIN14_R = crate::BitReader<PIN14_A>;
739#[doc = "Pin 14\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum PIN14_A {
742 #[doc = "0: Pin set as input"]
743 INPUT = 0,
744 #[doc = "1: Pin set as output"]
745 OUTPUT = 1,
746}
747impl From<PIN14_A> for bool {
748 #[inline(always)]
749 fn from(variant: PIN14_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl PIN14_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> PIN14_A {
757 match self.bits {
758 false => PIN14_A::INPUT,
759 true => PIN14_A::OUTPUT,
760 }
761 }
762 #[doc = "Checks if the value of the field is `INPUT`"]
763 #[inline(always)]
764 pub fn is_input(&self) -> bool {
765 *self == PIN14_A::INPUT
766 }
767 #[doc = "Checks if the value of the field is `OUTPUT`"]
768 #[inline(always)]
769 pub fn is_output(&self) -> bool {
770 *self == PIN14_A::OUTPUT
771 }
772}
773#[doc = "Field `PIN14` writer - Pin 14"]
774pub type PIN14_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN14_A, O>;
775impl<'a, const O: u8> PIN14_W<'a, O> {
776 #[doc = "Pin set as input"]
777 #[inline(always)]
778 pub fn input(self) -> &'a mut W {
779 self.variant(PIN14_A::INPUT)
780 }
781 #[doc = "Pin set as output"]
782 #[inline(always)]
783 pub fn output(self) -> &'a mut W {
784 self.variant(PIN14_A::OUTPUT)
785 }
786}
787#[doc = "Field `PIN15` reader - Pin 15"]
788pub type PIN15_R = crate::BitReader<PIN15_A>;
789#[doc = "Pin 15\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum PIN15_A {
792 #[doc = "0: Pin set as input"]
793 INPUT = 0,
794 #[doc = "1: Pin set as output"]
795 OUTPUT = 1,
796}
797impl From<PIN15_A> for bool {
798 #[inline(always)]
799 fn from(variant: PIN15_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl PIN15_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> PIN15_A {
807 match self.bits {
808 false => PIN15_A::INPUT,
809 true => PIN15_A::OUTPUT,
810 }
811 }
812 #[doc = "Checks if the value of the field is `INPUT`"]
813 #[inline(always)]
814 pub fn is_input(&self) -> bool {
815 *self == PIN15_A::INPUT
816 }
817 #[doc = "Checks if the value of the field is `OUTPUT`"]
818 #[inline(always)]
819 pub fn is_output(&self) -> bool {
820 *self == PIN15_A::OUTPUT
821 }
822}
823#[doc = "Field `PIN15` writer - Pin 15"]
824pub type PIN15_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN15_A, O>;
825impl<'a, const O: u8> PIN15_W<'a, O> {
826 #[doc = "Pin set as input"]
827 #[inline(always)]
828 pub fn input(self) -> &'a mut W {
829 self.variant(PIN15_A::INPUT)
830 }
831 #[doc = "Pin set as output"]
832 #[inline(always)]
833 pub fn output(self) -> &'a mut W {
834 self.variant(PIN15_A::OUTPUT)
835 }
836}
837#[doc = "Field `PIN16` reader - Pin 16"]
838pub type PIN16_R = crate::BitReader<PIN16_A>;
839#[doc = "Pin 16\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq)]
841pub enum PIN16_A {
842 #[doc = "0: Pin set as input"]
843 INPUT = 0,
844 #[doc = "1: Pin set as output"]
845 OUTPUT = 1,
846}
847impl From<PIN16_A> for bool {
848 #[inline(always)]
849 fn from(variant: PIN16_A) -> Self {
850 variant as u8 != 0
851 }
852}
853impl PIN16_R {
854 #[doc = "Get enumerated values variant"]
855 #[inline(always)]
856 pub fn variant(&self) -> PIN16_A {
857 match self.bits {
858 false => PIN16_A::INPUT,
859 true => PIN16_A::OUTPUT,
860 }
861 }
862 #[doc = "Checks if the value of the field is `INPUT`"]
863 #[inline(always)]
864 pub fn is_input(&self) -> bool {
865 *self == PIN16_A::INPUT
866 }
867 #[doc = "Checks if the value of the field is `OUTPUT`"]
868 #[inline(always)]
869 pub fn is_output(&self) -> bool {
870 *self == PIN16_A::OUTPUT
871 }
872}
873#[doc = "Field `PIN16` writer - Pin 16"]
874pub type PIN16_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN16_A, O>;
875impl<'a, const O: u8> PIN16_W<'a, O> {
876 #[doc = "Pin set as input"]
877 #[inline(always)]
878 pub fn input(self) -> &'a mut W {
879 self.variant(PIN16_A::INPUT)
880 }
881 #[doc = "Pin set as output"]
882 #[inline(always)]
883 pub fn output(self) -> &'a mut W {
884 self.variant(PIN16_A::OUTPUT)
885 }
886}
887#[doc = "Field `PIN17` reader - Pin 17"]
888pub type PIN17_R = crate::BitReader<PIN17_A>;
889#[doc = "Pin 17\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq)]
891pub enum PIN17_A {
892 #[doc = "0: Pin set as input"]
893 INPUT = 0,
894 #[doc = "1: Pin set as output"]
895 OUTPUT = 1,
896}
897impl From<PIN17_A> for bool {
898 #[inline(always)]
899 fn from(variant: PIN17_A) -> Self {
900 variant as u8 != 0
901 }
902}
903impl PIN17_R {
904 #[doc = "Get enumerated values variant"]
905 #[inline(always)]
906 pub fn variant(&self) -> PIN17_A {
907 match self.bits {
908 false => PIN17_A::INPUT,
909 true => PIN17_A::OUTPUT,
910 }
911 }
912 #[doc = "Checks if the value of the field is `INPUT`"]
913 #[inline(always)]
914 pub fn is_input(&self) -> bool {
915 *self == PIN17_A::INPUT
916 }
917 #[doc = "Checks if the value of the field is `OUTPUT`"]
918 #[inline(always)]
919 pub fn is_output(&self) -> bool {
920 *self == PIN17_A::OUTPUT
921 }
922}
923#[doc = "Field `PIN17` writer - Pin 17"]
924pub type PIN17_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN17_A, O>;
925impl<'a, const O: u8> PIN17_W<'a, O> {
926 #[doc = "Pin set as input"]
927 #[inline(always)]
928 pub fn input(self) -> &'a mut W {
929 self.variant(PIN17_A::INPUT)
930 }
931 #[doc = "Pin set as output"]
932 #[inline(always)]
933 pub fn output(self) -> &'a mut W {
934 self.variant(PIN17_A::OUTPUT)
935 }
936}
937#[doc = "Field `PIN18` reader - Pin 18"]
938pub type PIN18_R = crate::BitReader<PIN18_A>;
939#[doc = "Pin 18\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq)]
941pub enum PIN18_A {
942 #[doc = "0: Pin set as input"]
943 INPUT = 0,
944 #[doc = "1: Pin set as output"]
945 OUTPUT = 1,
946}
947impl From<PIN18_A> for bool {
948 #[inline(always)]
949 fn from(variant: PIN18_A) -> Self {
950 variant as u8 != 0
951 }
952}
953impl PIN18_R {
954 #[doc = "Get enumerated values variant"]
955 #[inline(always)]
956 pub fn variant(&self) -> PIN18_A {
957 match self.bits {
958 false => PIN18_A::INPUT,
959 true => PIN18_A::OUTPUT,
960 }
961 }
962 #[doc = "Checks if the value of the field is `INPUT`"]
963 #[inline(always)]
964 pub fn is_input(&self) -> bool {
965 *self == PIN18_A::INPUT
966 }
967 #[doc = "Checks if the value of the field is `OUTPUT`"]
968 #[inline(always)]
969 pub fn is_output(&self) -> bool {
970 *self == PIN18_A::OUTPUT
971 }
972}
973#[doc = "Field `PIN18` writer - Pin 18"]
974pub type PIN18_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN18_A, O>;
975impl<'a, const O: u8> PIN18_W<'a, O> {
976 #[doc = "Pin set as input"]
977 #[inline(always)]
978 pub fn input(self) -> &'a mut W {
979 self.variant(PIN18_A::INPUT)
980 }
981 #[doc = "Pin set as output"]
982 #[inline(always)]
983 pub fn output(self) -> &'a mut W {
984 self.variant(PIN18_A::OUTPUT)
985 }
986}
987#[doc = "Field `PIN19` reader - Pin 19"]
988pub type PIN19_R = crate::BitReader<PIN19_A>;
989#[doc = "Pin 19\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq)]
991pub enum PIN19_A {
992 #[doc = "0: Pin set as input"]
993 INPUT = 0,
994 #[doc = "1: Pin set as output"]
995 OUTPUT = 1,
996}
997impl From<PIN19_A> for bool {
998 #[inline(always)]
999 fn from(variant: PIN19_A) -> Self {
1000 variant as u8 != 0
1001 }
1002}
1003impl PIN19_R {
1004 #[doc = "Get enumerated values variant"]
1005 #[inline(always)]
1006 pub fn variant(&self) -> PIN19_A {
1007 match self.bits {
1008 false => PIN19_A::INPUT,
1009 true => PIN19_A::OUTPUT,
1010 }
1011 }
1012 #[doc = "Checks if the value of the field is `INPUT`"]
1013 #[inline(always)]
1014 pub fn is_input(&self) -> bool {
1015 *self == PIN19_A::INPUT
1016 }
1017 #[doc = "Checks if the value of the field is `OUTPUT`"]
1018 #[inline(always)]
1019 pub fn is_output(&self) -> bool {
1020 *self == PIN19_A::OUTPUT
1021 }
1022}
1023#[doc = "Field `PIN19` writer - Pin 19"]
1024pub type PIN19_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN19_A, O>;
1025impl<'a, const O: u8> PIN19_W<'a, O> {
1026 #[doc = "Pin set as input"]
1027 #[inline(always)]
1028 pub fn input(self) -> &'a mut W {
1029 self.variant(PIN19_A::INPUT)
1030 }
1031 #[doc = "Pin set as output"]
1032 #[inline(always)]
1033 pub fn output(self) -> &'a mut W {
1034 self.variant(PIN19_A::OUTPUT)
1035 }
1036}
1037#[doc = "Field `PIN20` reader - Pin 20"]
1038pub type PIN20_R = crate::BitReader<PIN20_A>;
1039#[doc = "Pin 20\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq)]
1041pub enum PIN20_A {
1042 #[doc = "0: Pin set as input"]
1043 INPUT = 0,
1044 #[doc = "1: Pin set as output"]
1045 OUTPUT = 1,
1046}
1047impl From<PIN20_A> for bool {
1048 #[inline(always)]
1049 fn from(variant: PIN20_A) -> Self {
1050 variant as u8 != 0
1051 }
1052}
1053impl PIN20_R {
1054 #[doc = "Get enumerated values variant"]
1055 #[inline(always)]
1056 pub fn variant(&self) -> PIN20_A {
1057 match self.bits {
1058 false => PIN20_A::INPUT,
1059 true => PIN20_A::OUTPUT,
1060 }
1061 }
1062 #[doc = "Checks if the value of the field is `INPUT`"]
1063 #[inline(always)]
1064 pub fn is_input(&self) -> bool {
1065 *self == PIN20_A::INPUT
1066 }
1067 #[doc = "Checks if the value of the field is `OUTPUT`"]
1068 #[inline(always)]
1069 pub fn is_output(&self) -> bool {
1070 *self == PIN20_A::OUTPUT
1071 }
1072}
1073#[doc = "Field `PIN20` writer - Pin 20"]
1074pub type PIN20_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN20_A, O>;
1075impl<'a, const O: u8> PIN20_W<'a, O> {
1076 #[doc = "Pin set as input"]
1077 #[inline(always)]
1078 pub fn input(self) -> &'a mut W {
1079 self.variant(PIN20_A::INPUT)
1080 }
1081 #[doc = "Pin set as output"]
1082 #[inline(always)]
1083 pub fn output(self) -> &'a mut W {
1084 self.variant(PIN20_A::OUTPUT)
1085 }
1086}
1087#[doc = "Field `PIN21` reader - Pin 21"]
1088pub type PIN21_R = crate::BitReader<PIN21_A>;
1089#[doc = "Pin 21\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq)]
1091pub enum PIN21_A {
1092 #[doc = "0: Pin set as input"]
1093 INPUT = 0,
1094 #[doc = "1: Pin set as output"]
1095 OUTPUT = 1,
1096}
1097impl From<PIN21_A> for bool {
1098 #[inline(always)]
1099 fn from(variant: PIN21_A) -> Self {
1100 variant as u8 != 0
1101 }
1102}
1103impl PIN21_R {
1104 #[doc = "Get enumerated values variant"]
1105 #[inline(always)]
1106 pub fn variant(&self) -> PIN21_A {
1107 match self.bits {
1108 false => PIN21_A::INPUT,
1109 true => PIN21_A::OUTPUT,
1110 }
1111 }
1112 #[doc = "Checks if the value of the field is `INPUT`"]
1113 #[inline(always)]
1114 pub fn is_input(&self) -> bool {
1115 *self == PIN21_A::INPUT
1116 }
1117 #[doc = "Checks if the value of the field is `OUTPUT`"]
1118 #[inline(always)]
1119 pub fn is_output(&self) -> bool {
1120 *self == PIN21_A::OUTPUT
1121 }
1122}
1123#[doc = "Field `PIN21` writer - Pin 21"]
1124pub type PIN21_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN21_A, O>;
1125impl<'a, const O: u8> PIN21_W<'a, O> {
1126 #[doc = "Pin set as input"]
1127 #[inline(always)]
1128 pub fn input(self) -> &'a mut W {
1129 self.variant(PIN21_A::INPUT)
1130 }
1131 #[doc = "Pin set as output"]
1132 #[inline(always)]
1133 pub fn output(self) -> &'a mut W {
1134 self.variant(PIN21_A::OUTPUT)
1135 }
1136}
1137#[doc = "Field `PIN22` reader - Pin 22"]
1138pub type PIN22_R = crate::BitReader<PIN22_A>;
1139#[doc = "Pin 22\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq)]
1141pub enum PIN22_A {
1142 #[doc = "0: Pin set as input"]
1143 INPUT = 0,
1144 #[doc = "1: Pin set as output"]
1145 OUTPUT = 1,
1146}
1147impl From<PIN22_A> for bool {
1148 #[inline(always)]
1149 fn from(variant: PIN22_A) -> Self {
1150 variant as u8 != 0
1151 }
1152}
1153impl PIN22_R {
1154 #[doc = "Get enumerated values variant"]
1155 #[inline(always)]
1156 pub fn variant(&self) -> PIN22_A {
1157 match self.bits {
1158 false => PIN22_A::INPUT,
1159 true => PIN22_A::OUTPUT,
1160 }
1161 }
1162 #[doc = "Checks if the value of the field is `INPUT`"]
1163 #[inline(always)]
1164 pub fn is_input(&self) -> bool {
1165 *self == PIN22_A::INPUT
1166 }
1167 #[doc = "Checks if the value of the field is `OUTPUT`"]
1168 #[inline(always)]
1169 pub fn is_output(&self) -> bool {
1170 *self == PIN22_A::OUTPUT
1171 }
1172}
1173#[doc = "Field `PIN22` writer - Pin 22"]
1174pub type PIN22_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN22_A, O>;
1175impl<'a, const O: u8> PIN22_W<'a, O> {
1176 #[doc = "Pin set as input"]
1177 #[inline(always)]
1178 pub fn input(self) -> &'a mut W {
1179 self.variant(PIN22_A::INPUT)
1180 }
1181 #[doc = "Pin set as output"]
1182 #[inline(always)]
1183 pub fn output(self) -> &'a mut W {
1184 self.variant(PIN22_A::OUTPUT)
1185 }
1186}
1187#[doc = "Field `PIN23` reader - Pin 23"]
1188pub type PIN23_R = crate::BitReader<PIN23_A>;
1189#[doc = "Pin 23\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq)]
1191pub enum PIN23_A {
1192 #[doc = "0: Pin set as input"]
1193 INPUT = 0,
1194 #[doc = "1: Pin set as output"]
1195 OUTPUT = 1,
1196}
1197impl From<PIN23_A> for bool {
1198 #[inline(always)]
1199 fn from(variant: PIN23_A) -> Self {
1200 variant as u8 != 0
1201 }
1202}
1203impl PIN23_R {
1204 #[doc = "Get enumerated values variant"]
1205 #[inline(always)]
1206 pub fn variant(&self) -> PIN23_A {
1207 match self.bits {
1208 false => PIN23_A::INPUT,
1209 true => PIN23_A::OUTPUT,
1210 }
1211 }
1212 #[doc = "Checks if the value of the field is `INPUT`"]
1213 #[inline(always)]
1214 pub fn is_input(&self) -> bool {
1215 *self == PIN23_A::INPUT
1216 }
1217 #[doc = "Checks if the value of the field is `OUTPUT`"]
1218 #[inline(always)]
1219 pub fn is_output(&self) -> bool {
1220 *self == PIN23_A::OUTPUT
1221 }
1222}
1223#[doc = "Field `PIN23` writer - Pin 23"]
1224pub type PIN23_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN23_A, O>;
1225impl<'a, const O: u8> PIN23_W<'a, O> {
1226 #[doc = "Pin set as input"]
1227 #[inline(always)]
1228 pub fn input(self) -> &'a mut W {
1229 self.variant(PIN23_A::INPUT)
1230 }
1231 #[doc = "Pin set as output"]
1232 #[inline(always)]
1233 pub fn output(self) -> &'a mut W {
1234 self.variant(PIN23_A::OUTPUT)
1235 }
1236}
1237#[doc = "Field `PIN24` reader - Pin 24"]
1238pub type PIN24_R = crate::BitReader<PIN24_A>;
1239#[doc = "Pin 24\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq)]
1241pub enum PIN24_A {
1242 #[doc = "0: Pin set as input"]
1243 INPUT = 0,
1244 #[doc = "1: Pin set as output"]
1245 OUTPUT = 1,
1246}
1247impl From<PIN24_A> for bool {
1248 #[inline(always)]
1249 fn from(variant: PIN24_A) -> Self {
1250 variant as u8 != 0
1251 }
1252}
1253impl PIN24_R {
1254 #[doc = "Get enumerated values variant"]
1255 #[inline(always)]
1256 pub fn variant(&self) -> PIN24_A {
1257 match self.bits {
1258 false => PIN24_A::INPUT,
1259 true => PIN24_A::OUTPUT,
1260 }
1261 }
1262 #[doc = "Checks if the value of the field is `INPUT`"]
1263 #[inline(always)]
1264 pub fn is_input(&self) -> bool {
1265 *self == PIN24_A::INPUT
1266 }
1267 #[doc = "Checks if the value of the field is `OUTPUT`"]
1268 #[inline(always)]
1269 pub fn is_output(&self) -> bool {
1270 *self == PIN24_A::OUTPUT
1271 }
1272}
1273#[doc = "Field `PIN24` writer - Pin 24"]
1274pub type PIN24_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN24_A, O>;
1275impl<'a, const O: u8> PIN24_W<'a, O> {
1276 #[doc = "Pin set as input"]
1277 #[inline(always)]
1278 pub fn input(self) -> &'a mut W {
1279 self.variant(PIN24_A::INPUT)
1280 }
1281 #[doc = "Pin set as output"]
1282 #[inline(always)]
1283 pub fn output(self) -> &'a mut W {
1284 self.variant(PIN24_A::OUTPUT)
1285 }
1286}
1287#[doc = "Field `PIN25` reader - Pin 25"]
1288pub type PIN25_R = crate::BitReader<PIN25_A>;
1289#[doc = "Pin 25\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq)]
1291pub enum PIN25_A {
1292 #[doc = "0: Pin set as input"]
1293 INPUT = 0,
1294 #[doc = "1: Pin set as output"]
1295 OUTPUT = 1,
1296}
1297impl From<PIN25_A> for bool {
1298 #[inline(always)]
1299 fn from(variant: PIN25_A) -> Self {
1300 variant as u8 != 0
1301 }
1302}
1303impl PIN25_R {
1304 #[doc = "Get enumerated values variant"]
1305 #[inline(always)]
1306 pub fn variant(&self) -> PIN25_A {
1307 match self.bits {
1308 false => PIN25_A::INPUT,
1309 true => PIN25_A::OUTPUT,
1310 }
1311 }
1312 #[doc = "Checks if the value of the field is `INPUT`"]
1313 #[inline(always)]
1314 pub fn is_input(&self) -> bool {
1315 *self == PIN25_A::INPUT
1316 }
1317 #[doc = "Checks if the value of the field is `OUTPUT`"]
1318 #[inline(always)]
1319 pub fn is_output(&self) -> bool {
1320 *self == PIN25_A::OUTPUT
1321 }
1322}
1323#[doc = "Field `PIN25` writer - Pin 25"]
1324pub type PIN25_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN25_A, O>;
1325impl<'a, const O: u8> PIN25_W<'a, O> {
1326 #[doc = "Pin set as input"]
1327 #[inline(always)]
1328 pub fn input(self) -> &'a mut W {
1329 self.variant(PIN25_A::INPUT)
1330 }
1331 #[doc = "Pin set as output"]
1332 #[inline(always)]
1333 pub fn output(self) -> &'a mut W {
1334 self.variant(PIN25_A::OUTPUT)
1335 }
1336}
1337#[doc = "Field `PIN26` reader - Pin 26"]
1338pub type PIN26_R = crate::BitReader<PIN26_A>;
1339#[doc = "Pin 26\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq)]
1341pub enum PIN26_A {
1342 #[doc = "0: Pin set as input"]
1343 INPUT = 0,
1344 #[doc = "1: Pin set as output"]
1345 OUTPUT = 1,
1346}
1347impl From<PIN26_A> for bool {
1348 #[inline(always)]
1349 fn from(variant: PIN26_A) -> Self {
1350 variant as u8 != 0
1351 }
1352}
1353impl PIN26_R {
1354 #[doc = "Get enumerated values variant"]
1355 #[inline(always)]
1356 pub fn variant(&self) -> PIN26_A {
1357 match self.bits {
1358 false => PIN26_A::INPUT,
1359 true => PIN26_A::OUTPUT,
1360 }
1361 }
1362 #[doc = "Checks if the value of the field is `INPUT`"]
1363 #[inline(always)]
1364 pub fn is_input(&self) -> bool {
1365 *self == PIN26_A::INPUT
1366 }
1367 #[doc = "Checks if the value of the field is `OUTPUT`"]
1368 #[inline(always)]
1369 pub fn is_output(&self) -> bool {
1370 *self == PIN26_A::OUTPUT
1371 }
1372}
1373#[doc = "Field `PIN26` writer - Pin 26"]
1374pub type PIN26_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN26_A, O>;
1375impl<'a, const O: u8> PIN26_W<'a, O> {
1376 #[doc = "Pin set as input"]
1377 #[inline(always)]
1378 pub fn input(self) -> &'a mut W {
1379 self.variant(PIN26_A::INPUT)
1380 }
1381 #[doc = "Pin set as output"]
1382 #[inline(always)]
1383 pub fn output(self) -> &'a mut W {
1384 self.variant(PIN26_A::OUTPUT)
1385 }
1386}
1387#[doc = "Field `PIN27` reader - Pin 27"]
1388pub type PIN27_R = crate::BitReader<PIN27_A>;
1389#[doc = "Pin 27\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq)]
1391pub enum PIN27_A {
1392 #[doc = "0: Pin set as input"]
1393 INPUT = 0,
1394 #[doc = "1: Pin set as output"]
1395 OUTPUT = 1,
1396}
1397impl From<PIN27_A> for bool {
1398 #[inline(always)]
1399 fn from(variant: PIN27_A) -> Self {
1400 variant as u8 != 0
1401 }
1402}
1403impl PIN27_R {
1404 #[doc = "Get enumerated values variant"]
1405 #[inline(always)]
1406 pub fn variant(&self) -> PIN27_A {
1407 match self.bits {
1408 false => PIN27_A::INPUT,
1409 true => PIN27_A::OUTPUT,
1410 }
1411 }
1412 #[doc = "Checks if the value of the field is `INPUT`"]
1413 #[inline(always)]
1414 pub fn is_input(&self) -> bool {
1415 *self == PIN27_A::INPUT
1416 }
1417 #[doc = "Checks if the value of the field is `OUTPUT`"]
1418 #[inline(always)]
1419 pub fn is_output(&self) -> bool {
1420 *self == PIN27_A::OUTPUT
1421 }
1422}
1423#[doc = "Field `PIN27` writer - Pin 27"]
1424pub type PIN27_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN27_A, O>;
1425impl<'a, const O: u8> PIN27_W<'a, O> {
1426 #[doc = "Pin set as input"]
1427 #[inline(always)]
1428 pub fn input(self) -> &'a mut W {
1429 self.variant(PIN27_A::INPUT)
1430 }
1431 #[doc = "Pin set as output"]
1432 #[inline(always)]
1433 pub fn output(self) -> &'a mut W {
1434 self.variant(PIN27_A::OUTPUT)
1435 }
1436}
1437#[doc = "Field `PIN28` reader - Pin 28"]
1438pub type PIN28_R = crate::BitReader<PIN28_A>;
1439#[doc = "Pin 28\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq)]
1441pub enum PIN28_A {
1442 #[doc = "0: Pin set as input"]
1443 INPUT = 0,
1444 #[doc = "1: Pin set as output"]
1445 OUTPUT = 1,
1446}
1447impl From<PIN28_A> for bool {
1448 #[inline(always)]
1449 fn from(variant: PIN28_A) -> Self {
1450 variant as u8 != 0
1451 }
1452}
1453impl PIN28_R {
1454 #[doc = "Get enumerated values variant"]
1455 #[inline(always)]
1456 pub fn variant(&self) -> PIN28_A {
1457 match self.bits {
1458 false => PIN28_A::INPUT,
1459 true => PIN28_A::OUTPUT,
1460 }
1461 }
1462 #[doc = "Checks if the value of the field is `INPUT`"]
1463 #[inline(always)]
1464 pub fn is_input(&self) -> bool {
1465 *self == PIN28_A::INPUT
1466 }
1467 #[doc = "Checks if the value of the field is `OUTPUT`"]
1468 #[inline(always)]
1469 pub fn is_output(&self) -> bool {
1470 *self == PIN28_A::OUTPUT
1471 }
1472}
1473#[doc = "Field `PIN28` writer - Pin 28"]
1474pub type PIN28_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN28_A, O>;
1475impl<'a, const O: u8> PIN28_W<'a, O> {
1476 #[doc = "Pin set as input"]
1477 #[inline(always)]
1478 pub fn input(self) -> &'a mut W {
1479 self.variant(PIN28_A::INPUT)
1480 }
1481 #[doc = "Pin set as output"]
1482 #[inline(always)]
1483 pub fn output(self) -> &'a mut W {
1484 self.variant(PIN28_A::OUTPUT)
1485 }
1486}
1487#[doc = "Field `PIN29` reader - Pin 29"]
1488pub type PIN29_R = crate::BitReader<PIN29_A>;
1489#[doc = "Pin 29\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq)]
1491pub enum PIN29_A {
1492 #[doc = "0: Pin set as input"]
1493 INPUT = 0,
1494 #[doc = "1: Pin set as output"]
1495 OUTPUT = 1,
1496}
1497impl From<PIN29_A> for bool {
1498 #[inline(always)]
1499 fn from(variant: PIN29_A) -> Self {
1500 variant as u8 != 0
1501 }
1502}
1503impl PIN29_R {
1504 #[doc = "Get enumerated values variant"]
1505 #[inline(always)]
1506 pub fn variant(&self) -> PIN29_A {
1507 match self.bits {
1508 false => PIN29_A::INPUT,
1509 true => PIN29_A::OUTPUT,
1510 }
1511 }
1512 #[doc = "Checks if the value of the field is `INPUT`"]
1513 #[inline(always)]
1514 pub fn is_input(&self) -> bool {
1515 *self == PIN29_A::INPUT
1516 }
1517 #[doc = "Checks if the value of the field is `OUTPUT`"]
1518 #[inline(always)]
1519 pub fn is_output(&self) -> bool {
1520 *self == PIN29_A::OUTPUT
1521 }
1522}
1523#[doc = "Field `PIN29` writer - Pin 29"]
1524pub type PIN29_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN29_A, O>;
1525impl<'a, const O: u8> PIN29_W<'a, O> {
1526 #[doc = "Pin set as input"]
1527 #[inline(always)]
1528 pub fn input(self) -> &'a mut W {
1529 self.variant(PIN29_A::INPUT)
1530 }
1531 #[doc = "Pin set as output"]
1532 #[inline(always)]
1533 pub fn output(self) -> &'a mut W {
1534 self.variant(PIN29_A::OUTPUT)
1535 }
1536}
1537#[doc = "Field `PIN30` reader - Pin 30"]
1538pub type PIN30_R = crate::BitReader<PIN30_A>;
1539#[doc = "Pin 30\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq)]
1541pub enum PIN30_A {
1542 #[doc = "0: Pin set as input"]
1543 INPUT = 0,
1544 #[doc = "1: Pin set as output"]
1545 OUTPUT = 1,
1546}
1547impl From<PIN30_A> for bool {
1548 #[inline(always)]
1549 fn from(variant: PIN30_A) -> Self {
1550 variant as u8 != 0
1551 }
1552}
1553impl PIN30_R {
1554 #[doc = "Get enumerated values variant"]
1555 #[inline(always)]
1556 pub fn variant(&self) -> PIN30_A {
1557 match self.bits {
1558 false => PIN30_A::INPUT,
1559 true => PIN30_A::OUTPUT,
1560 }
1561 }
1562 #[doc = "Checks if the value of the field is `INPUT`"]
1563 #[inline(always)]
1564 pub fn is_input(&self) -> bool {
1565 *self == PIN30_A::INPUT
1566 }
1567 #[doc = "Checks if the value of the field is `OUTPUT`"]
1568 #[inline(always)]
1569 pub fn is_output(&self) -> bool {
1570 *self == PIN30_A::OUTPUT
1571 }
1572}
1573#[doc = "Field `PIN30` writer - Pin 30"]
1574pub type PIN30_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN30_A, O>;
1575impl<'a, const O: u8> PIN30_W<'a, O> {
1576 #[doc = "Pin set as input"]
1577 #[inline(always)]
1578 pub fn input(self) -> &'a mut W {
1579 self.variant(PIN30_A::INPUT)
1580 }
1581 #[doc = "Pin set as output"]
1582 #[inline(always)]
1583 pub fn output(self) -> &'a mut W {
1584 self.variant(PIN30_A::OUTPUT)
1585 }
1586}
1587#[doc = "Field `PIN31` reader - Pin 31"]
1588pub type PIN31_R = crate::BitReader<PIN31_A>;
1589#[doc = "Pin 31\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq)]
1591pub enum PIN31_A {
1592 #[doc = "0: Pin set as input"]
1593 INPUT = 0,
1594 #[doc = "1: Pin set as output"]
1595 OUTPUT = 1,
1596}
1597impl From<PIN31_A> for bool {
1598 #[inline(always)]
1599 fn from(variant: PIN31_A) -> Self {
1600 variant as u8 != 0
1601 }
1602}
1603impl PIN31_R {
1604 #[doc = "Get enumerated values variant"]
1605 #[inline(always)]
1606 pub fn variant(&self) -> PIN31_A {
1607 match self.bits {
1608 false => PIN31_A::INPUT,
1609 true => PIN31_A::OUTPUT,
1610 }
1611 }
1612 #[doc = "Checks if the value of the field is `INPUT`"]
1613 #[inline(always)]
1614 pub fn is_input(&self) -> bool {
1615 *self == PIN31_A::INPUT
1616 }
1617 #[doc = "Checks if the value of the field is `OUTPUT`"]
1618 #[inline(always)]
1619 pub fn is_output(&self) -> bool {
1620 *self == PIN31_A::OUTPUT
1621 }
1622}
1623#[doc = "Field `PIN31` writer - Pin 31"]
1624pub type PIN31_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIR_SPEC, PIN31_A, O>;
1625impl<'a, const O: u8> PIN31_W<'a, O> {
1626 #[doc = "Pin set as input"]
1627 #[inline(always)]
1628 pub fn input(self) -> &'a mut W {
1629 self.variant(PIN31_A::INPUT)
1630 }
1631 #[doc = "Pin set as output"]
1632 #[inline(always)]
1633 pub fn output(self) -> &'a mut W {
1634 self.variant(PIN31_A::OUTPUT)
1635 }
1636}
1637impl R {
1638 #[doc = "Bit 0 - Pin 0"]
1639 #[inline(always)]
1640 pub fn pin0(&self) -> PIN0_R {
1641 PIN0_R::new((self.bits & 1) != 0)
1642 }
1643 #[doc = "Bit 1 - Pin 1"]
1644 #[inline(always)]
1645 pub fn pin1(&self) -> PIN1_R {
1646 PIN1_R::new(((self.bits >> 1) & 1) != 0)
1647 }
1648 #[doc = "Bit 2 - Pin 2"]
1649 #[inline(always)]
1650 pub fn pin2(&self) -> PIN2_R {
1651 PIN2_R::new(((self.bits >> 2) & 1) != 0)
1652 }
1653 #[doc = "Bit 3 - Pin 3"]
1654 #[inline(always)]
1655 pub fn pin3(&self) -> PIN3_R {
1656 PIN3_R::new(((self.bits >> 3) & 1) != 0)
1657 }
1658 #[doc = "Bit 4 - Pin 4"]
1659 #[inline(always)]
1660 pub fn pin4(&self) -> PIN4_R {
1661 PIN4_R::new(((self.bits >> 4) & 1) != 0)
1662 }
1663 #[doc = "Bit 5 - Pin 5"]
1664 #[inline(always)]
1665 pub fn pin5(&self) -> PIN5_R {
1666 PIN5_R::new(((self.bits >> 5) & 1) != 0)
1667 }
1668 #[doc = "Bit 6 - Pin 6"]
1669 #[inline(always)]
1670 pub fn pin6(&self) -> PIN6_R {
1671 PIN6_R::new(((self.bits >> 6) & 1) != 0)
1672 }
1673 #[doc = "Bit 7 - Pin 7"]
1674 #[inline(always)]
1675 pub fn pin7(&self) -> PIN7_R {
1676 PIN7_R::new(((self.bits >> 7) & 1) != 0)
1677 }
1678 #[doc = "Bit 8 - Pin 8"]
1679 #[inline(always)]
1680 pub fn pin8(&self) -> PIN8_R {
1681 PIN8_R::new(((self.bits >> 8) & 1) != 0)
1682 }
1683 #[doc = "Bit 9 - Pin 9"]
1684 #[inline(always)]
1685 pub fn pin9(&self) -> PIN9_R {
1686 PIN9_R::new(((self.bits >> 9) & 1) != 0)
1687 }
1688 #[doc = "Bit 10 - Pin 10"]
1689 #[inline(always)]
1690 pub fn pin10(&self) -> PIN10_R {
1691 PIN10_R::new(((self.bits >> 10) & 1) != 0)
1692 }
1693 #[doc = "Bit 11 - Pin 11"]
1694 #[inline(always)]
1695 pub fn pin11(&self) -> PIN11_R {
1696 PIN11_R::new(((self.bits >> 11) & 1) != 0)
1697 }
1698 #[doc = "Bit 12 - Pin 12"]
1699 #[inline(always)]
1700 pub fn pin12(&self) -> PIN12_R {
1701 PIN12_R::new(((self.bits >> 12) & 1) != 0)
1702 }
1703 #[doc = "Bit 13 - Pin 13"]
1704 #[inline(always)]
1705 pub fn pin13(&self) -> PIN13_R {
1706 PIN13_R::new(((self.bits >> 13) & 1) != 0)
1707 }
1708 #[doc = "Bit 14 - Pin 14"]
1709 #[inline(always)]
1710 pub fn pin14(&self) -> PIN14_R {
1711 PIN14_R::new(((self.bits >> 14) & 1) != 0)
1712 }
1713 #[doc = "Bit 15 - Pin 15"]
1714 #[inline(always)]
1715 pub fn pin15(&self) -> PIN15_R {
1716 PIN15_R::new(((self.bits >> 15) & 1) != 0)
1717 }
1718 #[doc = "Bit 16 - Pin 16"]
1719 #[inline(always)]
1720 pub fn pin16(&self) -> PIN16_R {
1721 PIN16_R::new(((self.bits >> 16) & 1) != 0)
1722 }
1723 #[doc = "Bit 17 - Pin 17"]
1724 #[inline(always)]
1725 pub fn pin17(&self) -> PIN17_R {
1726 PIN17_R::new(((self.bits >> 17) & 1) != 0)
1727 }
1728 #[doc = "Bit 18 - Pin 18"]
1729 #[inline(always)]
1730 pub fn pin18(&self) -> PIN18_R {
1731 PIN18_R::new(((self.bits >> 18) & 1) != 0)
1732 }
1733 #[doc = "Bit 19 - Pin 19"]
1734 #[inline(always)]
1735 pub fn pin19(&self) -> PIN19_R {
1736 PIN19_R::new(((self.bits >> 19) & 1) != 0)
1737 }
1738 #[doc = "Bit 20 - Pin 20"]
1739 #[inline(always)]
1740 pub fn pin20(&self) -> PIN20_R {
1741 PIN20_R::new(((self.bits >> 20) & 1) != 0)
1742 }
1743 #[doc = "Bit 21 - Pin 21"]
1744 #[inline(always)]
1745 pub fn pin21(&self) -> PIN21_R {
1746 PIN21_R::new(((self.bits >> 21) & 1) != 0)
1747 }
1748 #[doc = "Bit 22 - Pin 22"]
1749 #[inline(always)]
1750 pub fn pin22(&self) -> PIN22_R {
1751 PIN22_R::new(((self.bits >> 22) & 1) != 0)
1752 }
1753 #[doc = "Bit 23 - Pin 23"]
1754 #[inline(always)]
1755 pub fn pin23(&self) -> PIN23_R {
1756 PIN23_R::new(((self.bits >> 23) & 1) != 0)
1757 }
1758 #[doc = "Bit 24 - Pin 24"]
1759 #[inline(always)]
1760 pub fn pin24(&self) -> PIN24_R {
1761 PIN24_R::new(((self.bits >> 24) & 1) != 0)
1762 }
1763 #[doc = "Bit 25 - Pin 25"]
1764 #[inline(always)]
1765 pub fn pin25(&self) -> PIN25_R {
1766 PIN25_R::new(((self.bits >> 25) & 1) != 0)
1767 }
1768 #[doc = "Bit 26 - Pin 26"]
1769 #[inline(always)]
1770 pub fn pin26(&self) -> PIN26_R {
1771 PIN26_R::new(((self.bits >> 26) & 1) != 0)
1772 }
1773 #[doc = "Bit 27 - Pin 27"]
1774 #[inline(always)]
1775 pub fn pin27(&self) -> PIN27_R {
1776 PIN27_R::new(((self.bits >> 27) & 1) != 0)
1777 }
1778 #[doc = "Bit 28 - Pin 28"]
1779 #[inline(always)]
1780 pub fn pin28(&self) -> PIN28_R {
1781 PIN28_R::new(((self.bits >> 28) & 1) != 0)
1782 }
1783 #[doc = "Bit 29 - Pin 29"]
1784 #[inline(always)]
1785 pub fn pin29(&self) -> PIN29_R {
1786 PIN29_R::new(((self.bits >> 29) & 1) != 0)
1787 }
1788 #[doc = "Bit 30 - Pin 30"]
1789 #[inline(always)]
1790 pub fn pin30(&self) -> PIN30_R {
1791 PIN30_R::new(((self.bits >> 30) & 1) != 0)
1792 }
1793 #[doc = "Bit 31 - Pin 31"]
1794 #[inline(always)]
1795 pub fn pin31(&self) -> PIN31_R {
1796 PIN31_R::new(((self.bits >> 31) & 1) != 0)
1797 }
1798}
1799impl W {
1800 #[doc = "Bit 0 - Pin 0"]
1801 #[inline(always)]
1802 pub fn pin0(&mut self) -> PIN0_W<0> {
1803 PIN0_W::new(self)
1804 }
1805 #[doc = "Bit 1 - Pin 1"]
1806 #[inline(always)]
1807 pub fn pin1(&mut self) -> PIN1_W<1> {
1808 PIN1_W::new(self)
1809 }
1810 #[doc = "Bit 2 - Pin 2"]
1811 #[inline(always)]
1812 pub fn pin2(&mut self) -> PIN2_W<2> {
1813 PIN2_W::new(self)
1814 }
1815 #[doc = "Bit 3 - Pin 3"]
1816 #[inline(always)]
1817 pub fn pin3(&mut self) -> PIN3_W<3> {
1818 PIN3_W::new(self)
1819 }
1820 #[doc = "Bit 4 - Pin 4"]
1821 #[inline(always)]
1822 pub fn pin4(&mut self) -> PIN4_W<4> {
1823 PIN4_W::new(self)
1824 }
1825 #[doc = "Bit 5 - Pin 5"]
1826 #[inline(always)]
1827 pub fn pin5(&mut self) -> PIN5_W<5> {
1828 PIN5_W::new(self)
1829 }
1830 #[doc = "Bit 6 - Pin 6"]
1831 #[inline(always)]
1832 pub fn pin6(&mut self) -> PIN6_W<6> {
1833 PIN6_W::new(self)
1834 }
1835 #[doc = "Bit 7 - Pin 7"]
1836 #[inline(always)]
1837 pub fn pin7(&mut self) -> PIN7_W<7> {
1838 PIN7_W::new(self)
1839 }
1840 #[doc = "Bit 8 - Pin 8"]
1841 #[inline(always)]
1842 pub fn pin8(&mut self) -> PIN8_W<8> {
1843 PIN8_W::new(self)
1844 }
1845 #[doc = "Bit 9 - Pin 9"]
1846 #[inline(always)]
1847 pub fn pin9(&mut self) -> PIN9_W<9> {
1848 PIN9_W::new(self)
1849 }
1850 #[doc = "Bit 10 - Pin 10"]
1851 #[inline(always)]
1852 pub fn pin10(&mut self) -> PIN10_W<10> {
1853 PIN10_W::new(self)
1854 }
1855 #[doc = "Bit 11 - Pin 11"]
1856 #[inline(always)]
1857 pub fn pin11(&mut self) -> PIN11_W<11> {
1858 PIN11_W::new(self)
1859 }
1860 #[doc = "Bit 12 - Pin 12"]
1861 #[inline(always)]
1862 pub fn pin12(&mut self) -> PIN12_W<12> {
1863 PIN12_W::new(self)
1864 }
1865 #[doc = "Bit 13 - Pin 13"]
1866 #[inline(always)]
1867 pub fn pin13(&mut self) -> PIN13_W<13> {
1868 PIN13_W::new(self)
1869 }
1870 #[doc = "Bit 14 - Pin 14"]
1871 #[inline(always)]
1872 pub fn pin14(&mut self) -> PIN14_W<14> {
1873 PIN14_W::new(self)
1874 }
1875 #[doc = "Bit 15 - Pin 15"]
1876 #[inline(always)]
1877 pub fn pin15(&mut self) -> PIN15_W<15> {
1878 PIN15_W::new(self)
1879 }
1880 #[doc = "Bit 16 - Pin 16"]
1881 #[inline(always)]
1882 pub fn pin16(&mut self) -> PIN16_W<16> {
1883 PIN16_W::new(self)
1884 }
1885 #[doc = "Bit 17 - Pin 17"]
1886 #[inline(always)]
1887 pub fn pin17(&mut self) -> PIN17_W<17> {
1888 PIN17_W::new(self)
1889 }
1890 #[doc = "Bit 18 - Pin 18"]
1891 #[inline(always)]
1892 pub fn pin18(&mut self) -> PIN18_W<18> {
1893 PIN18_W::new(self)
1894 }
1895 #[doc = "Bit 19 - Pin 19"]
1896 #[inline(always)]
1897 pub fn pin19(&mut self) -> PIN19_W<19> {
1898 PIN19_W::new(self)
1899 }
1900 #[doc = "Bit 20 - Pin 20"]
1901 #[inline(always)]
1902 pub fn pin20(&mut self) -> PIN20_W<20> {
1903 PIN20_W::new(self)
1904 }
1905 #[doc = "Bit 21 - Pin 21"]
1906 #[inline(always)]
1907 pub fn pin21(&mut self) -> PIN21_W<21> {
1908 PIN21_W::new(self)
1909 }
1910 #[doc = "Bit 22 - Pin 22"]
1911 #[inline(always)]
1912 pub fn pin22(&mut self) -> PIN22_W<22> {
1913 PIN22_W::new(self)
1914 }
1915 #[doc = "Bit 23 - Pin 23"]
1916 #[inline(always)]
1917 pub fn pin23(&mut self) -> PIN23_W<23> {
1918 PIN23_W::new(self)
1919 }
1920 #[doc = "Bit 24 - Pin 24"]
1921 #[inline(always)]
1922 pub fn pin24(&mut self) -> PIN24_W<24> {
1923 PIN24_W::new(self)
1924 }
1925 #[doc = "Bit 25 - Pin 25"]
1926 #[inline(always)]
1927 pub fn pin25(&mut self) -> PIN25_W<25> {
1928 PIN25_W::new(self)
1929 }
1930 #[doc = "Bit 26 - Pin 26"]
1931 #[inline(always)]
1932 pub fn pin26(&mut self) -> PIN26_W<26> {
1933 PIN26_W::new(self)
1934 }
1935 #[doc = "Bit 27 - Pin 27"]
1936 #[inline(always)]
1937 pub fn pin27(&mut self) -> PIN27_W<27> {
1938 PIN27_W::new(self)
1939 }
1940 #[doc = "Bit 28 - Pin 28"]
1941 #[inline(always)]
1942 pub fn pin28(&mut self) -> PIN28_W<28> {
1943 PIN28_W::new(self)
1944 }
1945 #[doc = "Bit 29 - Pin 29"]
1946 #[inline(always)]
1947 pub fn pin29(&mut self) -> PIN29_W<29> {
1948 PIN29_W::new(self)
1949 }
1950 #[doc = "Bit 30 - Pin 30"]
1951 #[inline(always)]
1952 pub fn pin30(&mut self) -> PIN30_W<30> {
1953 PIN30_W::new(self)
1954 }
1955 #[doc = "Bit 31 - Pin 31"]
1956 #[inline(always)]
1957 pub fn pin31(&mut self) -> PIN31_W<31> {
1958 PIN31_W::new(self)
1959 }
1960 #[doc = "Writes raw bits to the register."]
1961 #[inline(always)]
1962 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1963 self.0.bits(bits);
1964 self
1965 }
1966}
1967#[doc = "Direction of GPIO pins\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dir](index.html) module"]
1968pub struct DIR_SPEC;
1969impl crate::RegisterSpec for DIR_SPEC {
1970 type Ux = u32;
1971}
1972#[doc = "`read()` method returns [dir::R](R) reader structure"]
1973impl crate::Readable for DIR_SPEC {
1974 type Reader = R;
1975}
1976#[doc = "`write(|w| ..)` method takes [dir::W](W) writer structure"]
1977impl crate::Writable for DIR_SPEC {
1978 type Writer = W;
1979}
1980#[doc = "`reset()` method sets DIR to value 0"]
1981impl crate::Resettable for DIR_SPEC {
1982 #[inline(always)]
1983 fn reset_value() -> Self::Ux {
1984 0
1985 }
1986}