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 1 Control"]
28unsafe impl ::core::marker::Send for super::Port1 {}
29unsafe impl ::core::marker::Sync for super::Port1 {}
30impl super::Port1 {
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 1 Output Data Register"]
38 #[inline(always)]
39 pub const fn podr1(&self) -> &'static crate::common::Reg<self::Podr1_SPEC, crate::common::RW> {
40 unsafe {
41 crate::common::Reg::<self::Podr1_SPEC, crate::common::RW>::from_ptr(
42 self._svd2pac_as_ptr().add(0usize),
43 )
44 }
45 }
46
47 #[doc = "Port 1 Direction Register"]
48 #[inline(always)]
49 pub const fn pdr1(&self) -> &'static crate::common::Reg<self::Pdr1_SPEC, crate::common::RW> {
50 unsafe {
51 crate::common::Reg::<self::Pdr1_SPEC, crate::common::RW>::from_ptr(
52 self._svd2pac_as_ptr().add(2usize),
53 )
54 }
55 }
56
57 #[doc = "Port 1 State Register"]
58 #[inline(always)]
59 pub const fn pidr1(&self) -> &'static crate::common::Reg<self::Pidr1_SPEC, crate::common::R> {
60 unsafe {
61 crate::common::Reg::<self::Pidr1_SPEC, crate::common::R>::from_ptr(
62 self._svd2pac_as_ptr().add(6usize),
63 )
64 }
65 }
66
67 #[doc = "Port 1 Output Reset Register"]
68 #[inline(always)]
69 pub const fn porr1(&self) -> &'static crate::common::Reg<self::Porr1_SPEC, crate::common::W> {
70 unsafe {
71 crate::common::Reg::<self::Porr1_SPEC, crate::common::W>::from_ptr(
72 self._svd2pac_as_ptr().add(8usize),
73 )
74 }
75 }
76
77 #[doc = "Port 1 Output Set Register"]
78 #[inline(always)]
79 pub const fn posr1(&self) -> &'static crate::common::Reg<self::Posr1_SPEC, crate::common::W> {
80 unsafe {
81 crate::common::Reg::<self::Posr1_SPEC, crate::common::W>::from_ptr(
82 self._svd2pac_as_ptr().add(10usize),
83 )
84 }
85 }
86
87 #[doc = "Port 1 Event Output Reset Register"]
88 #[inline(always)]
89 pub const fn eorr1(&self) -> &'static crate::common::Reg<self::Eorr1_SPEC, crate::common::RW> {
90 unsafe {
91 crate::common::Reg::<self::Eorr1_SPEC, crate::common::RW>::from_ptr(
92 self._svd2pac_as_ptr().add(12usize),
93 )
94 }
95 }
96
97 #[doc = "Port 1 Event Output Set Register"]
98 #[inline(always)]
99 pub const fn eosr1(&self) -> &'static crate::common::Reg<self::Eosr1_SPEC, crate::common::RW> {
100 unsafe {
101 crate::common::Reg::<self::Eosr1_SPEC, crate::common::RW>::from_ptr(
102 self._svd2pac_as_ptr().add(14usize),
103 )
104 }
105 }
106}
107#[doc(hidden)]
108#[derive(Copy, Clone, Eq, PartialEq)]
109pub struct Podr1_SPEC;
110impl crate::sealed::RegSpec for Podr1_SPEC {
111 type DataType = u16;
112}
113
114#[doc = "Port 1 Output Data Register"]
115pub type Podr1 = crate::RegValueT<Podr1_SPEC>;
116
117impl Podr1 {
118 #[doc = "P100 Output Data"]
119 #[inline(always)]
120 pub fn podr00(
121 self,
122 ) -> crate::common::RegisterField<
123 0,
124 0x1,
125 1,
126 0,
127 podr1::Podr00,
128 podr1::Podr00,
129 Podr1_SPEC,
130 crate::common::RW,
131 > {
132 crate::common::RegisterField::<
133 0,
134 0x1,
135 1,
136 0,
137 podr1::Podr00,
138 podr1::Podr00,
139 Podr1_SPEC,
140 crate::common::RW,
141 >::from_register(self, 0)
142 }
143
144 #[doc = "P101 Output Data"]
145 #[inline(always)]
146 pub fn podr01(
147 self,
148 ) -> crate::common::RegisterField<
149 1,
150 0x1,
151 1,
152 0,
153 podr1::Podr01,
154 podr1::Podr01,
155 Podr1_SPEC,
156 crate::common::RW,
157 > {
158 crate::common::RegisterField::<
159 1,
160 0x1,
161 1,
162 0,
163 podr1::Podr01,
164 podr1::Podr01,
165 Podr1_SPEC,
166 crate::common::RW,
167 >::from_register(self, 0)
168 }
169
170 #[doc = "P102 Output Data"]
171 #[inline(always)]
172 pub fn podr02(
173 self,
174 ) -> crate::common::RegisterField<
175 2,
176 0x1,
177 1,
178 0,
179 podr1::Podr02,
180 podr1::Podr02,
181 Podr1_SPEC,
182 crate::common::RW,
183 > {
184 crate::common::RegisterField::<
185 2,
186 0x1,
187 1,
188 0,
189 podr1::Podr02,
190 podr1::Podr02,
191 Podr1_SPEC,
192 crate::common::RW,
193 >::from_register(self, 0)
194 }
195
196 #[doc = "P103 Output Data"]
197 #[inline(always)]
198 pub fn podr03(
199 self,
200 ) -> crate::common::RegisterField<
201 3,
202 0x1,
203 1,
204 0,
205 podr1::Podr03,
206 podr1::Podr03,
207 Podr1_SPEC,
208 crate::common::RW,
209 > {
210 crate::common::RegisterField::<
211 3,
212 0x1,
213 1,
214 0,
215 podr1::Podr03,
216 podr1::Podr03,
217 Podr1_SPEC,
218 crate::common::RW,
219 >::from_register(self, 0)
220 }
221
222 #[doc = "P108 Output Data"]
223 #[inline(always)]
224 pub fn podr08(
225 self,
226 ) -> crate::common::RegisterField<
227 8,
228 0x1,
229 1,
230 0,
231 podr1::Podr08,
232 podr1::Podr08,
233 Podr1_SPEC,
234 crate::common::RW,
235 > {
236 crate::common::RegisterField::<
237 8,
238 0x1,
239 1,
240 0,
241 podr1::Podr08,
242 podr1::Podr08,
243 Podr1_SPEC,
244 crate::common::RW,
245 >::from_register(self, 0)
246 }
247
248 #[doc = "P109 Output Data"]
249 #[inline(always)]
250 pub fn podr09(
251 self,
252 ) -> crate::common::RegisterField<
253 9,
254 0x1,
255 1,
256 0,
257 podr1::Podr09,
258 podr1::Podr09,
259 Podr1_SPEC,
260 crate::common::RW,
261 > {
262 crate::common::RegisterField::<
263 9,
264 0x1,
265 1,
266 0,
267 podr1::Podr09,
268 podr1::Podr09,
269 Podr1_SPEC,
270 crate::common::RW,
271 >::from_register(self, 0)
272 }
273
274 #[doc = "P110 Output Data"]
275 #[inline(always)]
276 pub fn podr10(
277 self,
278 ) -> crate::common::RegisterField<
279 10,
280 0x1,
281 1,
282 0,
283 podr1::Podr10,
284 podr1::Podr10,
285 Podr1_SPEC,
286 crate::common::RW,
287 > {
288 crate::common::RegisterField::<
289 10,
290 0x1,
291 1,
292 0,
293 podr1::Podr10,
294 podr1::Podr10,
295 Podr1_SPEC,
296 crate::common::RW,
297 >::from_register(self, 0)
298 }
299
300 #[doc = "P112 Output Data"]
301 #[inline(always)]
302 pub fn podr12(
303 self,
304 ) -> crate::common::RegisterField<
305 12,
306 0x1,
307 1,
308 0,
309 podr1::Podr12,
310 podr1::Podr12,
311 Podr1_SPEC,
312 crate::common::RW,
313 > {
314 crate::common::RegisterField::<
315 12,
316 0x1,
317 1,
318 0,
319 podr1::Podr12,
320 podr1::Podr12,
321 Podr1_SPEC,
322 crate::common::RW,
323 >::from_register(self, 0)
324 }
325}
326impl ::core::default::Default for Podr1 {
327 #[inline(always)]
328 fn default() -> Podr1 {
329 <crate::RegValueT<Podr1_SPEC> as RegisterValue<_>>::new(0)
330 }
331}
332pub mod podr1 {
333
334 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
335 pub struct Podr00_SPEC;
336 pub type Podr00 = crate::EnumBitfieldStruct<u8, Podr00_SPEC>;
337 impl Podr00 {
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 Podr01_SPEC;
346 pub type Podr01 = crate::EnumBitfieldStruct<u8, Podr01_SPEC>;
347 impl Podr01 {
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 Podr02_SPEC;
356 pub type Podr02 = crate::EnumBitfieldStruct<u8, Podr02_SPEC>;
357 impl Podr02 {
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 Podr03_SPEC;
366 pub type Podr03 = crate::EnumBitfieldStruct<u8, Podr03_SPEC>;
367 impl Podr03 {
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 Podr08_SPEC;
376 pub type Podr08 = crate::EnumBitfieldStruct<u8, Podr08_SPEC>;
377 impl Podr08 {
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 Podr09_SPEC;
386 pub type Podr09 = crate::EnumBitfieldStruct<u8, Podr09_SPEC>;
387 impl Podr09 {
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 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
395 pub struct Podr10_SPEC;
396 pub type Podr10 = crate::EnumBitfieldStruct<u8, Podr10_SPEC>;
397 impl Podr10 {
398 #[doc = "Low output"]
399 pub const _0: Self = Self::new(0);
400
401 #[doc = "High output"]
402 pub const _1: Self = Self::new(1);
403 }
404 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
405 pub struct Podr12_SPEC;
406 pub type Podr12 = crate::EnumBitfieldStruct<u8, Podr12_SPEC>;
407 impl Podr12 {
408 #[doc = "Low output"]
409 pub const _0: Self = Self::new(0);
410
411 #[doc = "High output"]
412 pub const _1: Self = Self::new(1);
413 }
414}
415#[doc(hidden)]
416#[derive(Copy, Clone, Eq, PartialEq)]
417pub struct Pdr1_SPEC;
418impl crate::sealed::RegSpec for Pdr1_SPEC {
419 type DataType = u16;
420}
421
422#[doc = "Port 1 Direction Register"]
423pub type Pdr1 = crate::RegValueT<Pdr1_SPEC>;
424
425impl Pdr1 {
426 #[doc = "P100 Direction"]
427 #[inline(always)]
428 pub fn pdr00(
429 self,
430 ) -> crate::common::RegisterField<
431 0,
432 0x1,
433 1,
434 0,
435 pdr1::Pdr00,
436 pdr1::Pdr00,
437 Pdr1_SPEC,
438 crate::common::RW,
439 > {
440 crate::common::RegisterField::<
441 0,
442 0x1,
443 1,
444 0,
445 pdr1::Pdr00,
446 pdr1::Pdr00,
447 Pdr1_SPEC,
448 crate::common::RW,
449 >::from_register(self, 0)
450 }
451
452 #[doc = "P101 Direction"]
453 #[inline(always)]
454 pub fn pdr01(
455 self,
456 ) -> crate::common::RegisterField<
457 1,
458 0x1,
459 1,
460 0,
461 pdr1::Pdr01,
462 pdr1::Pdr01,
463 Pdr1_SPEC,
464 crate::common::RW,
465 > {
466 crate::common::RegisterField::<
467 1,
468 0x1,
469 1,
470 0,
471 pdr1::Pdr01,
472 pdr1::Pdr01,
473 Pdr1_SPEC,
474 crate::common::RW,
475 >::from_register(self, 0)
476 }
477
478 #[doc = "P102 Direction"]
479 #[inline(always)]
480 pub fn pdr02(
481 self,
482 ) -> crate::common::RegisterField<
483 2,
484 0x1,
485 1,
486 0,
487 pdr1::Pdr02,
488 pdr1::Pdr02,
489 Pdr1_SPEC,
490 crate::common::RW,
491 > {
492 crate::common::RegisterField::<
493 2,
494 0x1,
495 1,
496 0,
497 pdr1::Pdr02,
498 pdr1::Pdr02,
499 Pdr1_SPEC,
500 crate::common::RW,
501 >::from_register(self, 0)
502 }
503
504 #[doc = "P103 Direction"]
505 #[inline(always)]
506 pub fn pdr03(
507 self,
508 ) -> crate::common::RegisterField<
509 3,
510 0x1,
511 1,
512 0,
513 pdr1::Pdr03,
514 pdr1::Pdr03,
515 Pdr1_SPEC,
516 crate::common::RW,
517 > {
518 crate::common::RegisterField::<
519 3,
520 0x1,
521 1,
522 0,
523 pdr1::Pdr03,
524 pdr1::Pdr03,
525 Pdr1_SPEC,
526 crate::common::RW,
527 >::from_register(self, 0)
528 }
529
530 #[doc = "P108 Direction"]
531 #[inline(always)]
532 pub fn pdr08(
533 self,
534 ) -> crate::common::RegisterField<
535 8,
536 0x1,
537 1,
538 0,
539 pdr1::Pdr08,
540 pdr1::Pdr08,
541 Pdr1_SPEC,
542 crate::common::RW,
543 > {
544 crate::common::RegisterField::<
545 8,
546 0x1,
547 1,
548 0,
549 pdr1::Pdr08,
550 pdr1::Pdr08,
551 Pdr1_SPEC,
552 crate::common::RW,
553 >::from_register(self, 0)
554 }
555
556 #[doc = "P109 Direction"]
557 #[inline(always)]
558 pub fn pdr09(
559 self,
560 ) -> crate::common::RegisterField<
561 9,
562 0x1,
563 1,
564 0,
565 pdr1::Pdr09,
566 pdr1::Pdr09,
567 Pdr1_SPEC,
568 crate::common::RW,
569 > {
570 crate::common::RegisterField::<
571 9,
572 0x1,
573 1,
574 0,
575 pdr1::Pdr09,
576 pdr1::Pdr09,
577 Pdr1_SPEC,
578 crate::common::RW,
579 >::from_register(self, 0)
580 }
581
582 #[doc = "P110 Direction"]
583 #[inline(always)]
584 pub fn pdr10(
585 self,
586 ) -> crate::common::RegisterField<
587 10,
588 0x1,
589 1,
590 0,
591 pdr1::Pdr10,
592 pdr1::Pdr10,
593 Pdr1_SPEC,
594 crate::common::RW,
595 > {
596 crate::common::RegisterField::<
597 10,
598 0x1,
599 1,
600 0,
601 pdr1::Pdr10,
602 pdr1::Pdr10,
603 Pdr1_SPEC,
604 crate::common::RW,
605 >::from_register(self, 0)
606 }
607
608 #[doc = "P112 Direction"]
609 #[inline(always)]
610 pub fn pdr12(
611 self,
612 ) -> crate::common::RegisterField<
613 12,
614 0x1,
615 1,
616 0,
617 pdr1::Pdr12,
618 pdr1::Pdr12,
619 Pdr1_SPEC,
620 crate::common::RW,
621 > {
622 crate::common::RegisterField::<
623 12,
624 0x1,
625 1,
626 0,
627 pdr1::Pdr12,
628 pdr1::Pdr12,
629 Pdr1_SPEC,
630 crate::common::RW,
631 >::from_register(self, 0)
632 }
633}
634impl ::core::default::Default for Pdr1 {
635 #[inline(always)]
636 fn default() -> Pdr1 {
637 <crate::RegValueT<Pdr1_SPEC> as RegisterValue<_>>::new(0)
638 }
639}
640pub mod pdr1 {
641
642 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
643 pub struct Pdr00_SPEC;
644 pub type Pdr00 = crate::EnumBitfieldStruct<u8, Pdr00_SPEC>;
645 impl Pdr00 {
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 Pdr01_SPEC;
654 pub type Pdr01 = crate::EnumBitfieldStruct<u8, Pdr01_SPEC>;
655 impl Pdr01 {
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 Pdr02_SPEC;
664 pub type Pdr02 = crate::EnumBitfieldStruct<u8, Pdr02_SPEC>;
665 impl Pdr02 {
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 Pdr03_SPEC;
674 pub type Pdr03 = crate::EnumBitfieldStruct<u8, Pdr03_SPEC>;
675 impl Pdr03 {
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 Pdr08_SPEC;
684 pub type Pdr08 = crate::EnumBitfieldStruct<u8, Pdr08_SPEC>;
685 impl Pdr08 {
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 Pdr09_SPEC;
694 pub type Pdr09 = crate::EnumBitfieldStruct<u8, Pdr09_SPEC>;
695 impl Pdr09 {
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 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
703 pub struct Pdr10_SPEC;
704 pub type Pdr10 = crate::EnumBitfieldStruct<u8, Pdr10_SPEC>;
705 impl Pdr10 {
706 #[doc = "Output 0"]
707 pub const _0: Self = Self::new(0);
708
709 #[doc = "Output 1"]
710 pub const _1: Self = Self::new(1);
711 }
712 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
713 pub struct Pdr12_SPEC;
714 pub type Pdr12 = crate::EnumBitfieldStruct<u8, Pdr12_SPEC>;
715 impl Pdr12 {
716 #[doc = "Output 0"]
717 pub const _0: Self = Self::new(0);
718
719 #[doc = "Output 1"]
720 pub const _1: Self = Self::new(1);
721 }
722}
723#[doc(hidden)]
724#[derive(Copy, Clone, Eq, PartialEq)]
725pub struct Pidr1_SPEC;
726impl crate::sealed::RegSpec for Pidr1_SPEC {
727 type DataType = u16;
728}
729
730#[doc = "Port 1 State Register"]
731pub type Pidr1 = crate::RegValueT<Pidr1_SPEC>;
732
733impl Pidr1 {
734 #[doc = "P100 State"]
735 #[inline(always)]
736 pub fn pidr00(
737 self,
738 ) -> crate::common::RegisterField<
739 0,
740 0x1,
741 1,
742 0,
743 pidr1::Pidr00,
744 pidr1::Pidr00,
745 Pidr1_SPEC,
746 crate::common::R,
747 > {
748 crate::common::RegisterField::<
749 0,
750 0x1,
751 1,
752 0,
753 pidr1::Pidr00,
754 pidr1::Pidr00,
755 Pidr1_SPEC,
756 crate::common::R,
757 >::from_register(self, 0)
758 }
759
760 #[doc = "P101 State"]
761 #[inline(always)]
762 pub fn pidr01(
763 self,
764 ) -> crate::common::RegisterField<
765 1,
766 0x1,
767 1,
768 0,
769 pidr1::Pidr01,
770 pidr1::Pidr01,
771 Pidr1_SPEC,
772 crate::common::R,
773 > {
774 crate::common::RegisterField::<
775 1,
776 0x1,
777 1,
778 0,
779 pidr1::Pidr01,
780 pidr1::Pidr01,
781 Pidr1_SPEC,
782 crate::common::R,
783 >::from_register(self, 0)
784 }
785
786 #[doc = "P102 State"]
787 #[inline(always)]
788 pub fn pidr02(
789 self,
790 ) -> crate::common::RegisterField<
791 2,
792 0x1,
793 1,
794 0,
795 pidr1::Pidr02,
796 pidr1::Pidr02,
797 Pidr1_SPEC,
798 crate::common::R,
799 > {
800 crate::common::RegisterField::<
801 2,
802 0x1,
803 1,
804 0,
805 pidr1::Pidr02,
806 pidr1::Pidr02,
807 Pidr1_SPEC,
808 crate::common::R,
809 >::from_register(self, 0)
810 }
811
812 #[doc = "P103 State"]
813 #[inline(always)]
814 pub fn pidr03(
815 self,
816 ) -> crate::common::RegisterField<
817 3,
818 0x1,
819 1,
820 0,
821 pidr1::Pidr03,
822 pidr1::Pidr03,
823 Pidr1_SPEC,
824 crate::common::R,
825 > {
826 crate::common::RegisterField::<
827 3,
828 0x1,
829 1,
830 0,
831 pidr1::Pidr03,
832 pidr1::Pidr03,
833 Pidr1_SPEC,
834 crate::common::R,
835 >::from_register(self, 0)
836 }
837
838 #[doc = "P108 State"]
839 #[inline(always)]
840 pub fn pidr08(
841 self,
842 ) -> crate::common::RegisterField<
843 8,
844 0x1,
845 1,
846 0,
847 pidr1::Pidr08,
848 pidr1::Pidr08,
849 Pidr1_SPEC,
850 crate::common::R,
851 > {
852 crate::common::RegisterField::<
853 8,
854 0x1,
855 1,
856 0,
857 pidr1::Pidr08,
858 pidr1::Pidr08,
859 Pidr1_SPEC,
860 crate::common::R,
861 >::from_register(self, 0)
862 }
863
864 #[doc = "P109 State"]
865 #[inline(always)]
866 pub fn pidr09(
867 self,
868 ) -> crate::common::RegisterField<
869 9,
870 0x1,
871 1,
872 0,
873 pidr1::Pidr09,
874 pidr1::Pidr09,
875 Pidr1_SPEC,
876 crate::common::R,
877 > {
878 crate::common::RegisterField::<
879 9,
880 0x1,
881 1,
882 0,
883 pidr1::Pidr09,
884 pidr1::Pidr09,
885 Pidr1_SPEC,
886 crate::common::R,
887 >::from_register(self, 0)
888 }
889
890 #[doc = "P110 State"]
891 #[inline(always)]
892 pub fn pidr10(
893 self,
894 ) -> crate::common::RegisterField<
895 10,
896 0x1,
897 1,
898 0,
899 pidr1::Pidr10,
900 pidr1::Pidr10,
901 Pidr1_SPEC,
902 crate::common::R,
903 > {
904 crate::common::RegisterField::<
905 10,
906 0x1,
907 1,
908 0,
909 pidr1::Pidr10,
910 pidr1::Pidr10,
911 Pidr1_SPEC,
912 crate::common::R,
913 >::from_register(self, 0)
914 }
915
916 #[doc = "P112 State"]
917 #[inline(always)]
918 pub fn pidr12(
919 self,
920 ) -> crate::common::RegisterField<
921 12,
922 0x1,
923 1,
924 0,
925 pidr1::Pidr12,
926 pidr1::Pidr12,
927 Pidr1_SPEC,
928 crate::common::R,
929 > {
930 crate::common::RegisterField::<
931 12,
932 0x1,
933 1,
934 0,
935 pidr1::Pidr12,
936 pidr1::Pidr12,
937 Pidr1_SPEC,
938 crate::common::R,
939 >::from_register(self, 0)
940 }
941}
942impl ::core::default::Default for Pidr1 {
943 #[inline(always)]
944 fn default() -> Pidr1 {
945 <crate::RegValueT<Pidr1_SPEC> as RegisterValue<_>>::new(0)
946 }
947}
948pub mod pidr1 {
949
950 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
951 pub struct Pidr00_SPEC;
952 pub type Pidr00 = crate::EnumBitfieldStruct<u8, Pidr00_SPEC>;
953 impl Pidr00 {
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 Pidr01_SPEC;
962 pub type Pidr01 = crate::EnumBitfieldStruct<u8, Pidr01_SPEC>;
963 impl Pidr01 {
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 Pidr02_SPEC;
972 pub type Pidr02 = crate::EnumBitfieldStruct<u8, Pidr02_SPEC>;
973 impl Pidr02 {
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 Pidr03_SPEC;
982 pub type Pidr03 = crate::EnumBitfieldStruct<u8, Pidr03_SPEC>;
983 impl Pidr03 {
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 Pidr08_SPEC;
992 pub type Pidr08 = crate::EnumBitfieldStruct<u8, Pidr08_SPEC>;
993 impl Pidr08 {
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 Pidr09_SPEC;
1002 pub type Pidr09 = crate::EnumBitfieldStruct<u8, Pidr09_SPEC>;
1003 impl Pidr09 {
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 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1011 pub struct Pidr10_SPEC;
1012 pub type Pidr10 = crate::EnumBitfieldStruct<u8, Pidr10_SPEC>;
1013 impl Pidr10 {
1014 #[doc = "Low level"]
1015 pub const _0: Self = Self::new(0);
1016
1017 #[doc = "High level"]
1018 pub const _1: Self = Self::new(1);
1019 }
1020 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1021 pub struct Pidr12_SPEC;
1022 pub type Pidr12 = crate::EnumBitfieldStruct<u8, Pidr12_SPEC>;
1023 impl Pidr12 {
1024 #[doc = "Low level"]
1025 pub const _0: Self = Self::new(0);
1026
1027 #[doc = "High level"]
1028 pub const _1: Self = Self::new(1);
1029 }
1030}
1031#[doc(hidden)]
1032#[derive(Copy, Clone, Eq, PartialEq)]
1033pub struct Porr1_SPEC;
1034impl crate::sealed::RegSpec for Porr1_SPEC {
1035 type DataType = u16;
1036}
1037
1038#[doc = "Port 1 Output Reset Register"]
1039pub type Porr1 = crate::RegValueT<Porr1_SPEC>;
1040
1041impl Porr1 {
1042 #[doc = "P100 Output Reset"]
1043 #[inline(always)]
1044 pub fn porr00(
1045 self,
1046 ) -> crate::common::RegisterField<
1047 0,
1048 0x1,
1049 1,
1050 0,
1051 porr1::Porr00,
1052 porr1::Porr00,
1053 Porr1_SPEC,
1054 crate::common::W,
1055 > {
1056 crate::common::RegisterField::<
1057 0,
1058 0x1,
1059 1,
1060 0,
1061 porr1::Porr00,
1062 porr1::Porr00,
1063 Porr1_SPEC,
1064 crate::common::W,
1065 >::from_register(self, 0)
1066 }
1067
1068 #[doc = "P101 Output Reset"]
1069 #[inline(always)]
1070 pub fn porr01(
1071 self,
1072 ) -> crate::common::RegisterField<
1073 1,
1074 0x1,
1075 1,
1076 0,
1077 porr1::Porr01,
1078 porr1::Porr01,
1079 Porr1_SPEC,
1080 crate::common::W,
1081 > {
1082 crate::common::RegisterField::<
1083 1,
1084 0x1,
1085 1,
1086 0,
1087 porr1::Porr01,
1088 porr1::Porr01,
1089 Porr1_SPEC,
1090 crate::common::W,
1091 >::from_register(self, 0)
1092 }
1093
1094 #[doc = "P102 Output Reset"]
1095 #[inline(always)]
1096 pub fn porr02(
1097 self,
1098 ) -> crate::common::RegisterField<
1099 2,
1100 0x1,
1101 1,
1102 0,
1103 porr1::Porr02,
1104 porr1::Porr02,
1105 Porr1_SPEC,
1106 crate::common::W,
1107 > {
1108 crate::common::RegisterField::<
1109 2,
1110 0x1,
1111 1,
1112 0,
1113 porr1::Porr02,
1114 porr1::Porr02,
1115 Porr1_SPEC,
1116 crate::common::W,
1117 >::from_register(self, 0)
1118 }
1119
1120 #[doc = "P103 Output Reset"]
1121 #[inline(always)]
1122 pub fn porr03(
1123 self,
1124 ) -> crate::common::RegisterField<
1125 3,
1126 0x1,
1127 1,
1128 0,
1129 porr1::Porr03,
1130 porr1::Porr03,
1131 Porr1_SPEC,
1132 crate::common::W,
1133 > {
1134 crate::common::RegisterField::<
1135 3,
1136 0x1,
1137 1,
1138 0,
1139 porr1::Porr03,
1140 porr1::Porr03,
1141 Porr1_SPEC,
1142 crate::common::W,
1143 >::from_register(self, 0)
1144 }
1145
1146 #[doc = "P108 Output Reset"]
1147 #[inline(always)]
1148 pub fn porr08(
1149 self,
1150 ) -> crate::common::RegisterField<
1151 8,
1152 0x1,
1153 1,
1154 0,
1155 porr1::Porr08,
1156 porr1::Porr08,
1157 Porr1_SPEC,
1158 crate::common::W,
1159 > {
1160 crate::common::RegisterField::<
1161 8,
1162 0x1,
1163 1,
1164 0,
1165 porr1::Porr08,
1166 porr1::Porr08,
1167 Porr1_SPEC,
1168 crate::common::W,
1169 >::from_register(self, 0)
1170 }
1171
1172 #[doc = "P109 Output Reset"]
1173 #[inline(always)]
1174 pub fn porr09(
1175 self,
1176 ) -> crate::common::RegisterField<
1177 9,
1178 0x1,
1179 1,
1180 0,
1181 porr1::Porr09,
1182 porr1::Porr09,
1183 Porr1_SPEC,
1184 crate::common::W,
1185 > {
1186 crate::common::RegisterField::<
1187 9,
1188 0x1,
1189 1,
1190 0,
1191 porr1::Porr09,
1192 porr1::Porr09,
1193 Porr1_SPEC,
1194 crate::common::W,
1195 >::from_register(self, 0)
1196 }
1197
1198 #[doc = "P110 Output Reset"]
1199 #[inline(always)]
1200 pub fn porr10(
1201 self,
1202 ) -> crate::common::RegisterField<
1203 10,
1204 0x1,
1205 1,
1206 0,
1207 porr1::Porr10,
1208 porr1::Porr10,
1209 Porr1_SPEC,
1210 crate::common::W,
1211 > {
1212 crate::common::RegisterField::<
1213 10,
1214 0x1,
1215 1,
1216 0,
1217 porr1::Porr10,
1218 porr1::Porr10,
1219 Porr1_SPEC,
1220 crate::common::W,
1221 >::from_register(self, 0)
1222 }
1223
1224 #[doc = "P112 Output Reset"]
1225 #[inline(always)]
1226 pub fn porr12(
1227 self,
1228 ) -> crate::common::RegisterField<
1229 12,
1230 0x1,
1231 1,
1232 0,
1233 porr1::Porr12,
1234 porr1::Porr12,
1235 Porr1_SPEC,
1236 crate::common::W,
1237 > {
1238 crate::common::RegisterField::<
1239 12,
1240 0x1,
1241 1,
1242 0,
1243 porr1::Porr12,
1244 porr1::Porr12,
1245 Porr1_SPEC,
1246 crate::common::W,
1247 >::from_register(self, 0)
1248 }
1249}
1250impl ::core::default::Default for Porr1 {
1251 #[inline(always)]
1252 fn default() -> Porr1 {
1253 <crate::RegValueT<Porr1_SPEC> as RegisterValue<_>>::new(0)
1254 }
1255}
1256pub mod porr1 {
1257
1258 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1259 pub struct Porr00_SPEC;
1260 pub type Porr00 = crate::EnumBitfieldStruct<u8, Porr00_SPEC>;
1261 impl Porr00 {
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 Porr01_SPEC;
1270 pub type Porr01 = crate::EnumBitfieldStruct<u8, Porr01_SPEC>;
1271 impl Porr01 {
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 Porr02_SPEC;
1280 pub type Porr02 = crate::EnumBitfieldStruct<u8, Porr02_SPEC>;
1281 impl Porr02 {
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 Porr03_SPEC;
1290 pub type Porr03 = crate::EnumBitfieldStruct<u8, Porr03_SPEC>;
1291 impl Porr03 {
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 Porr08_SPEC;
1300 pub type Porr08 = crate::EnumBitfieldStruct<u8, Porr08_SPEC>;
1301 impl Porr08 {
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 Porr09_SPEC;
1310 pub type Porr09 = crate::EnumBitfieldStruct<u8, Porr09_SPEC>;
1311 impl Porr09 {
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 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1319 pub struct Porr10_SPEC;
1320 pub type Porr10 = crate::EnumBitfieldStruct<u8, Porr10_SPEC>;
1321 impl Porr10 {
1322 #[doc = "No effect on output"]
1323 pub const _0: Self = Self::new(0);
1324
1325 #[doc = "Low output"]
1326 pub const _1: Self = Self::new(1);
1327 }
1328 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1329 pub struct Porr12_SPEC;
1330 pub type Porr12 = crate::EnumBitfieldStruct<u8, Porr12_SPEC>;
1331 impl Porr12 {
1332 #[doc = "No effect on output"]
1333 pub const _0: Self = Self::new(0);
1334
1335 #[doc = "Low output"]
1336 pub const _1: Self = Self::new(1);
1337 }
1338}
1339#[doc(hidden)]
1340#[derive(Copy, Clone, Eq, PartialEq)]
1341pub struct Posr1_SPEC;
1342impl crate::sealed::RegSpec for Posr1_SPEC {
1343 type DataType = u16;
1344}
1345
1346#[doc = "Port 1 Output Set Register"]
1347pub type Posr1 = crate::RegValueT<Posr1_SPEC>;
1348
1349impl Posr1 {
1350 #[doc = "P100 Output Set"]
1351 #[inline(always)]
1352 pub fn posr00(
1353 self,
1354 ) -> crate::common::RegisterField<
1355 0,
1356 0x1,
1357 1,
1358 0,
1359 posr1::Posr00,
1360 posr1::Posr00,
1361 Posr1_SPEC,
1362 crate::common::W,
1363 > {
1364 crate::common::RegisterField::<
1365 0,
1366 0x1,
1367 1,
1368 0,
1369 posr1::Posr00,
1370 posr1::Posr00,
1371 Posr1_SPEC,
1372 crate::common::W,
1373 >::from_register(self, 0)
1374 }
1375
1376 #[doc = "P101 Output Set"]
1377 #[inline(always)]
1378 pub fn posr01(
1379 self,
1380 ) -> crate::common::RegisterField<
1381 1,
1382 0x1,
1383 1,
1384 0,
1385 posr1::Posr01,
1386 posr1::Posr01,
1387 Posr1_SPEC,
1388 crate::common::W,
1389 > {
1390 crate::common::RegisterField::<
1391 1,
1392 0x1,
1393 1,
1394 0,
1395 posr1::Posr01,
1396 posr1::Posr01,
1397 Posr1_SPEC,
1398 crate::common::W,
1399 >::from_register(self, 0)
1400 }
1401
1402 #[doc = "P102 Output Set"]
1403 #[inline(always)]
1404 pub fn posr02(
1405 self,
1406 ) -> crate::common::RegisterField<
1407 2,
1408 0x1,
1409 1,
1410 0,
1411 posr1::Posr02,
1412 posr1::Posr02,
1413 Posr1_SPEC,
1414 crate::common::W,
1415 > {
1416 crate::common::RegisterField::<
1417 2,
1418 0x1,
1419 1,
1420 0,
1421 posr1::Posr02,
1422 posr1::Posr02,
1423 Posr1_SPEC,
1424 crate::common::W,
1425 >::from_register(self, 0)
1426 }
1427
1428 #[doc = "P103 Output Set"]
1429 #[inline(always)]
1430 pub fn posr03(
1431 self,
1432 ) -> crate::common::RegisterField<
1433 3,
1434 0x1,
1435 1,
1436 0,
1437 posr1::Posr03,
1438 posr1::Posr03,
1439 Posr1_SPEC,
1440 crate::common::W,
1441 > {
1442 crate::common::RegisterField::<
1443 3,
1444 0x1,
1445 1,
1446 0,
1447 posr1::Posr03,
1448 posr1::Posr03,
1449 Posr1_SPEC,
1450 crate::common::W,
1451 >::from_register(self, 0)
1452 }
1453
1454 #[doc = "P108 Output Set"]
1455 #[inline(always)]
1456 pub fn posr08(
1457 self,
1458 ) -> crate::common::RegisterField<
1459 8,
1460 0x1,
1461 1,
1462 0,
1463 posr1::Posr08,
1464 posr1::Posr08,
1465 Posr1_SPEC,
1466 crate::common::W,
1467 > {
1468 crate::common::RegisterField::<
1469 8,
1470 0x1,
1471 1,
1472 0,
1473 posr1::Posr08,
1474 posr1::Posr08,
1475 Posr1_SPEC,
1476 crate::common::W,
1477 >::from_register(self, 0)
1478 }
1479
1480 #[doc = "P109 Output Set"]
1481 #[inline(always)]
1482 pub fn posr09(
1483 self,
1484 ) -> crate::common::RegisterField<
1485 9,
1486 0x1,
1487 1,
1488 0,
1489 posr1::Posr09,
1490 posr1::Posr09,
1491 Posr1_SPEC,
1492 crate::common::W,
1493 > {
1494 crate::common::RegisterField::<
1495 9,
1496 0x1,
1497 1,
1498 0,
1499 posr1::Posr09,
1500 posr1::Posr09,
1501 Posr1_SPEC,
1502 crate::common::W,
1503 >::from_register(self, 0)
1504 }
1505
1506 #[doc = "P110 Output Set"]
1507 #[inline(always)]
1508 pub fn posr10(
1509 self,
1510 ) -> crate::common::RegisterField<
1511 10,
1512 0x1,
1513 1,
1514 0,
1515 posr1::Posr10,
1516 posr1::Posr10,
1517 Posr1_SPEC,
1518 crate::common::W,
1519 > {
1520 crate::common::RegisterField::<
1521 10,
1522 0x1,
1523 1,
1524 0,
1525 posr1::Posr10,
1526 posr1::Posr10,
1527 Posr1_SPEC,
1528 crate::common::W,
1529 >::from_register(self, 0)
1530 }
1531
1532 #[doc = "P112 Output Set"]
1533 #[inline(always)]
1534 pub fn posr12(
1535 self,
1536 ) -> crate::common::RegisterField<
1537 12,
1538 0x1,
1539 1,
1540 0,
1541 posr1::Posr12,
1542 posr1::Posr12,
1543 Posr1_SPEC,
1544 crate::common::W,
1545 > {
1546 crate::common::RegisterField::<
1547 12,
1548 0x1,
1549 1,
1550 0,
1551 posr1::Posr12,
1552 posr1::Posr12,
1553 Posr1_SPEC,
1554 crate::common::W,
1555 >::from_register(self, 0)
1556 }
1557}
1558impl ::core::default::Default for Posr1 {
1559 #[inline(always)]
1560 fn default() -> Posr1 {
1561 <crate::RegValueT<Posr1_SPEC> as RegisterValue<_>>::new(0)
1562 }
1563}
1564pub mod posr1 {
1565
1566 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1567 pub struct Posr00_SPEC;
1568 pub type Posr00 = crate::EnumBitfieldStruct<u8, Posr00_SPEC>;
1569 impl Posr00 {
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 Posr01_SPEC;
1578 pub type Posr01 = crate::EnumBitfieldStruct<u8, Posr01_SPEC>;
1579 impl Posr01 {
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 Posr02_SPEC;
1588 pub type Posr02 = crate::EnumBitfieldStruct<u8, Posr02_SPEC>;
1589 impl Posr02 {
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 Posr03_SPEC;
1598 pub type Posr03 = crate::EnumBitfieldStruct<u8, Posr03_SPEC>;
1599 impl Posr03 {
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 Posr08_SPEC;
1608 pub type Posr08 = crate::EnumBitfieldStruct<u8, Posr08_SPEC>;
1609 impl Posr08 {
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 Posr09_SPEC;
1618 pub type Posr09 = crate::EnumBitfieldStruct<u8, Posr09_SPEC>;
1619 impl Posr09 {
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 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1627 pub struct Posr10_SPEC;
1628 pub type Posr10 = crate::EnumBitfieldStruct<u8, Posr10_SPEC>;
1629 impl Posr10 {
1630 #[doc = "No effect on output"]
1631 pub const _0: Self = Self::new(0);
1632
1633 #[doc = "High output"]
1634 pub const _1: Self = Self::new(1);
1635 }
1636 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1637 pub struct Posr12_SPEC;
1638 pub type Posr12 = crate::EnumBitfieldStruct<u8, Posr12_SPEC>;
1639 impl Posr12 {
1640 #[doc = "No effect on output"]
1641 pub const _0: Self = Self::new(0);
1642
1643 #[doc = "High output"]
1644 pub const _1: Self = Self::new(1);
1645 }
1646}
1647#[doc(hidden)]
1648#[derive(Copy, Clone, Eq, PartialEq)]
1649pub struct Eorr1_SPEC;
1650impl crate::sealed::RegSpec for Eorr1_SPEC {
1651 type DataType = u16;
1652}
1653
1654#[doc = "Port 1 Event Output Reset Register"]
1655pub type Eorr1 = crate::RegValueT<Eorr1_SPEC>;
1656
1657impl Eorr1 {
1658 #[doc = "P100 Event Output Reset"]
1659 #[inline(always)]
1660 pub fn eorr00(
1661 self,
1662 ) -> crate::common::RegisterField<
1663 0,
1664 0x1,
1665 1,
1666 0,
1667 eorr1::Eorr00,
1668 eorr1::Eorr00,
1669 Eorr1_SPEC,
1670 crate::common::RW,
1671 > {
1672 crate::common::RegisterField::<
1673 0,
1674 0x1,
1675 1,
1676 0,
1677 eorr1::Eorr00,
1678 eorr1::Eorr00,
1679 Eorr1_SPEC,
1680 crate::common::RW,
1681 >::from_register(self, 0)
1682 }
1683
1684 #[doc = "P101 Event Output Reset"]
1685 #[inline(always)]
1686 pub fn eorr01(
1687 self,
1688 ) -> crate::common::RegisterField<
1689 1,
1690 0x1,
1691 1,
1692 0,
1693 eorr1::Eorr01,
1694 eorr1::Eorr01,
1695 Eorr1_SPEC,
1696 crate::common::RW,
1697 > {
1698 crate::common::RegisterField::<
1699 1,
1700 0x1,
1701 1,
1702 0,
1703 eorr1::Eorr01,
1704 eorr1::Eorr01,
1705 Eorr1_SPEC,
1706 crate::common::RW,
1707 >::from_register(self, 0)
1708 }
1709
1710 #[doc = "P102 Event Output Reset"]
1711 #[inline(always)]
1712 pub fn eorr02(
1713 self,
1714 ) -> crate::common::RegisterField<
1715 2,
1716 0x1,
1717 1,
1718 0,
1719 eorr1::Eorr02,
1720 eorr1::Eorr02,
1721 Eorr1_SPEC,
1722 crate::common::RW,
1723 > {
1724 crate::common::RegisterField::<
1725 2,
1726 0x1,
1727 1,
1728 0,
1729 eorr1::Eorr02,
1730 eorr1::Eorr02,
1731 Eorr1_SPEC,
1732 crate::common::RW,
1733 >::from_register(self, 0)
1734 }
1735
1736 #[doc = "P103 Event Output Reset"]
1737 #[inline(always)]
1738 pub fn eorr03(
1739 self,
1740 ) -> crate::common::RegisterField<
1741 3,
1742 0x1,
1743 1,
1744 0,
1745 eorr1::Eorr03,
1746 eorr1::Eorr03,
1747 Eorr1_SPEC,
1748 crate::common::RW,
1749 > {
1750 crate::common::RegisterField::<
1751 3,
1752 0x1,
1753 1,
1754 0,
1755 eorr1::Eorr03,
1756 eorr1::Eorr03,
1757 Eorr1_SPEC,
1758 crate::common::RW,
1759 >::from_register(self, 0)
1760 }
1761
1762 #[doc = "P108 Event Output Reset"]
1763 #[inline(always)]
1764 pub fn eorr08(
1765 self,
1766 ) -> crate::common::RegisterField<
1767 8,
1768 0x1,
1769 1,
1770 0,
1771 eorr1::Eorr08,
1772 eorr1::Eorr08,
1773 Eorr1_SPEC,
1774 crate::common::RW,
1775 > {
1776 crate::common::RegisterField::<
1777 8,
1778 0x1,
1779 1,
1780 0,
1781 eorr1::Eorr08,
1782 eorr1::Eorr08,
1783 Eorr1_SPEC,
1784 crate::common::RW,
1785 >::from_register(self, 0)
1786 }
1787
1788 #[doc = "P109 Event Output Reset"]
1789 #[inline(always)]
1790 pub fn eorr09(
1791 self,
1792 ) -> crate::common::RegisterField<
1793 9,
1794 0x1,
1795 1,
1796 0,
1797 eorr1::Eorr09,
1798 eorr1::Eorr09,
1799 Eorr1_SPEC,
1800 crate::common::RW,
1801 > {
1802 crate::common::RegisterField::<
1803 9,
1804 0x1,
1805 1,
1806 0,
1807 eorr1::Eorr09,
1808 eorr1::Eorr09,
1809 Eorr1_SPEC,
1810 crate::common::RW,
1811 >::from_register(self, 0)
1812 }
1813
1814 #[doc = "P110 Event Output Reset"]
1815 #[inline(always)]
1816 pub fn eorr10(
1817 self,
1818 ) -> crate::common::RegisterField<
1819 10,
1820 0x1,
1821 1,
1822 0,
1823 eorr1::Eorr10,
1824 eorr1::Eorr10,
1825 Eorr1_SPEC,
1826 crate::common::RW,
1827 > {
1828 crate::common::RegisterField::<
1829 10,
1830 0x1,
1831 1,
1832 0,
1833 eorr1::Eorr10,
1834 eorr1::Eorr10,
1835 Eorr1_SPEC,
1836 crate::common::RW,
1837 >::from_register(self, 0)
1838 }
1839
1840 #[doc = "P112 Event Output Reset"]
1841 #[inline(always)]
1842 pub fn eorr12(
1843 self,
1844 ) -> crate::common::RegisterField<
1845 12,
1846 0x1,
1847 1,
1848 0,
1849 eorr1::Eorr12,
1850 eorr1::Eorr12,
1851 Eorr1_SPEC,
1852 crate::common::RW,
1853 > {
1854 crate::common::RegisterField::<
1855 12,
1856 0x1,
1857 1,
1858 0,
1859 eorr1::Eorr12,
1860 eorr1::Eorr12,
1861 Eorr1_SPEC,
1862 crate::common::RW,
1863 >::from_register(self, 0)
1864 }
1865}
1866impl ::core::default::Default for Eorr1 {
1867 #[inline(always)]
1868 fn default() -> Eorr1 {
1869 <crate::RegValueT<Eorr1_SPEC> as RegisterValue<_>>::new(0)
1870 }
1871}
1872pub mod eorr1 {
1873
1874 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1875 pub struct Eorr00_SPEC;
1876 pub type Eorr00 = crate::EnumBitfieldStruct<u8, Eorr00_SPEC>;
1877 impl Eorr00 {
1878 #[doc = "No effect on output"]
1879 pub const _0: Self = Self::new(0);
1880
1881 #[doc = "Low output"]
1882 pub const _1: Self = Self::new(1);
1883 }
1884 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1885 pub struct Eorr01_SPEC;
1886 pub type Eorr01 = crate::EnumBitfieldStruct<u8, Eorr01_SPEC>;
1887 impl Eorr01 {
1888 #[doc = "No effect on output"]
1889 pub const _0: Self = Self::new(0);
1890
1891 #[doc = "Low output"]
1892 pub const _1: Self = Self::new(1);
1893 }
1894 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1895 pub struct Eorr02_SPEC;
1896 pub type Eorr02 = crate::EnumBitfieldStruct<u8, Eorr02_SPEC>;
1897 impl Eorr02 {
1898 #[doc = "No effect on output"]
1899 pub const _0: Self = Self::new(0);
1900
1901 #[doc = "Low output"]
1902 pub const _1: Self = Self::new(1);
1903 }
1904 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1905 pub struct Eorr03_SPEC;
1906 pub type Eorr03 = crate::EnumBitfieldStruct<u8, Eorr03_SPEC>;
1907 impl Eorr03 {
1908 #[doc = "No effect on output"]
1909 pub const _0: Self = Self::new(0);
1910
1911 #[doc = "Low output"]
1912 pub const _1: Self = Self::new(1);
1913 }
1914 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1915 pub struct Eorr08_SPEC;
1916 pub type Eorr08 = crate::EnumBitfieldStruct<u8, Eorr08_SPEC>;
1917 impl Eorr08 {
1918 #[doc = "No effect on output"]
1919 pub const _0: Self = Self::new(0);
1920
1921 #[doc = "Low output"]
1922 pub const _1: Self = Self::new(1);
1923 }
1924 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1925 pub struct Eorr09_SPEC;
1926 pub type Eorr09 = crate::EnumBitfieldStruct<u8, Eorr09_SPEC>;
1927 impl Eorr09 {
1928 #[doc = "No effect on output"]
1929 pub const _0: Self = Self::new(0);
1930
1931 #[doc = "Low output"]
1932 pub const _1: Self = Self::new(1);
1933 }
1934 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1935 pub struct Eorr10_SPEC;
1936 pub type Eorr10 = crate::EnumBitfieldStruct<u8, Eorr10_SPEC>;
1937 impl Eorr10 {
1938 #[doc = "No effect on output"]
1939 pub const _0: Self = Self::new(0);
1940
1941 #[doc = "Low output"]
1942 pub const _1: Self = Self::new(1);
1943 }
1944 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1945 pub struct Eorr12_SPEC;
1946 pub type Eorr12 = crate::EnumBitfieldStruct<u8, Eorr12_SPEC>;
1947 impl Eorr12 {
1948 #[doc = "No effect on output"]
1949 pub const _0: Self = Self::new(0);
1950
1951 #[doc = "Low output"]
1952 pub const _1: Self = Self::new(1);
1953 }
1954}
1955#[doc(hidden)]
1956#[derive(Copy, Clone, Eq, PartialEq)]
1957pub struct Eosr1_SPEC;
1958impl crate::sealed::RegSpec for Eosr1_SPEC {
1959 type DataType = u16;
1960}
1961
1962#[doc = "Port 1 Event Output Set Register"]
1963pub type Eosr1 = crate::RegValueT<Eosr1_SPEC>;
1964
1965impl Eosr1 {
1966 #[doc = "P100 Event Output Set"]
1967 #[inline(always)]
1968 pub fn eosr00(
1969 self,
1970 ) -> crate::common::RegisterField<
1971 0,
1972 0x1,
1973 1,
1974 0,
1975 eosr1::Eosr00,
1976 eosr1::Eosr00,
1977 Eosr1_SPEC,
1978 crate::common::RW,
1979 > {
1980 crate::common::RegisterField::<
1981 0,
1982 0x1,
1983 1,
1984 0,
1985 eosr1::Eosr00,
1986 eosr1::Eosr00,
1987 Eosr1_SPEC,
1988 crate::common::RW,
1989 >::from_register(self, 0)
1990 }
1991
1992 #[doc = "P101 Event Output Set"]
1993 #[inline(always)]
1994 pub fn eosr01(
1995 self,
1996 ) -> crate::common::RegisterField<
1997 1,
1998 0x1,
1999 1,
2000 0,
2001 eosr1::Eosr01,
2002 eosr1::Eosr01,
2003 Eosr1_SPEC,
2004 crate::common::RW,
2005 > {
2006 crate::common::RegisterField::<
2007 1,
2008 0x1,
2009 1,
2010 0,
2011 eosr1::Eosr01,
2012 eosr1::Eosr01,
2013 Eosr1_SPEC,
2014 crate::common::RW,
2015 >::from_register(self, 0)
2016 }
2017
2018 #[doc = "P102 Event Output Set"]
2019 #[inline(always)]
2020 pub fn eosr02(
2021 self,
2022 ) -> crate::common::RegisterField<
2023 2,
2024 0x1,
2025 1,
2026 0,
2027 eosr1::Eosr02,
2028 eosr1::Eosr02,
2029 Eosr1_SPEC,
2030 crate::common::RW,
2031 > {
2032 crate::common::RegisterField::<
2033 2,
2034 0x1,
2035 1,
2036 0,
2037 eosr1::Eosr02,
2038 eosr1::Eosr02,
2039 Eosr1_SPEC,
2040 crate::common::RW,
2041 >::from_register(self, 0)
2042 }
2043
2044 #[doc = "P103 Event Output Set"]
2045 #[inline(always)]
2046 pub fn eosr03(
2047 self,
2048 ) -> crate::common::RegisterField<
2049 3,
2050 0x1,
2051 1,
2052 0,
2053 eosr1::Eosr03,
2054 eosr1::Eosr03,
2055 Eosr1_SPEC,
2056 crate::common::RW,
2057 > {
2058 crate::common::RegisterField::<
2059 3,
2060 0x1,
2061 1,
2062 0,
2063 eosr1::Eosr03,
2064 eosr1::Eosr03,
2065 Eosr1_SPEC,
2066 crate::common::RW,
2067 >::from_register(self, 0)
2068 }
2069
2070 #[doc = "P108 Event Output Set"]
2071 #[inline(always)]
2072 pub fn eosr08(
2073 self,
2074 ) -> crate::common::RegisterField<
2075 8,
2076 0x1,
2077 1,
2078 0,
2079 eosr1::Eosr08,
2080 eosr1::Eosr08,
2081 Eosr1_SPEC,
2082 crate::common::RW,
2083 > {
2084 crate::common::RegisterField::<
2085 8,
2086 0x1,
2087 1,
2088 0,
2089 eosr1::Eosr08,
2090 eosr1::Eosr08,
2091 Eosr1_SPEC,
2092 crate::common::RW,
2093 >::from_register(self, 0)
2094 }
2095
2096 #[doc = "P109 Event Output Set"]
2097 #[inline(always)]
2098 pub fn eosr09(
2099 self,
2100 ) -> crate::common::RegisterField<
2101 9,
2102 0x1,
2103 1,
2104 0,
2105 eosr1::Eosr09,
2106 eosr1::Eosr09,
2107 Eosr1_SPEC,
2108 crate::common::RW,
2109 > {
2110 crate::common::RegisterField::<
2111 9,
2112 0x1,
2113 1,
2114 0,
2115 eosr1::Eosr09,
2116 eosr1::Eosr09,
2117 Eosr1_SPEC,
2118 crate::common::RW,
2119 >::from_register(self, 0)
2120 }
2121
2122 #[doc = "P110 Event Output Set"]
2123 #[inline(always)]
2124 pub fn eosr10(
2125 self,
2126 ) -> crate::common::RegisterField<
2127 10,
2128 0x1,
2129 1,
2130 0,
2131 eosr1::Eosr10,
2132 eosr1::Eosr10,
2133 Eosr1_SPEC,
2134 crate::common::RW,
2135 > {
2136 crate::common::RegisterField::<
2137 10,
2138 0x1,
2139 1,
2140 0,
2141 eosr1::Eosr10,
2142 eosr1::Eosr10,
2143 Eosr1_SPEC,
2144 crate::common::RW,
2145 >::from_register(self, 0)
2146 }
2147
2148 #[doc = "P112 Event Output Set"]
2149 #[inline(always)]
2150 pub fn eosr12(
2151 self,
2152 ) -> crate::common::RegisterField<
2153 12,
2154 0x1,
2155 1,
2156 0,
2157 eosr1::Eosr12,
2158 eosr1::Eosr12,
2159 Eosr1_SPEC,
2160 crate::common::RW,
2161 > {
2162 crate::common::RegisterField::<
2163 12,
2164 0x1,
2165 1,
2166 0,
2167 eosr1::Eosr12,
2168 eosr1::Eosr12,
2169 Eosr1_SPEC,
2170 crate::common::RW,
2171 >::from_register(self, 0)
2172 }
2173}
2174impl ::core::default::Default for Eosr1 {
2175 #[inline(always)]
2176 fn default() -> Eosr1 {
2177 <crate::RegValueT<Eosr1_SPEC> as RegisterValue<_>>::new(0)
2178 }
2179}
2180pub mod eosr1 {
2181
2182 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2183 pub struct Eosr00_SPEC;
2184 pub type Eosr00 = crate::EnumBitfieldStruct<u8, Eosr00_SPEC>;
2185 impl Eosr00 {
2186 #[doc = "No effect on output"]
2187 pub const _0: Self = Self::new(0);
2188
2189 #[doc = "High output"]
2190 pub const _1: Self = Self::new(1);
2191 }
2192 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2193 pub struct Eosr01_SPEC;
2194 pub type Eosr01 = crate::EnumBitfieldStruct<u8, Eosr01_SPEC>;
2195 impl Eosr01 {
2196 #[doc = "No effect on output"]
2197 pub const _0: Self = Self::new(0);
2198
2199 #[doc = "High output"]
2200 pub const _1: Self = Self::new(1);
2201 }
2202 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2203 pub struct Eosr02_SPEC;
2204 pub type Eosr02 = crate::EnumBitfieldStruct<u8, Eosr02_SPEC>;
2205 impl Eosr02 {
2206 #[doc = "No effect on output"]
2207 pub const _0: Self = Self::new(0);
2208
2209 #[doc = "High output"]
2210 pub const _1: Self = Self::new(1);
2211 }
2212 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2213 pub struct Eosr03_SPEC;
2214 pub type Eosr03 = crate::EnumBitfieldStruct<u8, Eosr03_SPEC>;
2215 impl Eosr03 {
2216 #[doc = "No effect on output"]
2217 pub const _0: Self = Self::new(0);
2218
2219 #[doc = "High output"]
2220 pub const _1: Self = Self::new(1);
2221 }
2222 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2223 pub struct Eosr08_SPEC;
2224 pub type Eosr08 = crate::EnumBitfieldStruct<u8, Eosr08_SPEC>;
2225 impl Eosr08 {
2226 #[doc = "No effect on output"]
2227 pub const _0: Self = Self::new(0);
2228
2229 #[doc = "High output"]
2230 pub const _1: Self = Self::new(1);
2231 }
2232 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2233 pub struct Eosr09_SPEC;
2234 pub type Eosr09 = crate::EnumBitfieldStruct<u8, Eosr09_SPEC>;
2235 impl Eosr09 {
2236 #[doc = "No effect on output"]
2237 pub const _0: Self = Self::new(0);
2238
2239 #[doc = "High output"]
2240 pub const _1: Self = Self::new(1);
2241 }
2242 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2243 pub struct Eosr10_SPEC;
2244 pub type Eosr10 = crate::EnumBitfieldStruct<u8, Eosr10_SPEC>;
2245 impl Eosr10 {
2246 #[doc = "No effect on output"]
2247 pub const _0: Self = Self::new(0);
2248
2249 #[doc = "High output"]
2250 pub const _1: Self = Self::new(1);
2251 }
2252 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2253 pub struct Eosr12_SPEC;
2254 pub type Eosr12 = crate::EnumBitfieldStruct<u8, Eosr12_SPEC>;
2255 impl Eosr12 {
2256 #[doc = "No effect on output"]
2257 pub const _0: Self = Self::new(0);
2258
2259 #[doc = "High output"]
2260 pub const _1: Self = Self::new(1);
2261 }
2262}