1#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"Port 0 Control"]
28unsafe impl ::core::marker::Send for super::Port0 {}
29unsafe impl ::core::marker::Sync for super::Port0 {}
30impl super::Port0 {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "Port 0 Output Data Register"]
38 #[inline(always)]
39 pub const fn podr0(&self) -> &'static crate::common::Reg<self::Podr0_SPEC, crate::common::RW> {
40 unsafe {
41 crate::common::Reg::<self::Podr0_SPEC, crate::common::RW>::from_ptr(
42 self._svd2pac_as_ptr().add(0usize),
43 )
44 }
45 }
46
47 #[doc = "Port 0 Direction Register"]
48 #[inline(always)]
49 pub const fn pdr0(&self) -> &'static crate::common::Reg<self::Pdr0_SPEC, crate::common::RW> {
50 unsafe {
51 crate::common::Reg::<self::Pdr0_SPEC, crate::common::RW>::from_ptr(
52 self._svd2pac_as_ptr().add(2usize),
53 )
54 }
55 }
56
57 #[doc = "Port 0 State Register"]
58 #[inline(always)]
59 pub const fn pidr0(&self) -> &'static crate::common::Reg<self::Pidr0_SPEC, crate::common::R> {
60 unsafe {
61 crate::common::Reg::<self::Pidr0_SPEC, crate::common::R>::from_ptr(
62 self._svd2pac_as_ptr().add(6usize),
63 )
64 }
65 }
66
67 #[doc = "Port 0 Output Reset Register"]
68 #[inline(always)]
69 pub const fn porr0(&self) -> &'static crate::common::Reg<self::Porr0_SPEC, crate::common::W> {
70 unsafe {
71 crate::common::Reg::<self::Porr0_SPEC, crate::common::W>::from_ptr(
72 self._svd2pac_as_ptr().add(8usize),
73 )
74 }
75 }
76
77 #[doc = "Port 0 Output Set Register"]
78 #[inline(always)]
79 pub const fn posr0(&self) -> &'static crate::common::Reg<self::Posr0_SPEC, crate::common::W> {
80 unsafe {
81 crate::common::Reg::<self::Posr0_SPEC, crate::common::W>::from_ptr(
82 self._svd2pac_as_ptr().add(10usize),
83 )
84 }
85 }
86}
87#[doc(hidden)]
88#[derive(Copy, Clone, Eq, PartialEq)]
89pub struct Podr0_SPEC;
90impl crate::sealed::RegSpec for Podr0_SPEC {
91 type DataType = u16;
92}
93
94#[doc = "Port 0 Output Data Register"]
95pub type Podr0 = crate::RegValueT<Podr0_SPEC>;
96
97impl Podr0 {
98 #[doc = "P008 Output Data"]
99 #[inline(always)]
100 pub fn podr08(
101 self,
102 ) -> crate::common::RegisterField<
103 8,
104 0x1,
105 1,
106 0,
107 podr0::Podr08,
108 podr0::Podr08,
109 Podr0_SPEC,
110 crate::common::RW,
111 > {
112 crate::common::RegisterField::<
113 8,
114 0x1,
115 1,
116 0,
117 podr0::Podr08,
118 podr0::Podr08,
119 Podr0_SPEC,
120 crate::common::RW,
121 >::from_register(self, 0)
122 }
123
124 #[doc = "P009 Output Data"]
125 #[inline(always)]
126 pub fn podr09(
127 self,
128 ) -> crate::common::RegisterField<
129 9,
130 0x1,
131 1,
132 0,
133 podr0::Podr09,
134 podr0::Podr09,
135 Podr0_SPEC,
136 crate::common::RW,
137 > {
138 crate::common::RegisterField::<
139 9,
140 0x1,
141 1,
142 0,
143 podr0::Podr09,
144 podr0::Podr09,
145 Podr0_SPEC,
146 crate::common::RW,
147 >::from_register(self, 0)
148 }
149
150 #[doc = "P010 Output Data"]
151 #[inline(always)]
152 pub fn podr10(
153 self,
154 ) -> crate::common::RegisterField<
155 10,
156 0x1,
157 1,
158 0,
159 podr0::Podr10,
160 podr0::Podr10,
161 Podr0_SPEC,
162 crate::common::RW,
163 > {
164 crate::common::RegisterField::<
165 10,
166 0x1,
167 1,
168 0,
169 podr0::Podr10,
170 podr0::Podr10,
171 Podr0_SPEC,
172 crate::common::RW,
173 >::from_register(self, 0)
174 }
175
176 #[doc = "P011 Output Data"]
177 #[inline(always)]
178 pub fn podr11(
179 self,
180 ) -> crate::common::RegisterField<
181 11,
182 0x1,
183 1,
184 0,
185 podr0::Podr11,
186 podr0::Podr11,
187 Podr0_SPEC,
188 crate::common::RW,
189 > {
190 crate::common::RegisterField::<
191 11,
192 0x1,
193 1,
194 0,
195 podr0::Podr11,
196 podr0::Podr11,
197 Podr0_SPEC,
198 crate::common::RW,
199 >::from_register(self, 0)
200 }
201
202 #[doc = "P012 Output Data"]
203 #[inline(always)]
204 pub fn podr12(
205 self,
206 ) -> crate::common::RegisterField<
207 12,
208 0x1,
209 1,
210 0,
211 podr0::Podr12,
212 podr0::Podr12,
213 Podr0_SPEC,
214 crate::common::RW,
215 > {
216 crate::common::RegisterField::<
217 12,
218 0x1,
219 1,
220 0,
221 podr0::Podr12,
222 podr0::Podr12,
223 Podr0_SPEC,
224 crate::common::RW,
225 >::from_register(self, 0)
226 }
227
228 #[doc = "P013 Output Data"]
229 #[inline(always)]
230 pub fn podr13(
231 self,
232 ) -> crate::common::RegisterField<
233 13,
234 0x1,
235 1,
236 0,
237 podr0::Podr13,
238 podr0::Podr13,
239 Podr0_SPEC,
240 crate::common::RW,
241 > {
242 crate::common::RegisterField::<
243 13,
244 0x1,
245 1,
246 0,
247 podr0::Podr13,
248 podr0::Podr13,
249 Podr0_SPEC,
250 crate::common::RW,
251 >::from_register(self, 0)
252 }
253
254 #[doc = "P014 Output Data"]
255 #[inline(always)]
256 pub fn podr14(
257 self,
258 ) -> crate::common::RegisterField<
259 14,
260 0x1,
261 1,
262 0,
263 podr0::Podr14,
264 podr0::Podr14,
265 Podr0_SPEC,
266 crate::common::RW,
267 > {
268 crate::common::RegisterField::<
269 14,
270 0x1,
271 1,
272 0,
273 podr0::Podr14,
274 podr0::Podr14,
275 Podr0_SPEC,
276 crate::common::RW,
277 >::from_register(self, 0)
278 }
279
280 #[doc = "P015 Output Data"]
281 #[inline(always)]
282 pub fn podr15(
283 self,
284 ) -> crate::common::RegisterField<
285 15,
286 0x1,
287 1,
288 0,
289 podr0::Podr15,
290 podr0::Podr15,
291 Podr0_SPEC,
292 crate::common::RW,
293 > {
294 crate::common::RegisterField::<
295 15,
296 0x1,
297 1,
298 0,
299 podr0::Podr15,
300 podr0::Podr15,
301 Podr0_SPEC,
302 crate::common::RW,
303 >::from_register(self, 0)
304 }
305}
306impl ::core::default::Default for Podr0 {
307 #[inline(always)]
308 fn default() -> Podr0 {
309 <crate::RegValueT<Podr0_SPEC> as RegisterValue<_>>::new(0)
310 }
311}
312pub mod podr0 {
313
314 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
315 pub struct Podr08_SPEC;
316 pub type Podr08 = crate::EnumBitfieldStruct<u8, Podr08_SPEC>;
317 impl Podr08 {
318 #[doc = "Low output"]
319 pub const _0: Self = Self::new(0);
320
321 #[doc = "High output"]
322 pub const _1: Self = Self::new(1);
323 }
324 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
325 pub struct Podr09_SPEC;
326 pub type Podr09 = crate::EnumBitfieldStruct<u8, Podr09_SPEC>;
327 impl Podr09 {
328 #[doc = "Low output"]
329 pub const _0: Self = Self::new(0);
330
331 #[doc = "High output"]
332 pub const _1: Self = Self::new(1);
333 }
334 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
335 pub struct Podr10_SPEC;
336 pub type Podr10 = crate::EnumBitfieldStruct<u8, Podr10_SPEC>;
337 impl Podr10 {
338 #[doc = "Low output"]
339 pub const _0: Self = Self::new(0);
340
341 #[doc = "High output"]
342 pub const _1: Self = Self::new(1);
343 }
344 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
345 pub struct Podr11_SPEC;
346 pub type Podr11 = crate::EnumBitfieldStruct<u8, Podr11_SPEC>;
347 impl Podr11 {
348 #[doc = "Low output"]
349 pub const _0: Self = Self::new(0);
350
351 #[doc = "High output"]
352 pub const _1: Self = Self::new(1);
353 }
354 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
355 pub struct Podr12_SPEC;
356 pub type Podr12 = crate::EnumBitfieldStruct<u8, Podr12_SPEC>;
357 impl Podr12 {
358 #[doc = "Low output"]
359 pub const _0: Self = Self::new(0);
360
361 #[doc = "High output"]
362 pub const _1: Self = Self::new(1);
363 }
364 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
365 pub struct Podr13_SPEC;
366 pub type Podr13 = crate::EnumBitfieldStruct<u8, Podr13_SPEC>;
367 impl Podr13 {
368 #[doc = "Low output"]
369 pub const _0: Self = Self::new(0);
370
371 #[doc = "High output"]
372 pub const _1: Self = Self::new(1);
373 }
374 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
375 pub struct Podr14_SPEC;
376 pub type Podr14 = crate::EnumBitfieldStruct<u8, Podr14_SPEC>;
377 impl Podr14 {
378 #[doc = "Low output"]
379 pub const _0: Self = Self::new(0);
380
381 #[doc = "High output"]
382 pub const _1: Self = Self::new(1);
383 }
384 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
385 pub struct Podr15_SPEC;
386 pub type Podr15 = crate::EnumBitfieldStruct<u8, Podr15_SPEC>;
387 impl Podr15 {
388 #[doc = "Low output"]
389 pub const _0: Self = Self::new(0);
390
391 #[doc = "High output"]
392 pub const _1: Self = Self::new(1);
393 }
394}
395#[doc(hidden)]
396#[derive(Copy, Clone, Eq, PartialEq)]
397pub struct Pdr0_SPEC;
398impl crate::sealed::RegSpec for Pdr0_SPEC {
399 type DataType = u16;
400}
401
402#[doc = "Port 0 Direction Register"]
403pub type Pdr0 = crate::RegValueT<Pdr0_SPEC>;
404
405impl Pdr0 {
406 #[doc = "P008 Direction"]
407 #[inline(always)]
408 pub fn pdr08(
409 self,
410 ) -> crate::common::RegisterField<
411 8,
412 0x1,
413 1,
414 0,
415 pdr0::Pdr08,
416 pdr0::Pdr08,
417 Pdr0_SPEC,
418 crate::common::RW,
419 > {
420 crate::common::RegisterField::<
421 8,
422 0x1,
423 1,
424 0,
425 pdr0::Pdr08,
426 pdr0::Pdr08,
427 Pdr0_SPEC,
428 crate::common::RW,
429 >::from_register(self, 0)
430 }
431
432 #[doc = "P009 Direction"]
433 #[inline(always)]
434 pub fn pdr09(
435 self,
436 ) -> crate::common::RegisterField<
437 9,
438 0x1,
439 1,
440 0,
441 pdr0::Pdr09,
442 pdr0::Pdr09,
443 Pdr0_SPEC,
444 crate::common::RW,
445 > {
446 crate::common::RegisterField::<
447 9,
448 0x1,
449 1,
450 0,
451 pdr0::Pdr09,
452 pdr0::Pdr09,
453 Pdr0_SPEC,
454 crate::common::RW,
455 >::from_register(self, 0)
456 }
457
458 #[doc = "P010 Direction"]
459 #[inline(always)]
460 pub fn pdr10(
461 self,
462 ) -> crate::common::RegisterField<
463 10,
464 0x1,
465 1,
466 0,
467 pdr0::Pdr10,
468 pdr0::Pdr10,
469 Pdr0_SPEC,
470 crate::common::RW,
471 > {
472 crate::common::RegisterField::<
473 10,
474 0x1,
475 1,
476 0,
477 pdr0::Pdr10,
478 pdr0::Pdr10,
479 Pdr0_SPEC,
480 crate::common::RW,
481 >::from_register(self, 0)
482 }
483
484 #[doc = "P011 Direction"]
485 #[inline(always)]
486 pub fn pdr11(
487 self,
488 ) -> crate::common::RegisterField<
489 11,
490 0x1,
491 1,
492 0,
493 pdr0::Pdr11,
494 pdr0::Pdr11,
495 Pdr0_SPEC,
496 crate::common::RW,
497 > {
498 crate::common::RegisterField::<
499 11,
500 0x1,
501 1,
502 0,
503 pdr0::Pdr11,
504 pdr0::Pdr11,
505 Pdr0_SPEC,
506 crate::common::RW,
507 >::from_register(self, 0)
508 }
509
510 #[doc = "P012 Direction"]
511 #[inline(always)]
512 pub fn pdr12(
513 self,
514 ) -> crate::common::RegisterField<
515 12,
516 0x1,
517 1,
518 0,
519 pdr0::Pdr12,
520 pdr0::Pdr12,
521 Pdr0_SPEC,
522 crate::common::RW,
523 > {
524 crate::common::RegisterField::<
525 12,
526 0x1,
527 1,
528 0,
529 pdr0::Pdr12,
530 pdr0::Pdr12,
531 Pdr0_SPEC,
532 crate::common::RW,
533 >::from_register(self, 0)
534 }
535
536 #[doc = "P013 Direction"]
537 #[inline(always)]
538 pub fn pdr13(
539 self,
540 ) -> crate::common::RegisterField<
541 13,
542 0x1,
543 1,
544 0,
545 pdr0::Pdr13,
546 pdr0::Pdr13,
547 Pdr0_SPEC,
548 crate::common::RW,
549 > {
550 crate::common::RegisterField::<
551 13,
552 0x1,
553 1,
554 0,
555 pdr0::Pdr13,
556 pdr0::Pdr13,
557 Pdr0_SPEC,
558 crate::common::RW,
559 >::from_register(self, 0)
560 }
561
562 #[doc = "P014 Direction"]
563 #[inline(always)]
564 pub fn pdr14(
565 self,
566 ) -> crate::common::RegisterField<
567 14,
568 0x1,
569 1,
570 0,
571 pdr0::Pdr14,
572 pdr0::Pdr14,
573 Pdr0_SPEC,
574 crate::common::RW,
575 > {
576 crate::common::RegisterField::<
577 14,
578 0x1,
579 1,
580 0,
581 pdr0::Pdr14,
582 pdr0::Pdr14,
583 Pdr0_SPEC,
584 crate::common::RW,
585 >::from_register(self, 0)
586 }
587
588 #[doc = "P015 Direction"]
589 #[inline(always)]
590 pub fn pdr15(
591 self,
592 ) -> crate::common::RegisterField<
593 15,
594 0x1,
595 1,
596 0,
597 pdr0::Pdr15,
598 pdr0::Pdr15,
599 Pdr0_SPEC,
600 crate::common::RW,
601 > {
602 crate::common::RegisterField::<
603 15,
604 0x1,
605 1,
606 0,
607 pdr0::Pdr15,
608 pdr0::Pdr15,
609 Pdr0_SPEC,
610 crate::common::RW,
611 >::from_register(self, 0)
612 }
613}
614impl ::core::default::Default for Pdr0 {
615 #[inline(always)]
616 fn default() -> Pdr0 {
617 <crate::RegValueT<Pdr0_SPEC> as RegisterValue<_>>::new(0)
618 }
619}
620pub mod pdr0 {
621
622 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
623 pub struct Pdr08_SPEC;
624 pub type Pdr08 = crate::EnumBitfieldStruct<u8, Pdr08_SPEC>;
625 impl Pdr08 {
626 #[doc = "Output 0"]
627 pub const _0: Self = Self::new(0);
628
629 #[doc = "Output 1"]
630 pub const _1: Self = Self::new(1);
631 }
632 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
633 pub struct Pdr09_SPEC;
634 pub type Pdr09 = crate::EnumBitfieldStruct<u8, Pdr09_SPEC>;
635 impl Pdr09 {
636 #[doc = "Output 0"]
637 pub const _0: Self = Self::new(0);
638
639 #[doc = "Output 1"]
640 pub const _1: Self = Self::new(1);
641 }
642 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
643 pub struct Pdr10_SPEC;
644 pub type Pdr10 = crate::EnumBitfieldStruct<u8, Pdr10_SPEC>;
645 impl Pdr10 {
646 #[doc = "Output 0"]
647 pub const _0: Self = Self::new(0);
648
649 #[doc = "Output 1"]
650 pub const _1: Self = Self::new(1);
651 }
652 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
653 pub struct Pdr11_SPEC;
654 pub type Pdr11 = crate::EnumBitfieldStruct<u8, Pdr11_SPEC>;
655 impl Pdr11 {
656 #[doc = "Output 0"]
657 pub const _0: Self = Self::new(0);
658
659 #[doc = "Output 1"]
660 pub const _1: Self = Self::new(1);
661 }
662 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
663 pub struct Pdr12_SPEC;
664 pub type Pdr12 = crate::EnumBitfieldStruct<u8, Pdr12_SPEC>;
665 impl Pdr12 {
666 #[doc = "Output 0"]
667 pub const _0: Self = Self::new(0);
668
669 #[doc = "Output 1"]
670 pub const _1: Self = Self::new(1);
671 }
672 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
673 pub struct Pdr13_SPEC;
674 pub type Pdr13 = crate::EnumBitfieldStruct<u8, Pdr13_SPEC>;
675 impl Pdr13 {
676 #[doc = "Output 0"]
677 pub const _0: Self = Self::new(0);
678
679 #[doc = "Output 1"]
680 pub const _1: Self = Self::new(1);
681 }
682 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
683 pub struct Pdr14_SPEC;
684 pub type Pdr14 = crate::EnumBitfieldStruct<u8, Pdr14_SPEC>;
685 impl Pdr14 {
686 #[doc = "Output 0"]
687 pub const _0: Self = Self::new(0);
688
689 #[doc = "Output 1"]
690 pub const _1: Self = Self::new(1);
691 }
692 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
693 pub struct Pdr15_SPEC;
694 pub type Pdr15 = crate::EnumBitfieldStruct<u8, Pdr15_SPEC>;
695 impl Pdr15 {
696 #[doc = "Output 0"]
697 pub const _0: Self = Self::new(0);
698
699 #[doc = "Output 1"]
700 pub const _1: Self = Self::new(1);
701 }
702}
703#[doc(hidden)]
704#[derive(Copy, Clone, Eq, PartialEq)]
705pub struct Pidr0_SPEC;
706impl crate::sealed::RegSpec for Pidr0_SPEC {
707 type DataType = u16;
708}
709
710#[doc = "Port 0 State Register"]
711pub type Pidr0 = crate::RegValueT<Pidr0_SPEC>;
712
713impl Pidr0 {
714 #[doc = "P008 State"]
715 #[inline(always)]
716 pub fn pidr08(
717 self,
718 ) -> crate::common::RegisterField<
719 8,
720 0x1,
721 1,
722 0,
723 pidr0::Pidr08,
724 pidr0::Pidr08,
725 Pidr0_SPEC,
726 crate::common::R,
727 > {
728 crate::common::RegisterField::<
729 8,
730 0x1,
731 1,
732 0,
733 pidr0::Pidr08,
734 pidr0::Pidr08,
735 Pidr0_SPEC,
736 crate::common::R,
737 >::from_register(self, 0)
738 }
739
740 #[doc = "P009 State"]
741 #[inline(always)]
742 pub fn pidr09(
743 self,
744 ) -> crate::common::RegisterField<
745 9,
746 0x1,
747 1,
748 0,
749 pidr0::Pidr09,
750 pidr0::Pidr09,
751 Pidr0_SPEC,
752 crate::common::R,
753 > {
754 crate::common::RegisterField::<
755 9,
756 0x1,
757 1,
758 0,
759 pidr0::Pidr09,
760 pidr0::Pidr09,
761 Pidr0_SPEC,
762 crate::common::R,
763 >::from_register(self, 0)
764 }
765
766 #[doc = "P010 State"]
767 #[inline(always)]
768 pub fn pidr10(
769 self,
770 ) -> crate::common::RegisterField<
771 10,
772 0x1,
773 1,
774 0,
775 pidr0::Pidr10,
776 pidr0::Pidr10,
777 Pidr0_SPEC,
778 crate::common::R,
779 > {
780 crate::common::RegisterField::<
781 10,
782 0x1,
783 1,
784 0,
785 pidr0::Pidr10,
786 pidr0::Pidr10,
787 Pidr0_SPEC,
788 crate::common::R,
789 >::from_register(self, 0)
790 }
791
792 #[doc = "P011 State"]
793 #[inline(always)]
794 pub fn pidr11(
795 self,
796 ) -> crate::common::RegisterField<
797 11,
798 0x1,
799 1,
800 0,
801 pidr0::Pidr11,
802 pidr0::Pidr11,
803 Pidr0_SPEC,
804 crate::common::R,
805 > {
806 crate::common::RegisterField::<
807 11,
808 0x1,
809 1,
810 0,
811 pidr0::Pidr11,
812 pidr0::Pidr11,
813 Pidr0_SPEC,
814 crate::common::R,
815 >::from_register(self, 0)
816 }
817
818 #[doc = "P012 State"]
819 #[inline(always)]
820 pub fn pidr12(
821 self,
822 ) -> crate::common::RegisterField<
823 12,
824 0x1,
825 1,
826 0,
827 pidr0::Pidr12,
828 pidr0::Pidr12,
829 Pidr0_SPEC,
830 crate::common::R,
831 > {
832 crate::common::RegisterField::<
833 12,
834 0x1,
835 1,
836 0,
837 pidr0::Pidr12,
838 pidr0::Pidr12,
839 Pidr0_SPEC,
840 crate::common::R,
841 >::from_register(self, 0)
842 }
843
844 #[doc = "P013 State"]
845 #[inline(always)]
846 pub fn pidr13(
847 self,
848 ) -> crate::common::RegisterField<
849 13,
850 0x1,
851 1,
852 0,
853 pidr0::Pidr13,
854 pidr0::Pidr13,
855 Pidr0_SPEC,
856 crate::common::R,
857 > {
858 crate::common::RegisterField::<
859 13,
860 0x1,
861 1,
862 0,
863 pidr0::Pidr13,
864 pidr0::Pidr13,
865 Pidr0_SPEC,
866 crate::common::R,
867 >::from_register(self, 0)
868 }
869
870 #[doc = "P014 State"]
871 #[inline(always)]
872 pub fn pidr14(
873 self,
874 ) -> crate::common::RegisterField<
875 14,
876 0x1,
877 1,
878 0,
879 pidr0::Pidr14,
880 pidr0::Pidr14,
881 Pidr0_SPEC,
882 crate::common::R,
883 > {
884 crate::common::RegisterField::<
885 14,
886 0x1,
887 1,
888 0,
889 pidr0::Pidr14,
890 pidr0::Pidr14,
891 Pidr0_SPEC,
892 crate::common::R,
893 >::from_register(self, 0)
894 }
895
896 #[doc = "P015 State"]
897 #[inline(always)]
898 pub fn pidr15(
899 self,
900 ) -> crate::common::RegisterField<
901 15,
902 0x1,
903 1,
904 0,
905 pidr0::Pidr15,
906 pidr0::Pidr15,
907 Pidr0_SPEC,
908 crate::common::R,
909 > {
910 crate::common::RegisterField::<
911 15,
912 0x1,
913 1,
914 0,
915 pidr0::Pidr15,
916 pidr0::Pidr15,
917 Pidr0_SPEC,
918 crate::common::R,
919 >::from_register(self, 0)
920 }
921}
922impl ::core::default::Default for Pidr0 {
923 #[inline(always)]
924 fn default() -> Pidr0 {
925 <crate::RegValueT<Pidr0_SPEC> as RegisterValue<_>>::new(0)
926 }
927}
928pub mod pidr0 {
929
930 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
931 pub struct Pidr08_SPEC;
932 pub type Pidr08 = crate::EnumBitfieldStruct<u8, Pidr08_SPEC>;
933 impl Pidr08 {
934 #[doc = "Low level"]
935 pub const _0: Self = Self::new(0);
936
937 #[doc = "High level"]
938 pub const _1: Self = Self::new(1);
939 }
940 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
941 pub struct Pidr09_SPEC;
942 pub type Pidr09 = crate::EnumBitfieldStruct<u8, Pidr09_SPEC>;
943 impl Pidr09 {
944 #[doc = "Low level"]
945 pub const _0: Self = Self::new(0);
946
947 #[doc = "High level"]
948 pub const _1: Self = Self::new(1);
949 }
950 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
951 pub struct Pidr10_SPEC;
952 pub type Pidr10 = crate::EnumBitfieldStruct<u8, Pidr10_SPEC>;
953 impl Pidr10 {
954 #[doc = "Low level"]
955 pub const _0: Self = Self::new(0);
956
957 #[doc = "High level"]
958 pub const _1: Self = Self::new(1);
959 }
960 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
961 pub struct Pidr11_SPEC;
962 pub type Pidr11 = crate::EnumBitfieldStruct<u8, Pidr11_SPEC>;
963 impl Pidr11 {
964 #[doc = "Low level"]
965 pub const _0: Self = Self::new(0);
966
967 #[doc = "High level"]
968 pub const _1: Self = Self::new(1);
969 }
970 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
971 pub struct Pidr12_SPEC;
972 pub type Pidr12 = crate::EnumBitfieldStruct<u8, Pidr12_SPEC>;
973 impl Pidr12 {
974 #[doc = "Low level"]
975 pub const _0: Self = Self::new(0);
976
977 #[doc = "High level"]
978 pub const _1: Self = Self::new(1);
979 }
980 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
981 pub struct Pidr13_SPEC;
982 pub type Pidr13 = crate::EnumBitfieldStruct<u8, Pidr13_SPEC>;
983 impl Pidr13 {
984 #[doc = "Low level"]
985 pub const _0: Self = Self::new(0);
986
987 #[doc = "High level"]
988 pub const _1: Self = Self::new(1);
989 }
990 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
991 pub struct Pidr14_SPEC;
992 pub type Pidr14 = crate::EnumBitfieldStruct<u8, Pidr14_SPEC>;
993 impl Pidr14 {
994 #[doc = "Low level"]
995 pub const _0: Self = Self::new(0);
996
997 #[doc = "High level"]
998 pub const _1: Self = Self::new(1);
999 }
1000 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1001 pub struct Pidr15_SPEC;
1002 pub type Pidr15 = crate::EnumBitfieldStruct<u8, Pidr15_SPEC>;
1003 impl Pidr15 {
1004 #[doc = "Low level"]
1005 pub const _0: Self = Self::new(0);
1006
1007 #[doc = "High level"]
1008 pub const _1: Self = Self::new(1);
1009 }
1010}
1011#[doc(hidden)]
1012#[derive(Copy, Clone, Eq, PartialEq)]
1013pub struct Porr0_SPEC;
1014impl crate::sealed::RegSpec for Porr0_SPEC {
1015 type DataType = u16;
1016}
1017
1018#[doc = "Port 0 Output Reset Register"]
1019pub type Porr0 = crate::RegValueT<Porr0_SPEC>;
1020
1021impl Porr0 {
1022 #[doc = "P008 Output Reset"]
1023 #[inline(always)]
1024 pub fn porr08(
1025 self,
1026 ) -> crate::common::RegisterField<
1027 8,
1028 0x1,
1029 1,
1030 0,
1031 porr0::Porr08,
1032 porr0::Porr08,
1033 Porr0_SPEC,
1034 crate::common::W,
1035 > {
1036 crate::common::RegisterField::<
1037 8,
1038 0x1,
1039 1,
1040 0,
1041 porr0::Porr08,
1042 porr0::Porr08,
1043 Porr0_SPEC,
1044 crate::common::W,
1045 >::from_register(self, 0)
1046 }
1047
1048 #[doc = "P009 Output Reset"]
1049 #[inline(always)]
1050 pub fn porr09(
1051 self,
1052 ) -> crate::common::RegisterField<
1053 9,
1054 0x1,
1055 1,
1056 0,
1057 porr0::Porr09,
1058 porr0::Porr09,
1059 Porr0_SPEC,
1060 crate::common::W,
1061 > {
1062 crate::common::RegisterField::<
1063 9,
1064 0x1,
1065 1,
1066 0,
1067 porr0::Porr09,
1068 porr0::Porr09,
1069 Porr0_SPEC,
1070 crate::common::W,
1071 >::from_register(self, 0)
1072 }
1073
1074 #[doc = "P010 Output Reset"]
1075 #[inline(always)]
1076 pub fn porr10(
1077 self,
1078 ) -> crate::common::RegisterField<
1079 10,
1080 0x1,
1081 1,
1082 0,
1083 porr0::Porr10,
1084 porr0::Porr10,
1085 Porr0_SPEC,
1086 crate::common::W,
1087 > {
1088 crate::common::RegisterField::<
1089 10,
1090 0x1,
1091 1,
1092 0,
1093 porr0::Porr10,
1094 porr0::Porr10,
1095 Porr0_SPEC,
1096 crate::common::W,
1097 >::from_register(self, 0)
1098 }
1099
1100 #[doc = "P011 Output Reset"]
1101 #[inline(always)]
1102 pub fn porr11(
1103 self,
1104 ) -> crate::common::RegisterField<
1105 11,
1106 0x1,
1107 1,
1108 0,
1109 porr0::Porr11,
1110 porr0::Porr11,
1111 Porr0_SPEC,
1112 crate::common::W,
1113 > {
1114 crate::common::RegisterField::<
1115 11,
1116 0x1,
1117 1,
1118 0,
1119 porr0::Porr11,
1120 porr0::Porr11,
1121 Porr0_SPEC,
1122 crate::common::W,
1123 >::from_register(self, 0)
1124 }
1125
1126 #[doc = "P012 Output Reset"]
1127 #[inline(always)]
1128 pub fn porr12(
1129 self,
1130 ) -> crate::common::RegisterField<
1131 12,
1132 0x1,
1133 1,
1134 0,
1135 porr0::Porr12,
1136 porr0::Porr12,
1137 Porr0_SPEC,
1138 crate::common::W,
1139 > {
1140 crate::common::RegisterField::<
1141 12,
1142 0x1,
1143 1,
1144 0,
1145 porr0::Porr12,
1146 porr0::Porr12,
1147 Porr0_SPEC,
1148 crate::common::W,
1149 >::from_register(self, 0)
1150 }
1151
1152 #[doc = "P013 Output Reset"]
1153 #[inline(always)]
1154 pub fn porr13(
1155 self,
1156 ) -> crate::common::RegisterField<
1157 13,
1158 0x1,
1159 1,
1160 0,
1161 porr0::Porr13,
1162 porr0::Porr13,
1163 Porr0_SPEC,
1164 crate::common::W,
1165 > {
1166 crate::common::RegisterField::<
1167 13,
1168 0x1,
1169 1,
1170 0,
1171 porr0::Porr13,
1172 porr0::Porr13,
1173 Porr0_SPEC,
1174 crate::common::W,
1175 >::from_register(self, 0)
1176 }
1177
1178 #[doc = "P014 Output Reset"]
1179 #[inline(always)]
1180 pub fn porr14(
1181 self,
1182 ) -> crate::common::RegisterField<
1183 14,
1184 0x1,
1185 1,
1186 0,
1187 porr0::Porr14,
1188 porr0::Porr14,
1189 Porr0_SPEC,
1190 crate::common::W,
1191 > {
1192 crate::common::RegisterField::<
1193 14,
1194 0x1,
1195 1,
1196 0,
1197 porr0::Porr14,
1198 porr0::Porr14,
1199 Porr0_SPEC,
1200 crate::common::W,
1201 >::from_register(self, 0)
1202 }
1203
1204 #[doc = "P015 Output Reset"]
1205 #[inline(always)]
1206 pub fn porr15(
1207 self,
1208 ) -> crate::common::RegisterField<
1209 15,
1210 0x1,
1211 1,
1212 0,
1213 porr0::Porr15,
1214 porr0::Porr15,
1215 Porr0_SPEC,
1216 crate::common::W,
1217 > {
1218 crate::common::RegisterField::<
1219 15,
1220 0x1,
1221 1,
1222 0,
1223 porr0::Porr15,
1224 porr0::Porr15,
1225 Porr0_SPEC,
1226 crate::common::W,
1227 >::from_register(self, 0)
1228 }
1229}
1230impl ::core::default::Default for Porr0 {
1231 #[inline(always)]
1232 fn default() -> Porr0 {
1233 <crate::RegValueT<Porr0_SPEC> as RegisterValue<_>>::new(0)
1234 }
1235}
1236pub mod porr0 {
1237
1238 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1239 pub struct Porr08_SPEC;
1240 pub type Porr08 = crate::EnumBitfieldStruct<u8, Porr08_SPEC>;
1241 impl Porr08 {
1242 #[doc = "No effect on output"]
1243 pub const _0: Self = Self::new(0);
1244
1245 #[doc = "Low output"]
1246 pub const _1: Self = Self::new(1);
1247 }
1248 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1249 pub struct Porr09_SPEC;
1250 pub type Porr09 = crate::EnumBitfieldStruct<u8, Porr09_SPEC>;
1251 impl Porr09 {
1252 #[doc = "No effect on output"]
1253 pub const _0: Self = Self::new(0);
1254
1255 #[doc = "Low output"]
1256 pub const _1: Self = Self::new(1);
1257 }
1258 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1259 pub struct Porr10_SPEC;
1260 pub type Porr10 = crate::EnumBitfieldStruct<u8, Porr10_SPEC>;
1261 impl Porr10 {
1262 #[doc = "No effect on output"]
1263 pub const _0: Self = Self::new(0);
1264
1265 #[doc = "Low output"]
1266 pub const _1: Self = Self::new(1);
1267 }
1268 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1269 pub struct Porr11_SPEC;
1270 pub type Porr11 = crate::EnumBitfieldStruct<u8, Porr11_SPEC>;
1271 impl Porr11 {
1272 #[doc = "No effect on output"]
1273 pub const _0: Self = Self::new(0);
1274
1275 #[doc = "Low output"]
1276 pub const _1: Self = Self::new(1);
1277 }
1278 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1279 pub struct Porr12_SPEC;
1280 pub type Porr12 = crate::EnumBitfieldStruct<u8, Porr12_SPEC>;
1281 impl Porr12 {
1282 #[doc = "No effect on output"]
1283 pub const _0: Self = Self::new(0);
1284
1285 #[doc = "Low output"]
1286 pub const _1: Self = Self::new(1);
1287 }
1288 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1289 pub struct Porr13_SPEC;
1290 pub type Porr13 = crate::EnumBitfieldStruct<u8, Porr13_SPEC>;
1291 impl Porr13 {
1292 #[doc = "No effect on output"]
1293 pub const _0: Self = Self::new(0);
1294
1295 #[doc = "Low output"]
1296 pub const _1: Self = Self::new(1);
1297 }
1298 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1299 pub struct Porr14_SPEC;
1300 pub type Porr14 = crate::EnumBitfieldStruct<u8, Porr14_SPEC>;
1301 impl Porr14 {
1302 #[doc = "No effect on output"]
1303 pub const _0: Self = Self::new(0);
1304
1305 #[doc = "Low output"]
1306 pub const _1: Self = Self::new(1);
1307 }
1308 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1309 pub struct Porr15_SPEC;
1310 pub type Porr15 = crate::EnumBitfieldStruct<u8, Porr15_SPEC>;
1311 impl Porr15 {
1312 #[doc = "No effect on output"]
1313 pub const _0: Self = Self::new(0);
1314
1315 #[doc = "Low output"]
1316 pub const _1: Self = Self::new(1);
1317 }
1318}
1319#[doc(hidden)]
1320#[derive(Copy, Clone, Eq, PartialEq)]
1321pub struct Posr0_SPEC;
1322impl crate::sealed::RegSpec for Posr0_SPEC {
1323 type DataType = u16;
1324}
1325
1326#[doc = "Port 0 Output Set Register"]
1327pub type Posr0 = crate::RegValueT<Posr0_SPEC>;
1328
1329impl Posr0 {
1330 #[doc = "P008 Output Set"]
1331 #[inline(always)]
1332 pub fn posr08(
1333 self,
1334 ) -> crate::common::RegisterField<
1335 8,
1336 0x1,
1337 1,
1338 0,
1339 posr0::Posr08,
1340 posr0::Posr08,
1341 Posr0_SPEC,
1342 crate::common::W,
1343 > {
1344 crate::common::RegisterField::<
1345 8,
1346 0x1,
1347 1,
1348 0,
1349 posr0::Posr08,
1350 posr0::Posr08,
1351 Posr0_SPEC,
1352 crate::common::W,
1353 >::from_register(self, 0)
1354 }
1355
1356 #[doc = "P009 Output Set"]
1357 #[inline(always)]
1358 pub fn posr09(
1359 self,
1360 ) -> crate::common::RegisterField<
1361 9,
1362 0x1,
1363 1,
1364 0,
1365 posr0::Posr09,
1366 posr0::Posr09,
1367 Posr0_SPEC,
1368 crate::common::W,
1369 > {
1370 crate::common::RegisterField::<
1371 9,
1372 0x1,
1373 1,
1374 0,
1375 posr0::Posr09,
1376 posr0::Posr09,
1377 Posr0_SPEC,
1378 crate::common::W,
1379 >::from_register(self, 0)
1380 }
1381
1382 #[doc = "P010 Output Set"]
1383 #[inline(always)]
1384 pub fn posr10(
1385 self,
1386 ) -> crate::common::RegisterField<
1387 10,
1388 0x1,
1389 1,
1390 0,
1391 posr0::Posr10,
1392 posr0::Posr10,
1393 Posr0_SPEC,
1394 crate::common::W,
1395 > {
1396 crate::common::RegisterField::<
1397 10,
1398 0x1,
1399 1,
1400 0,
1401 posr0::Posr10,
1402 posr0::Posr10,
1403 Posr0_SPEC,
1404 crate::common::W,
1405 >::from_register(self, 0)
1406 }
1407
1408 #[doc = "P011 Output Set"]
1409 #[inline(always)]
1410 pub fn posr11(
1411 self,
1412 ) -> crate::common::RegisterField<
1413 11,
1414 0x1,
1415 1,
1416 0,
1417 posr0::Posr11,
1418 posr0::Posr11,
1419 Posr0_SPEC,
1420 crate::common::W,
1421 > {
1422 crate::common::RegisterField::<
1423 11,
1424 0x1,
1425 1,
1426 0,
1427 posr0::Posr11,
1428 posr0::Posr11,
1429 Posr0_SPEC,
1430 crate::common::W,
1431 >::from_register(self, 0)
1432 }
1433
1434 #[doc = "P012 Output Set"]
1435 #[inline(always)]
1436 pub fn posr12(
1437 self,
1438 ) -> crate::common::RegisterField<
1439 12,
1440 0x1,
1441 1,
1442 0,
1443 posr0::Posr12,
1444 posr0::Posr12,
1445 Posr0_SPEC,
1446 crate::common::W,
1447 > {
1448 crate::common::RegisterField::<
1449 12,
1450 0x1,
1451 1,
1452 0,
1453 posr0::Posr12,
1454 posr0::Posr12,
1455 Posr0_SPEC,
1456 crate::common::W,
1457 >::from_register(self, 0)
1458 }
1459
1460 #[doc = "P013 Output Set"]
1461 #[inline(always)]
1462 pub fn posr13(
1463 self,
1464 ) -> crate::common::RegisterField<
1465 13,
1466 0x1,
1467 1,
1468 0,
1469 posr0::Posr13,
1470 posr0::Posr13,
1471 Posr0_SPEC,
1472 crate::common::W,
1473 > {
1474 crate::common::RegisterField::<
1475 13,
1476 0x1,
1477 1,
1478 0,
1479 posr0::Posr13,
1480 posr0::Posr13,
1481 Posr0_SPEC,
1482 crate::common::W,
1483 >::from_register(self, 0)
1484 }
1485
1486 #[doc = "P014 Output Set"]
1487 #[inline(always)]
1488 pub fn posr14(
1489 self,
1490 ) -> crate::common::RegisterField<
1491 14,
1492 0x1,
1493 1,
1494 0,
1495 posr0::Posr14,
1496 posr0::Posr14,
1497 Posr0_SPEC,
1498 crate::common::W,
1499 > {
1500 crate::common::RegisterField::<
1501 14,
1502 0x1,
1503 1,
1504 0,
1505 posr0::Posr14,
1506 posr0::Posr14,
1507 Posr0_SPEC,
1508 crate::common::W,
1509 >::from_register(self, 0)
1510 }
1511
1512 #[doc = "P015 Output Set"]
1513 #[inline(always)]
1514 pub fn posr15(
1515 self,
1516 ) -> crate::common::RegisterField<
1517 15,
1518 0x1,
1519 1,
1520 0,
1521 posr0::Posr15,
1522 posr0::Posr15,
1523 Posr0_SPEC,
1524 crate::common::W,
1525 > {
1526 crate::common::RegisterField::<
1527 15,
1528 0x1,
1529 1,
1530 0,
1531 posr0::Posr15,
1532 posr0::Posr15,
1533 Posr0_SPEC,
1534 crate::common::W,
1535 >::from_register(self, 0)
1536 }
1537}
1538impl ::core::default::Default for Posr0 {
1539 #[inline(always)]
1540 fn default() -> Posr0 {
1541 <crate::RegValueT<Posr0_SPEC> as RegisterValue<_>>::new(0)
1542 }
1543}
1544pub mod posr0 {
1545
1546 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1547 pub struct Posr08_SPEC;
1548 pub type Posr08 = crate::EnumBitfieldStruct<u8, Posr08_SPEC>;
1549 impl Posr08 {
1550 #[doc = "No effect on output"]
1551 pub const _0: Self = Self::new(0);
1552
1553 #[doc = "High output"]
1554 pub const _1: Self = Self::new(1);
1555 }
1556 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1557 pub struct Posr09_SPEC;
1558 pub type Posr09 = crate::EnumBitfieldStruct<u8, Posr09_SPEC>;
1559 impl Posr09 {
1560 #[doc = "No effect on output"]
1561 pub const _0: Self = Self::new(0);
1562
1563 #[doc = "High output"]
1564 pub const _1: Self = Self::new(1);
1565 }
1566 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1567 pub struct Posr10_SPEC;
1568 pub type Posr10 = crate::EnumBitfieldStruct<u8, Posr10_SPEC>;
1569 impl Posr10 {
1570 #[doc = "No effect on output"]
1571 pub const _0: Self = Self::new(0);
1572
1573 #[doc = "High output"]
1574 pub const _1: Self = Self::new(1);
1575 }
1576 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1577 pub struct Posr11_SPEC;
1578 pub type Posr11 = crate::EnumBitfieldStruct<u8, Posr11_SPEC>;
1579 impl Posr11 {
1580 #[doc = "No effect on output"]
1581 pub const _0: Self = Self::new(0);
1582
1583 #[doc = "High output"]
1584 pub const _1: Self = Self::new(1);
1585 }
1586 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1587 pub struct Posr12_SPEC;
1588 pub type Posr12 = crate::EnumBitfieldStruct<u8, Posr12_SPEC>;
1589 impl Posr12 {
1590 #[doc = "No effect on output"]
1591 pub const _0: Self = Self::new(0);
1592
1593 #[doc = "High output"]
1594 pub const _1: Self = Self::new(1);
1595 }
1596 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1597 pub struct Posr13_SPEC;
1598 pub type Posr13 = crate::EnumBitfieldStruct<u8, Posr13_SPEC>;
1599 impl Posr13 {
1600 #[doc = "No effect on output"]
1601 pub const _0: Self = Self::new(0);
1602
1603 #[doc = "High output"]
1604 pub const _1: Self = Self::new(1);
1605 }
1606 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1607 pub struct Posr14_SPEC;
1608 pub type Posr14 = crate::EnumBitfieldStruct<u8, Posr14_SPEC>;
1609 impl Posr14 {
1610 #[doc = "No effect on output"]
1611 pub const _0: Self = Self::new(0);
1612
1613 #[doc = "High output"]
1614 pub const _1: Self = Self::new(1);
1615 }
1616 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1617 pub struct Posr15_SPEC;
1618 pub type Posr15 = crate::EnumBitfieldStruct<u8, Posr15_SPEC>;
1619 impl Posr15 {
1620 #[doc = "No effect on output"]
1621 pub const _0: Self = Self::new(0);
1622
1623 #[doc = "High output"]
1624 pub const _1: Self = Self::new(1);
1625 }
1626}