Skip to main content

ra0e1_pac/
port2.rs

1/*
2DISCLAIMER
3This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
4No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
5applicable laws, including copyright laws.
6THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
7OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
9LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
10INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
11ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
12Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
13of this software. By using this software, you agree to the additional terms and conditions found by accessing the
14following link:
15http://www.renesas.com/disclaimer
16
17*/
18// Generated from SVD 1.10.00, with svd2pac 0.6.1 on Sun, 15 Mar 2026 07:00:13 +0000
19
20#![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 2 Control"]
28unsafe impl ::core::marker::Send for super::Port2 {}
29unsafe impl ::core::marker::Sync for super::Port2 {}
30impl super::Port2 {
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 2 Output Data Register"]
38    #[inline(always)]
39    pub const fn podr2(&self) -> &'static crate::common::Reg<self::Podr2_SPEC, crate::common::RW> {
40        unsafe {
41            crate::common::Reg::<self::Podr2_SPEC, crate::common::RW>::from_ptr(
42                self._svd2pac_as_ptr().add(0usize),
43            )
44        }
45    }
46
47    #[doc = "Port 2 Direction Register"]
48    #[inline(always)]
49    pub const fn pdr2(&self) -> &'static crate::common::Reg<self::Pdr2_SPEC, crate::common::RW> {
50        unsafe {
51            crate::common::Reg::<self::Pdr2_SPEC, crate::common::RW>::from_ptr(
52                self._svd2pac_as_ptr().add(2usize),
53            )
54        }
55    }
56
57    #[doc = "Port 2 State Register"]
58    #[inline(always)]
59    pub const fn pidr2(&self) -> &'static crate::common::Reg<self::Pidr2_SPEC, crate::common::R> {
60        unsafe {
61            crate::common::Reg::<self::Pidr2_SPEC, crate::common::R>::from_ptr(
62                self._svd2pac_as_ptr().add(6usize),
63            )
64        }
65    }
66
67    #[doc = "Port 2 Output Reset Register"]
68    #[inline(always)]
69    pub const fn porr2(&self) -> &'static crate::common::Reg<self::Porr2_SPEC, crate::common::W> {
70        unsafe {
71            crate::common::Reg::<self::Porr2_SPEC, crate::common::W>::from_ptr(
72                self._svd2pac_as_ptr().add(8usize),
73            )
74        }
75    }
76
77    #[doc = "Port 2 Output Set Register"]
78    #[inline(always)]
79    pub const fn posr2(&self) -> &'static crate::common::Reg<self::Posr2_SPEC, crate::common::W> {
80        unsafe {
81            crate::common::Reg::<self::Posr2_SPEC, crate::common::W>::from_ptr(
82                self._svd2pac_as_ptr().add(10usize),
83            )
84        }
85    }
86
87    #[doc = "Port 2 Event Output Reset Register"]
88    #[inline(always)]
89    pub const fn eorr2(&self) -> &'static crate::common::Reg<self::Eorr2_SPEC, crate::common::RW> {
90        unsafe {
91            crate::common::Reg::<self::Eorr2_SPEC, crate::common::RW>::from_ptr(
92                self._svd2pac_as_ptr().add(12usize),
93            )
94        }
95    }
96
97    #[doc = "Port 2 Event Output Set Register"]
98    #[inline(always)]
99    pub const fn eosr2(&self) -> &'static crate::common::Reg<self::Eosr2_SPEC, crate::common::RW> {
100        unsafe {
101            crate::common::Reg::<self::Eosr2_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 Podr2_SPEC;
110impl crate::sealed::RegSpec for Podr2_SPEC {
111    type DataType = u16;
112}
113
114#[doc = "Port 2 Output Data Register"]
115pub type Podr2 = crate::RegValueT<Podr2_SPEC>;
116
117impl Podr2 {
118    #[doc = "P201 Output Data"]
119    #[inline(always)]
120    pub fn podr01(
121        self,
122    ) -> crate::common::RegisterField<
123        1,
124        0x1,
125        1,
126        0,
127        podr2::Podr01,
128        podr2::Podr01,
129        Podr2_SPEC,
130        crate::common::RW,
131    > {
132        crate::common::RegisterField::<
133            1,
134            0x1,
135            1,
136            0,
137            podr2::Podr01,
138            podr2::Podr01,
139            Podr2_SPEC,
140            crate::common::RW,
141        >::from_register(self, 0)
142    }
143
144    #[doc = "P206 Output Data"]
145    #[inline(always)]
146    pub fn podr06(
147        self,
148    ) -> crate::common::RegisterField<
149        6,
150        0x1,
151        1,
152        0,
153        podr2::Podr06,
154        podr2::Podr06,
155        Podr2_SPEC,
156        crate::common::RW,
157    > {
158        crate::common::RegisterField::<
159            6,
160            0x1,
161            1,
162            0,
163            podr2::Podr06,
164            podr2::Podr06,
165            Podr2_SPEC,
166            crate::common::RW,
167        >::from_register(self, 0)
168    }
169
170    #[doc = "P207 Output Data"]
171    #[inline(always)]
172    pub fn podr07(
173        self,
174    ) -> crate::common::RegisterField<
175        7,
176        0x1,
177        1,
178        0,
179        podr2::Podr07,
180        podr2::Podr07,
181        Podr2_SPEC,
182        crate::common::RW,
183    > {
184        crate::common::RegisterField::<
185            7,
186            0x1,
187            1,
188            0,
189            podr2::Podr07,
190            podr2::Podr07,
191            Podr2_SPEC,
192            crate::common::RW,
193        >::from_register(self, 0)
194    }
195
196    #[doc = "P208 Output Data"]
197    #[inline(always)]
198    pub fn podr08(
199        self,
200    ) -> crate::common::RegisterField<
201        8,
202        0x1,
203        1,
204        0,
205        podr2::Podr08,
206        podr2::Podr08,
207        Podr2_SPEC,
208        crate::common::RW,
209    > {
210        crate::common::RegisterField::<
211            8,
212            0x1,
213            1,
214            0,
215            podr2::Podr08,
216            podr2::Podr08,
217            Podr2_SPEC,
218            crate::common::RW,
219        >::from_register(self, 0)
220    }
221
222    #[doc = "P212 Output Data"]
223    #[inline(always)]
224    pub fn podr12(
225        self,
226    ) -> crate::common::RegisterField<
227        12,
228        0x1,
229        1,
230        0,
231        podr2::Podr12,
232        podr2::Podr12,
233        Podr2_SPEC,
234        crate::common::RW,
235    > {
236        crate::common::RegisterField::<
237            12,
238            0x1,
239            1,
240            0,
241            podr2::Podr12,
242            podr2::Podr12,
243            Podr2_SPEC,
244            crate::common::RW,
245        >::from_register(self, 0)
246    }
247
248    #[doc = "P213 Output Data"]
249    #[inline(always)]
250    pub fn podr13(
251        self,
252    ) -> crate::common::RegisterField<
253        13,
254        0x1,
255        1,
256        0,
257        podr2::Podr13,
258        podr2::Podr13,
259        Podr2_SPEC,
260        crate::common::RW,
261    > {
262        crate::common::RegisterField::<
263            13,
264            0x1,
265            1,
266            0,
267            podr2::Podr13,
268            podr2::Podr13,
269            Podr2_SPEC,
270            crate::common::RW,
271        >::from_register(self, 0)
272    }
273}
274impl ::core::default::Default for Podr2 {
275    #[inline(always)]
276    fn default() -> Podr2 {
277        <crate::RegValueT<Podr2_SPEC> as RegisterValue<_>>::new(0)
278    }
279}
280pub mod podr2 {
281
282    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
283    pub struct Podr01_SPEC;
284    pub type Podr01 = crate::EnumBitfieldStruct<u8, Podr01_SPEC>;
285    impl Podr01 {
286        #[doc = "Low output"]
287        pub const _0: Self = Self::new(0);
288
289        #[doc = "High output"]
290        pub const _1: Self = Self::new(1);
291    }
292    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
293    pub struct Podr06_SPEC;
294    pub type Podr06 = crate::EnumBitfieldStruct<u8, Podr06_SPEC>;
295    impl Podr06 {
296        #[doc = "Low output"]
297        pub const _0: Self = Self::new(0);
298
299        #[doc = "High output"]
300        pub const _1: Self = Self::new(1);
301    }
302    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
303    pub struct Podr07_SPEC;
304    pub type Podr07 = crate::EnumBitfieldStruct<u8, Podr07_SPEC>;
305    impl Podr07 {
306        #[doc = "Low output"]
307        pub const _0: Self = Self::new(0);
308
309        #[doc = "High output"]
310        pub const _1: Self = Self::new(1);
311    }
312    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
313    pub struct Podr08_SPEC;
314    pub type Podr08 = crate::EnumBitfieldStruct<u8, Podr08_SPEC>;
315    impl Podr08 {
316        #[doc = "Low output"]
317        pub const _0: Self = Self::new(0);
318
319        #[doc = "High output"]
320        pub const _1: Self = Self::new(1);
321    }
322    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
323    pub struct Podr12_SPEC;
324    pub type Podr12 = crate::EnumBitfieldStruct<u8, Podr12_SPEC>;
325    impl Podr12 {
326        #[doc = "Low output"]
327        pub const _0: Self = Self::new(0);
328
329        #[doc = "High output"]
330        pub const _1: Self = Self::new(1);
331    }
332    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
333    pub struct Podr13_SPEC;
334    pub type Podr13 = crate::EnumBitfieldStruct<u8, Podr13_SPEC>;
335    impl Podr13 {
336        #[doc = "Low output"]
337        pub const _0: Self = Self::new(0);
338
339        #[doc = "High output"]
340        pub const _1: Self = Self::new(1);
341    }
342}
343#[doc(hidden)]
344#[derive(Copy, Clone, Eq, PartialEq)]
345pub struct Pdr2_SPEC;
346impl crate::sealed::RegSpec for Pdr2_SPEC {
347    type DataType = u16;
348}
349
350#[doc = "Port 2 Direction Register"]
351pub type Pdr2 = crate::RegValueT<Pdr2_SPEC>;
352
353impl Pdr2 {
354    #[doc = "P201 Direction"]
355    #[inline(always)]
356    pub fn pdr01(
357        self,
358    ) -> crate::common::RegisterField<
359        1,
360        0x1,
361        1,
362        0,
363        pdr2::Pdr01,
364        pdr2::Pdr01,
365        Pdr2_SPEC,
366        crate::common::RW,
367    > {
368        crate::common::RegisterField::<
369            1,
370            0x1,
371            1,
372            0,
373            pdr2::Pdr01,
374            pdr2::Pdr01,
375            Pdr2_SPEC,
376            crate::common::RW,
377        >::from_register(self, 0)
378    }
379
380    #[doc = "P206 Direction"]
381    #[inline(always)]
382    pub fn pdr06(
383        self,
384    ) -> crate::common::RegisterField<
385        6,
386        0x1,
387        1,
388        0,
389        pdr2::Pdr06,
390        pdr2::Pdr06,
391        Pdr2_SPEC,
392        crate::common::RW,
393    > {
394        crate::common::RegisterField::<
395            6,
396            0x1,
397            1,
398            0,
399            pdr2::Pdr06,
400            pdr2::Pdr06,
401            Pdr2_SPEC,
402            crate::common::RW,
403        >::from_register(self, 0)
404    }
405
406    #[doc = "P207 Direction"]
407    #[inline(always)]
408    pub fn pdr07(
409        self,
410    ) -> crate::common::RegisterField<
411        7,
412        0x1,
413        1,
414        0,
415        pdr2::Pdr07,
416        pdr2::Pdr07,
417        Pdr2_SPEC,
418        crate::common::RW,
419    > {
420        crate::common::RegisterField::<
421            7,
422            0x1,
423            1,
424            0,
425            pdr2::Pdr07,
426            pdr2::Pdr07,
427            Pdr2_SPEC,
428            crate::common::RW,
429        >::from_register(self, 0)
430    }
431
432    #[doc = "P208 Direction"]
433    #[inline(always)]
434    pub fn pdr08(
435        self,
436    ) -> crate::common::RegisterField<
437        8,
438        0x1,
439        1,
440        0,
441        pdr2::Pdr08,
442        pdr2::Pdr08,
443        Pdr2_SPEC,
444        crate::common::RW,
445    > {
446        crate::common::RegisterField::<
447            8,
448            0x1,
449            1,
450            0,
451            pdr2::Pdr08,
452            pdr2::Pdr08,
453            Pdr2_SPEC,
454            crate::common::RW,
455        >::from_register(self, 0)
456    }
457
458    #[doc = "P212 Direction"]
459    #[inline(always)]
460    pub fn pdr12(
461        self,
462    ) -> crate::common::RegisterField<
463        12,
464        0x1,
465        1,
466        0,
467        pdr2::Pdr12,
468        pdr2::Pdr12,
469        Pdr2_SPEC,
470        crate::common::RW,
471    > {
472        crate::common::RegisterField::<
473            12,
474            0x1,
475            1,
476            0,
477            pdr2::Pdr12,
478            pdr2::Pdr12,
479            Pdr2_SPEC,
480            crate::common::RW,
481        >::from_register(self, 0)
482    }
483
484    #[doc = "P213 Direction"]
485    #[inline(always)]
486    pub fn pdr13(
487        self,
488    ) -> crate::common::RegisterField<
489        13,
490        0x1,
491        1,
492        0,
493        pdr2::Pdr13,
494        pdr2::Pdr13,
495        Pdr2_SPEC,
496        crate::common::RW,
497    > {
498        crate::common::RegisterField::<
499            13,
500            0x1,
501            1,
502            0,
503            pdr2::Pdr13,
504            pdr2::Pdr13,
505            Pdr2_SPEC,
506            crate::common::RW,
507        >::from_register(self, 0)
508    }
509}
510impl ::core::default::Default for Pdr2 {
511    #[inline(always)]
512    fn default() -> Pdr2 {
513        <crate::RegValueT<Pdr2_SPEC> as RegisterValue<_>>::new(0)
514    }
515}
516pub mod pdr2 {
517
518    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
519    pub struct Pdr01_SPEC;
520    pub type Pdr01 = crate::EnumBitfieldStruct<u8, Pdr01_SPEC>;
521    impl Pdr01 {
522        #[doc = "Output 0"]
523        pub const _0: Self = Self::new(0);
524
525        #[doc = "Output 1"]
526        pub const _1: Self = Self::new(1);
527    }
528    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
529    pub struct Pdr06_SPEC;
530    pub type Pdr06 = crate::EnumBitfieldStruct<u8, Pdr06_SPEC>;
531    impl Pdr06 {
532        #[doc = "Output 0"]
533        pub const _0: Self = Self::new(0);
534
535        #[doc = "Output 1"]
536        pub const _1: Self = Self::new(1);
537    }
538    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
539    pub struct Pdr07_SPEC;
540    pub type Pdr07 = crate::EnumBitfieldStruct<u8, Pdr07_SPEC>;
541    impl Pdr07 {
542        #[doc = "Output 0"]
543        pub const _0: Self = Self::new(0);
544
545        #[doc = "Output 1"]
546        pub const _1: Self = Self::new(1);
547    }
548    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
549    pub struct Pdr08_SPEC;
550    pub type Pdr08 = crate::EnumBitfieldStruct<u8, Pdr08_SPEC>;
551    impl Pdr08 {
552        #[doc = "Output 0"]
553        pub const _0: Self = Self::new(0);
554
555        #[doc = "Output 1"]
556        pub const _1: Self = Self::new(1);
557    }
558    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
559    pub struct Pdr12_SPEC;
560    pub type Pdr12 = crate::EnumBitfieldStruct<u8, Pdr12_SPEC>;
561    impl Pdr12 {
562        #[doc = "Output 0"]
563        pub const _0: Self = Self::new(0);
564
565        #[doc = "Output 1"]
566        pub const _1: Self = Self::new(1);
567    }
568    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
569    pub struct Pdr13_SPEC;
570    pub type Pdr13 = crate::EnumBitfieldStruct<u8, Pdr13_SPEC>;
571    impl Pdr13 {
572        #[doc = "Output 0"]
573        pub const _0: Self = Self::new(0);
574
575        #[doc = "Output 1"]
576        pub const _1: Self = Self::new(1);
577    }
578}
579#[doc(hidden)]
580#[derive(Copy, Clone, Eq, PartialEq)]
581pub struct Pidr2_SPEC;
582impl crate::sealed::RegSpec for Pidr2_SPEC {
583    type DataType = u16;
584}
585
586#[doc = "Port 2 State Register"]
587pub type Pidr2 = crate::RegValueT<Pidr2_SPEC>;
588
589impl Pidr2 {
590    #[doc = "P200 State"]
591    #[inline(always)]
592    pub fn pidr00(
593        self,
594    ) -> crate::common::RegisterField<
595        0,
596        0x1,
597        1,
598        0,
599        pidr2::Pidr00,
600        pidr2::Pidr00,
601        Pidr2_SPEC,
602        crate::common::R,
603    > {
604        crate::common::RegisterField::<
605            0,
606            0x1,
607            1,
608            0,
609            pidr2::Pidr00,
610            pidr2::Pidr00,
611            Pidr2_SPEC,
612            crate::common::R,
613        >::from_register(self, 0)
614    }
615
616    #[doc = "P201 State"]
617    #[inline(always)]
618    pub fn pidr01(
619        self,
620    ) -> crate::common::RegisterField<
621        1,
622        0x1,
623        1,
624        0,
625        pidr2::Pidr01,
626        pidr2::Pidr01,
627        Pidr2_SPEC,
628        crate::common::R,
629    > {
630        crate::common::RegisterField::<
631            1,
632            0x1,
633            1,
634            0,
635            pidr2::Pidr01,
636            pidr2::Pidr01,
637            Pidr2_SPEC,
638            crate::common::R,
639        >::from_register(self, 0)
640    }
641
642    #[doc = "P206 State"]
643    #[inline(always)]
644    pub fn pidr06(
645        self,
646    ) -> crate::common::RegisterField<
647        6,
648        0x1,
649        1,
650        0,
651        pidr2::Pidr06,
652        pidr2::Pidr06,
653        Pidr2_SPEC,
654        crate::common::R,
655    > {
656        crate::common::RegisterField::<
657            6,
658            0x1,
659            1,
660            0,
661            pidr2::Pidr06,
662            pidr2::Pidr06,
663            Pidr2_SPEC,
664            crate::common::R,
665        >::from_register(self, 0)
666    }
667
668    #[doc = "P207 State"]
669    #[inline(always)]
670    pub fn pidr07(
671        self,
672    ) -> crate::common::RegisterField<
673        7,
674        0x1,
675        1,
676        0,
677        pidr2::Pidr07,
678        pidr2::Pidr07,
679        Pidr2_SPEC,
680        crate::common::R,
681    > {
682        crate::common::RegisterField::<
683            7,
684            0x1,
685            1,
686            0,
687            pidr2::Pidr07,
688            pidr2::Pidr07,
689            Pidr2_SPEC,
690            crate::common::R,
691        >::from_register(self, 0)
692    }
693
694    #[doc = "P208 State"]
695    #[inline(always)]
696    pub fn pidr08(
697        self,
698    ) -> crate::common::RegisterField<
699        8,
700        0x1,
701        1,
702        0,
703        pidr2::Pidr08,
704        pidr2::Pidr08,
705        Pidr2_SPEC,
706        crate::common::R,
707    > {
708        crate::common::RegisterField::<
709            8,
710            0x1,
711            1,
712            0,
713            pidr2::Pidr08,
714            pidr2::Pidr08,
715            Pidr2_SPEC,
716            crate::common::R,
717        >::from_register(self, 0)
718    }
719
720    #[doc = "P212 State"]
721    #[inline(always)]
722    pub fn pidr12(
723        self,
724    ) -> crate::common::RegisterField<
725        12,
726        0x1,
727        1,
728        0,
729        pidr2::Pidr12,
730        pidr2::Pidr12,
731        Pidr2_SPEC,
732        crate::common::R,
733    > {
734        crate::common::RegisterField::<
735            12,
736            0x1,
737            1,
738            0,
739            pidr2::Pidr12,
740            pidr2::Pidr12,
741            Pidr2_SPEC,
742            crate::common::R,
743        >::from_register(self, 0)
744    }
745
746    #[doc = "P213 State"]
747    #[inline(always)]
748    pub fn pidr13(
749        self,
750    ) -> crate::common::RegisterField<
751        13,
752        0x1,
753        1,
754        0,
755        pidr2::Pidr13,
756        pidr2::Pidr13,
757        Pidr2_SPEC,
758        crate::common::R,
759    > {
760        crate::common::RegisterField::<
761            13,
762            0x1,
763            1,
764            0,
765            pidr2::Pidr13,
766            pidr2::Pidr13,
767            Pidr2_SPEC,
768            crate::common::R,
769        >::from_register(self, 0)
770    }
771
772    #[doc = "P214 State"]
773    #[inline(always)]
774    pub fn pidr14(
775        self,
776    ) -> crate::common::RegisterField<
777        14,
778        0x1,
779        1,
780        0,
781        pidr2::Pidr14,
782        pidr2::Pidr14,
783        Pidr2_SPEC,
784        crate::common::R,
785    > {
786        crate::common::RegisterField::<
787            14,
788            0x1,
789            1,
790            0,
791            pidr2::Pidr14,
792            pidr2::Pidr14,
793            Pidr2_SPEC,
794            crate::common::R,
795        >::from_register(self, 0)
796    }
797
798    #[doc = "P215 State"]
799    #[inline(always)]
800    pub fn pidr15(
801        self,
802    ) -> crate::common::RegisterField<
803        15,
804        0x1,
805        1,
806        0,
807        pidr2::Pidr15,
808        pidr2::Pidr15,
809        Pidr2_SPEC,
810        crate::common::R,
811    > {
812        crate::common::RegisterField::<
813            15,
814            0x1,
815            1,
816            0,
817            pidr2::Pidr15,
818            pidr2::Pidr15,
819            Pidr2_SPEC,
820            crate::common::R,
821        >::from_register(self, 0)
822    }
823}
824impl ::core::default::Default for Pidr2 {
825    #[inline(always)]
826    fn default() -> Pidr2 {
827        <crate::RegValueT<Pidr2_SPEC> as RegisterValue<_>>::new(0)
828    }
829}
830pub mod pidr2 {
831
832    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
833    pub struct Pidr00_SPEC;
834    pub type Pidr00 = crate::EnumBitfieldStruct<u8, Pidr00_SPEC>;
835    impl Pidr00 {
836        #[doc = "Low level"]
837        pub const _0: Self = Self::new(0);
838
839        #[doc = "High level"]
840        pub const _1: Self = Self::new(1);
841    }
842    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
843    pub struct Pidr01_SPEC;
844    pub type Pidr01 = crate::EnumBitfieldStruct<u8, Pidr01_SPEC>;
845    impl Pidr01 {
846        #[doc = "Low level"]
847        pub const _0: Self = Self::new(0);
848
849        #[doc = "High level"]
850        pub const _1: Self = Self::new(1);
851    }
852    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
853    pub struct Pidr06_SPEC;
854    pub type Pidr06 = crate::EnumBitfieldStruct<u8, Pidr06_SPEC>;
855    impl Pidr06 {
856        #[doc = "Low level"]
857        pub const _0: Self = Self::new(0);
858
859        #[doc = "High level"]
860        pub const _1: Self = Self::new(1);
861    }
862    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
863    pub struct Pidr07_SPEC;
864    pub type Pidr07 = crate::EnumBitfieldStruct<u8, Pidr07_SPEC>;
865    impl Pidr07 {
866        #[doc = "Low level"]
867        pub const _0: Self = Self::new(0);
868
869        #[doc = "High level"]
870        pub const _1: Self = Self::new(1);
871    }
872    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
873    pub struct Pidr08_SPEC;
874    pub type Pidr08 = crate::EnumBitfieldStruct<u8, Pidr08_SPEC>;
875    impl Pidr08 {
876        #[doc = "Low level"]
877        pub const _0: Self = Self::new(0);
878
879        #[doc = "High level"]
880        pub const _1: Self = Self::new(1);
881    }
882    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
883    pub struct Pidr12_SPEC;
884    pub type Pidr12 = crate::EnumBitfieldStruct<u8, Pidr12_SPEC>;
885    impl Pidr12 {
886        #[doc = "Low level"]
887        pub const _0: Self = Self::new(0);
888
889        #[doc = "High level"]
890        pub const _1: Self = Self::new(1);
891    }
892    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
893    pub struct Pidr13_SPEC;
894    pub type Pidr13 = crate::EnumBitfieldStruct<u8, Pidr13_SPEC>;
895    impl Pidr13 {
896        #[doc = "Low level"]
897        pub const _0: Self = Self::new(0);
898
899        #[doc = "High level"]
900        pub const _1: Self = Self::new(1);
901    }
902    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
903    pub struct Pidr14_SPEC;
904    pub type Pidr14 = crate::EnumBitfieldStruct<u8, Pidr14_SPEC>;
905    impl Pidr14 {
906        #[doc = "Low level"]
907        pub const _0: Self = Self::new(0);
908
909        #[doc = "High level"]
910        pub const _1: Self = Self::new(1);
911    }
912    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
913    pub struct Pidr15_SPEC;
914    pub type Pidr15 = crate::EnumBitfieldStruct<u8, Pidr15_SPEC>;
915    impl Pidr15 {
916        #[doc = "Low level"]
917        pub const _0: Self = Self::new(0);
918
919        #[doc = "High level"]
920        pub const _1: Self = Self::new(1);
921    }
922}
923#[doc(hidden)]
924#[derive(Copy, Clone, Eq, PartialEq)]
925pub struct Porr2_SPEC;
926impl crate::sealed::RegSpec for Porr2_SPEC {
927    type DataType = u16;
928}
929
930#[doc = "Port 2 Output Reset Register"]
931pub type Porr2 = crate::RegValueT<Porr2_SPEC>;
932
933impl Porr2 {
934    #[doc = "P201 Output Reset"]
935    #[inline(always)]
936    pub fn porr01(
937        self,
938    ) -> crate::common::RegisterField<
939        1,
940        0x1,
941        1,
942        0,
943        porr2::Porr01,
944        porr2::Porr01,
945        Porr2_SPEC,
946        crate::common::W,
947    > {
948        crate::common::RegisterField::<
949            1,
950            0x1,
951            1,
952            0,
953            porr2::Porr01,
954            porr2::Porr01,
955            Porr2_SPEC,
956            crate::common::W,
957        >::from_register(self, 0)
958    }
959
960    #[doc = "P206 Output Reset"]
961    #[inline(always)]
962    pub fn porr06(
963        self,
964    ) -> crate::common::RegisterField<
965        6,
966        0x1,
967        1,
968        0,
969        porr2::Porr06,
970        porr2::Porr06,
971        Porr2_SPEC,
972        crate::common::W,
973    > {
974        crate::common::RegisterField::<
975            6,
976            0x1,
977            1,
978            0,
979            porr2::Porr06,
980            porr2::Porr06,
981            Porr2_SPEC,
982            crate::common::W,
983        >::from_register(self, 0)
984    }
985
986    #[doc = "P207 Output Reset"]
987    #[inline(always)]
988    pub fn porr07(
989        self,
990    ) -> crate::common::RegisterField<
991        7,
992        0x1,
993        1,
994        0,
995        porr2::Porr07,
996        porr2::Porr07,
997        Porr2_SPEC,
998        crate::common::W,
999    > {
1000        crate::common::RegisterField::<
1001            7,
1002            0x1,
1003            1,
1004            0,
1005            porr2::Porr07,
1006            porr2::Porr07,
1007            Porr2_SPEC,
1008            crate::common::W,
1009        >::from_register(self, 0)
1010    }
1011
1012    #[doc = "P208 Output Reset"]
1013    #[inline(always)]
1014    pub fn porr08(
1015        self,
1016    ) -> crate::common::RegisterField<
1017        8,
1018        0x1,
1019        1,
1020        0,
1021        porr2::Porr08,
1022        porr2::Porr08,
1023        Porr2_SPEC,
1024        crate::common::W,
1025    > {
1026        crate::common::RegisterField::<
1027            8,
1028            0x1,
1029            1,
1030            0,
1031            porr2::Porr08,
1032            porr2::Porr08,
1033            Porr2_SPEC,
1034            crate::common::W,
1035        >::from_register(self, 0)
1036    }
1037
1038    #[doc = "P212 Output Reset"]
1039    #[inline(always)]
1040    pub fn porr12(
1041        self,
1042    ) -> crate::common::RegisterField<
1043        12,
1044        0x1,
1045        1,
1046        0,
1047        porr2::Porr12,
1048        porr2::Porr12,
1049        Porr2_SPEC,
1050        crate::common::W,
1051    > {
1052        crate::common::RegisterField::<
1053            12,
1054            0x1,
1055            1,
1056            0,
1057            porr2::Porr12,
1058            porr2::Porr12,
1059            Porr2_SPEC,
1060            crate::common::W,
1061        >::from_register(self, 0)
1062    }
1063
1064    #[doc = "P213 Output Reset"]
1065    #[inline(always)]
1066    pub fn porr13(
1067        self,
1068    ) -> crate::common::RegisterField<
1069        13,
1070        0x1,
1071        1,
1072        0,
1073        porr2::Porr13,
1074        porr2::Porr13,
1075        Porr2_SPEC,
1076        crate::common::W,
1077    > {
1078        crate::common::RegisterField::<
1079            13,
1080            0x1,
1081            1,
1082            0,
1083            porr2::Porr13,
1084            porr2::Porr13,
1085            Porr2_SPEC,
1086            crate::common::W,
1087        >::from_register(self, 0)
1088    }
1089}
1090impl ::core::default::Default for Porr2 {
1091    #[inline(always)]
1092    fn default() -> Porr2 {
1093        <crate::RegValueT<Porr2_SPEC> as RegisterValue<_>>::new(0)
1094    }
1095}
1096pub mod porr2 {
1097
1098    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1099    pub struct Porr01_SPEC;
1100    pub type Porr01 = crate::EnumBitfieldStruct<u8, Porr01_SPEC>;
1101    impl Porr01 {
1102        #[doc = "No effect on output"]
1103        pub const _0: Self = Self::new(0);
1104
1105        #[doc = "Low output"]
1106        pub const _1: Self = Self::new(1);
1107    }
1108    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1109    pub struct Porr06_SPEC;
1110    pub type Porr06 = crate::EnumBitfieldStruct<u8, Porr06_SPEC>;
1111    impl Porr06 {
1112        #[doc = "No effect on output"]
1113        pub const _0: Self = Self::new(0);
1114
1115        #[doc = "Low output"]
1116        pub const _1: Self = Self::new(1);
1117    }
1118    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1119    pub struct Porr07_SPEC;
1120    pub type Porr07 = crate::EnumBitfieldStruct<u8, Porr07_SPEC>;
1121    impl Porr07 {
1122        #[doc = "No effect on output"]
1123        pub const _0: Self = Self::new(0);
1124
1125        #[doc = "Low output"]
1126        pub const _1: Self = Self::new(1);
1127    }
1128    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1129    pub struct Porr08_SPEC;
1130    pub type Porr08 = crate::EnumBitfieldStruct<u8, Porr08_SPEC>;
1131    impl Porr08 {
1132        #[doc = "No effect on output"]
1133        pub const _0: Self = Self::new(0);
1134
1135        #[doc = "Low output"]
1136        pub const _1: Self = Self::new(1);
1137    }
1138    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1139    pub struct Porr12_SPEC;
1140    pub type Porr12 = crate::EnumBitfieldStruct<u8, Porr12_SPEC>;
1141    impl Porr12 {
1142        #[doc = "No effect on output"]
1143        pub const _0: Self = Self::new(0);
1144
1145        #[doc = "Low output"]
1146        pub const _1: Self = Self::new(1);
1147    }
1148    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1149    pub struct Porr13_SPEC;
1150    pub type Porr13 = crate::EnumBitfieldStruct<u8, Porr13_SPEC>;
1151    impl Porr13 {
1152        #[doc = "No effect on output"]
1153        pub const _0: Self = Self::new(0);
1154
1155        #[doc = "Low output"]
1156        pub const _1: Self = Self::new(1);
1157    }
1158}
1159#[doc(hidden)]
1160#[derive(Copy, Clone, Eq, PartialEq)]
1161pub struct Posr2_SPEC;
1162impl crate::sealed::RegSpec for Posr2_SPEC {
1163    type DataType = u16;
1164}
1165
1166#[doc = "Port 2 Output Set Register"]
1167pub type Posr2 = crate::RegValueT<Posr2_SPEC>;
1168
1169impl Posr2 {
1170    #[doc = "P201 Output Set"]
1171    #[inline(always)]
1172    pub fn posr01(
1173        self,
1174    ) -> crate::common::RegisterField<
1175        1,
1176        0x1,
1177        1,
1178        0,
1179        posr2::Posr01,
1180        posr2::Posr01,
1181        Posr2_SPEC,
1182        crate::common::W,
1183    > {
1184        crate::common::RegisterField::<
1185            1,
1186            0x1,
1187            1,
1188            0,
1189            posr2::Posr01,
1190            posr2::Posr01,
1191            Posr2_SPEC,
1192            crate::common::W,
1193        >::from_register(self, 0)
1194    }
1195
1196    #[doc = "P206 Output Set"]
1197    #[inline(always)]
1198    pub fn posr06(
1199        self,
1200    ) -> crate::common::RegisterField<
1201        6,
1202        0x1,
1203        1,
1204        0,
1205        posr2::Posr06,
1206        posr2::Posr06,
1207        Posr2_SPEC,
1208        crate::common::W,
1209    > {
1210        crate::common::RegisterField::<
1211            6,
1212            0x1,
1213            1,
1214            0,
1215            posr2::Posr06,
1216            posr2::Posr06,
1217            Posr2_SPEC,
1218            crate::common::W,
1219        >::from_register(self, 0)
1220    }
1221
1222    #[doc = "P207 Output Set"]
1223    #[inline(always)]
1224    pub fn posr07(
1225        self,
1226    ) -> crate::common::RegisterField<
1227        7,
1228        0x1,
1229        1,
1230        0,
1231        posr2::Posr07,
1232        posr2::Posr07,
1233        Posr2_SPEC,
1234        crate::common::W,
1235    > {
1236        crate::common::RegisterField::<
1237            7,
1238            0x1,
1239            1,
1240            0,
1241            posr2::Posr07,
1242            posr2::Posr07,
1243            Posr2_SPEC,
1244            crate::common::W,
1245        >::from_register(self, 0)
1246    }
1247
1248    #[doc = "P208 Output Set"]
1249    #[inline(always)]
1250    pub fn posr08(
1251        self,
1252    ) -> crate::common::RegisterField<
1253        8,
1254        0x1,
1255        1,
1256        0,
1257        posr2::Posr08,
1258        posr2::Posr08,
1259        Posr2_SPEC,
1260        crate::common::W,
1261    > {
1262        crate::common::RegisterField::<
1263            8,
1264            0x1,
1265            1,
1266            0,
1267            posr2::Posr08,
1268            posr2::Posr08,
1269            Posr2_SPEC,
1270            crate::common::W,
1271        >::from_register(self, 0)
1272    }
1273
1274    #[doc = "P212 Output Set"]
1275    #[inline(always)]
1276    pub fn posr12(
1277        self,
1278    ) -> crate::common::RegisterField<
1279        12,
1280        0x1,
1281        1,
1282        0,
1283        posr2::Posr12,
1284        posr2::Posr12,
1285        Posr2_SPEC,
1286        crate::common::W,
1287    > {
1288        crate::common::RegisterField::<
1289            12,
1290            0x1,
1291            1,
1292            0,
1293            posr2::Posr12,
1294            posr2::Posr12,
1295            Posr2_SPEC,
1296            crate::common::W,
1297        >::from_register(self, 0)
1298    }
1299
1300    #[doc = "P213 Output Set"]
1301    #[inline(always)]
1302    pub fn posr13(
1303        self,
1304    ) -> crate::common::RegisterField<
1305        13,
1306        0x1,
1307        1,
1308        0,
1309        posr2::Posr13,
1310        posr2::Posr13,
1311        Posr2_SPEC,
1312        crate::common::W,
1313    > {
1314        crate::common::RegisterField::<
1315            13,
1316            0x1,
1317            1,
1318            0,
1319            posr2::Posr13,
1320            posr2::Posr13,
1321            Posr2_SPEC,
1322            crate::common::W,
1323        >::from_register(self, 0)
1324    }
1325}
1326impl ::core::default::Default for Posr2 {
1327    #[inline(always)]
1328    fn default() -> Posr2 {
1329        <crate::RegValueT<Posr2_SPEC> as RegisterValue<_>>::new(0)
1330    }
1331}
1332pub mod posr2 {
1333
1334    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1335    pub struct Posr01_SPEC;
1336    pub type Posr01 = crate::EnumBitfieldStruct<u8, Posr01_SPEC>;
1337    impl Posr01 {
1338        #[doc = "No effect on output"]
1339        pub const _0: Self = Self::new(0);
1340
1341        #[doc = "High output"]
1342        pub const _1: Self = Self::new(1);
1343    }
1344    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1345    pub struct Posr06_SPEC;
1346    pub type Posr06 = crate::EnumBitfieldStruct<u8, Posr06_SPEC>;
1347    impl Posr06 {
1348        #[doc = "No effect on output"]
1349        pub const _0: Self = Self::new(0);
1350
1351        #[doc = "High output"]
1352        pub const _1: Self = Self::new(1);
1353    }
1354    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1355    pub struct Posr07_SPEC;
1356    pub type Posr07 = crate::EnumBitfieldStruct<u8, Posr07_SPEC>;
1357    impl Posr07 {
1358        #[doc = "No effect on output"]
1359        pub const _0: Self = Self::new(0);
1360
1361        #[doc = "High output"]
1362        pub const _1: Self = Self::new(1);
1363    }
1364    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1365    pub struct Posr08_SPEC;
1366    pub type Posr08 = crate::EnumBitfieldStruct<u8, Posr08_SPEC>;
1367    impl Posr08 {
1368        #[doc = "No effect on output"]
1369        pub const _0: Self = Self::new(0);
1370
1371        #[doc = "High output"]
1372        pub const _1: Self = Self::new(1);
1373    }
1374    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1375    pub struct Posr12_SPEC;
1376    pub type Posr12 = crate::EnumBitfieldStruct<u8, Posr12_SPEC>;
1377    impl Posr12 {
1378        #[doc = "No effect on output"]
1379        pub const _0: Self = Self::new(0);
1380
1381        #[doc = "High output"]
1382        pub const _1: Self = Self::new(1);
1383    }
1384    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1385    pub struct Posr13_SPEC;
1386    pub type Posr13 = crate::EnumBitfieldStruct<u8, Posr13_SPEC>;
1387    impl Posr13 {
1388        #[doc = "No effect on output"]
1389        pub const _0: Self = Self::new(0);
1390
1391        #[doc = "High output"]
1392        pub const _1: Self = Self::new(1);
1393    }
1394}
1395#[doc(hidden)]
1396#[derive(Copy, Clone, Eq, PartialEq)]
1397pub struct Eorr2_SPEC;
1398impl crate::sealed::RegSpec for Eorr2_SPEC {
1399    type DataType = u16;
1400}
1401
1402#[doc = "Port 2 Event Output Reset Register"]
1403pub type Eorr2 = crate::RegValueT<Eorr2_SPEC>;
1404
1405impl Eorr2 {
1406    #[doc = "P201 Event Output Reset"]
1407    #[inline(always)]
1408    pub fn eorr01(
1409        self,
1410    ) -> crate::common::RegisterField<
1411        1,
1412        0x1,
1413        1,
1414        0,
1415        eorr2::Eorr01,
1416        eorr2::Eorr01,
1417        Eorr2_SPEC,
1418        crate::common::RW,
1419    > {
1420        crate::common::RegisterField::<
1421            1,
1422            0x1,
1423            1,
1424            0,
1425            eorr2::Eorr01,
1426            eorr2::Eorr01,
1427            Eorr2_SPEC,
1428            crate::common::RW,
1429        >::from_register(self, 0)
1430    }
1431
1432    #[doc = "P206 Event Output Reset"]
1433    #[inline(always)]
1434    pub fn eorr06(
1435        self,
1436    ) -> crate::common::RegisterField<
1437        6,
1438        0x1,
1439        1,
1440        0,
1441        eorr2::Eorr06,
1442        eorr2::Eorr06,
1443        Eorr2_SPEC,
1444        crate::common::RW,
1445    > {
1446        crate::common::RegisterField::<
1447            6,
1448            0x1,
1449            1,
1450            0,
1451            eorr2::Eorr06,
1452            eorr2::Eorr06,
1453            Eorr2_SPEC,
1454            crate::common::RW,
1455        >::from_register(self, 0)
1456    }
1457
1458    #[doc = "P207 Event Output Reset"]
1459    #[inline(always)]
1460    pub fn eorr07(
1461        self,
1462    ) -> crate::common::RegisterField<
1463        7,
1464        0x1,
1465        1,
1466        0,
1467        eorr2::Eorr07,
1468        eorr2::Eorr07,
1469        Eorr2_SPEC,
1470        crate::common::RW,
1471    > {
1472        crate::common::RegisterField::<
1473            7,
1474            0x1,
1475            1,
1476            0,
1477            eorr2::Eorr07,
1478            eorr2::Eorr07,
1479            Eorr2_SPEC,
1480            crate::common::RW,
1481        >::from_register(self, 0)
1482    }
1483
1484    #[doc = "P208 Event Output Reset"]
1485    #[inline(always)]
1486    pub fn eorr08(
1487        self,
1488    ) -> crate::common::RegisterField<
1489        8,
1490        0x1,
1491        1,
1492        0,
1493        eorr2::Eorr08,
1494        eorr2::Eorr08,
1495        Eorr2_SPEC,
1496        crate::common::RW,
1497    > {
1498        crate::common::RegisterField::<
1499            8,
1500            0x1,
1501            1,
1502            0,
1503            eorr2::Eorr08,
1504            eorr2::Eorr08,
1505            Eorr2_SPEC,
1506            crate::common::RW,
1507        >::from_register(self, 0)
1508    }
1509
1510    #[doc = "P212 Event Output Reset"]
1511    #[inline(always)]
1512    pub fn eorr12(
1513        self,
1514    ) -> crate::common::RegisterField<
1515        12,
1516        0x1,
1517        1,
1518        0,
1519        eorr2::Eorr12,
1520        eorr2::Eorr12,
1521        Eorr2_SPEC,
1522        crate::common::RW,
1523    > {
1524        crate::common::RegisterField::<
1525            12,
1526            0x1,
1527            1,
1528            0,
1529            eorr2::Eorr12,
1530            eorr2::Eorr12,
1531            Eorr2_SPEC,
1532            crate::common::RW,
1533        >::from_register(self, 0)
1534    }
1535
1536    #[doc = "P213 Event Output Reset"]
1537    #[inline(always)]
1538    pub fn eorr13(
1539        self,
1540    ) -> crate::common::RegisterField<
1541        13,
1542        0x1,
1543        1,
1544        0,
1545        eorr2::Eorr13,
1546        eorr2::Eorr13,
1547        Eorr2_SPEC,
1548        crate::common::RW,
1549    > {
1550        crate::common::RegisterField::<
1551            13,
1552            0x1,
1553            1,
1554            0,
1555            eorr2::Eorr13,
1556            eorr2::Eorr13,
1557            Eorr2_SPEC,
1558            crate::common::RW,
1559        >::from_register(self, 0)
1560    }
1561}
1562impl ::core::default::Default for Eorr2 {
1563    #[inline(always)]
1564    fn default() -> Eorr2 {
1565        <crate::RegValueT<Eorr2_SPEC> as RegisterValue<_>>::new(0)
1566    }
1567}
1568pub mod eorr2 {
1569
1570    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1571    pub struct Eorr01_SPEC;
1572    pub type Eorr01 = crate::EnumBitfieldStruct<u8, Eorr01_SPEC>;
1573    impl Eorr01 {
1574        #[doc = "No effect on output"]
1575        pub const _0: Self = Self::new(0);
1576
1577        #[doc = "Low output"]
1578        pub const _1: Self = Self::new(1);
1579    }
1580    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1581    pub struct Eorr06_SPEC;
1582    pub type Eorr06 = crate::EnumBitfieldStruct<u8, Eorr06_SPEC>;
1583    impl Eorr06 {
1584        #[doc = "No effect on output"]
1585        pub const _0: Self = Self::new(0);
1586
1587        #[doc = "Low output"]
1588        pub const _1: Self = Self::new(1);
1589    }
1590    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1591    pub struct Eorr07_SPEC;
1592    pub type Eorr07 = crate::EnumBitfieldStruct<u8, Eorr07_SPEC>;
1593    impl Eorr07 {
1594        #[doc = "No effect on output"]
1595        pub const _0: Self = Self::new(0);
1596
1597        #[doc = "Low output"]
1598        pub const _1: Self = Self::new(1);
1599    }
1600    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1601    pub struct Eorr08_SPEC;
1602    pub type Eorr08 = crate::EnumBitfieldStruct<u8, Eorr08_SPEC>;
1603    impl Eorr08 {
1604        #[doc = "No effect on output"]
1605        pub const _0: Self = Self::new(0);
1606
1607        #[doc = "Low output"]
1608        pub const _1: Self = Self::new(1);
1609    }
1610    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1611    pub struct Eorr12_SPEC;
1612    pub type Eorr12 = crate::EnumBitfieldStruct<u8, Eorr12_SPEC>;
1613    impl Eorr12 {
1614        #[doc = "No effect on output"]
1615        pub const _0: Self = Self::new(0);
1616
1617        #[doc = "Low output"]
1618        pub const _1: Self = Self::new(1);
1619    }
1620    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1621    pub struct Eorr13_SPEC;
1622    pub type Eorr13 = crate::EnumBitfieldStruct<u8, Eorr13_SPEC>;
1623    impl Eorr13 {
1624        #[doc = "No effect on output"]
1625        pub const _0: Self = Self::new(0);
1626
1627        #[doc = "Low output"]
1628        pub const _1: Self = Self::new(1);
1629    }
1630}
1631#[doc(hidden)]
1632#[derive(Copy, Clone, Eq, PartialEq)]
1633pub struct Eosr2_SPEC;
1634impl crate::sealed::RegSpec for Eosr2_SPEC {
1635    type DataType = u16;
1636}
1637
1638#[doc = "Port 2 Event Output Set Register"]
1639pub type Eosr2 = crate::RegValueT<Eosr2_SPEC>;
1640
1641impl Eosr2 {
1642    #[doc = "P201 Event Output Set"]
1643    #[inline(always)]
1644    pub fn eosr01(
1645        self,
1646    ) -> crate::common::RegisterField<
1647        1,
1648        0x1,
1649        1,
1650        0,
1651        eosr2::Eosr01,
1652        eosr2::Eosr01,
1653        Eosr2_SPEC,
1654        crate::common::RW,
1655    > {
1656        crate::common::RegisterField::<
1657            1,
1658            0x1,
1659            1,
1660            0,
1661            eosr2::Eosr01,
1662            eosr2::Eosr01,
1663            Eosr2_SPEC,
1664            crate::common::RW,
1665        >::from_register(self, 0)
1666    }
1667
1668    #[doc = "P206 Event Output Set"]
1669    #[inline(always)]
1670    pub fn eosr06(
1671        self,
1672    ) -> crate::common::RegisterField<
1673        6,
1674        0x1,
1675        1,
1676        0,
1677        eosr2::Eosr06,
1678        eosr2::Eosr06,
1679        Eosr2_SPEC,
1680        crate::common::RW,
1681    > {
1682        crate::common::RegisterField::<
1683            6,
1684            0x1,
1685            1,
1686            0,
1687            eosr2::Eosr06,
1688            eosr2::Eosr06,
1689            Eosr2_SPEC,
1690            crate::common::RW,
1691        >::from_register(self, 0)
1692    }
1693
1694    #[doc = "P207 Event Output Set"]
1695    #[inline(always)]
1696    pub fn eosr07(
1697        self,
1698    ) -> crate::common::RegisterField<
1699        7,
1700        0x1,
1701        1,
1702        0,
1703        eosr2::Eosr07,
1704        eosr2::Eosr07,
1705        Eosr2_SPEC,
1706        crate::common::RW,
1707    > {
1708        crate::common::RegisterField::<
1709            7,
1710            0x1,
1711            1,
1712            0,
1713            eosr2::Eosr07,
1714            eosr2::Eosr07,
1715            Eosr2_SPEC,
1716            crate::common::RW,
1717        >::from_register(self, 0)
1718    }
1719
1720    #[doc = "P208 Event Output Set"]
1721    #[inline(always)]
1722    pub fn eosr08(
1723        self,
1724    ) -> crate::common::RegisterField<
1725        8,
1726        0x1,
1727        1,
1728        0,
1729        eosr2::Eosr08,
1730        eosr2::Eosr08,
1731        Eosr2_SPEC,
1732        crate::common::RW,
1733    > {
1734        crate::common::RegisterField::<
1735            8,
1736            0x1,
1737            1,
1738            0,
1739            eosr2::Eosr08,
1740            eosr2::Eosr08,
1741            Eosr2_SPEC,
1742            crate::common::RW,
1743        >::from_register(self, 0)
1744    }
1745
1746    #[doc = "P212 Event Output Set"]
1747    #[inline(always)]
1748    pub fn eosr12(
1749        self,
1750    ) -> crate::common::RegisterField<
1751        12,
1752        0x1,
1753        1,
1754        0,
1755        eosr2::Eosr12,
1756        eosr2::Eosr12,
1757        Eosr2_SPEC,
1758        crate::common::RW,
1759    > {
1760        crate::common::RegisterField::<
1761            12,
1762            0x1,
1763            1,
1764            0,
1765            eosr2::Eosr12,
1766            eosr2::Eosr12,
1767            Eosr2_SPEC,
1768            crate::common::RW,
1769        >::from_register(self, 0)
1770    }
1771
1772    #[doc = "P213 Event Output Set"]
1773    #[inline(always)]
1774    pub fn eosr13(
1775        self,
1776    ) -> crate::common::RegisterField<
1777        13,
1778        0x1,
1779        1,
1780        0,
1781        eosr2::Eosr13,
1782        eosr2::Eosr13,
1783        Eosr2_SPEC,
1784        crate::common::RW,
1785    > {
1786        crate::common::RegisterField::<
1787            13,
1788            0x1,
1789            1,
1790            0,
1791            eosr2::Eosr13,
1792            eosr2::Eosr13,
1793            Eosr2_SPEC,
1794            crate::common::RW,
1795        >::from_register(self, 0)
1796    }
1797}
1798impl ::core::default::Default for Eosr2 {
1799    #[inline(always)]
1800    fn default() -> Eosr2 {
1801        <crate::RegValueT<Eosr2_SPEC> as RegisterValue<_>>::new(0)
1802    }
1803}
1804pub mod eosr2 {
1805
1806    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1807    pub struct Eosr01_SPEC;
1808    pub type Eosr01 = crate::EnumBitfieldStruct<u8, Eosr01_SPEC>;
1809    impl Eosr01 {
1810        #[doc = "No effect on output"]
1811        pub const _0: Self = Self::new(0);
1812
1813        #[doc = "High output"]
1814        pub const _1: Self = Self::new(1);
1815    }
1816    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1817    pub struct Eosr06_SPEC;
1818    pub type Eosr06 = crate::EnumBitfieldStruct<u8, Eosr06_SPEC>;
1819    impl Eosr06 {
1820        #[doc = "No effect on output"]
1821        pub const _0: Self = Self::new(0);
1822
1823        #[doc = "High output"]
1824        pub const _1: Self = Self::new(1);
1825    }
1826    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1827    pub struct Eosr07_SPEC;
1828    pub type Eosr07 = crate::EnumBitfieldStruct<u8, Eosr07_SPEC>;
1829    impl Eosr07 {
1830        #[doc = "No effect on output"]
1831        pub const _0: Self = Self::new(0);
1832
1833        #[doc = "High output"]
1834        pub const _1: Self = Self::new(1);
1835    }
1836    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1837    pub struct Eosr08_SPEC;
1838    pub type Eosr08 = crate::EnumBitfieldStruct<u8, Eosr08_SPEC>;
1839    impl Eosr08 {
1840        #[doc = "No effect on output"]
1841        pub const _0: Self = Self::new(0);
1842
1843        #[doc = "High output"]
1844        pub const _1: Self = Self::new(1);
1845    }
1846    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1847    pub struct Eosr12_SPEC;
1848    pub type Eosr12 = crate::EnumBitfieldStruct<u8, Eosr12_SPEC>;
1849    impl Eosr12 {
1850        #[doc = "No effect on output"]
1851        pub const _0: Self = Self::new(0);
1852
1853        #[doc = "High output"]
1854        pub const _1: Self = Self::new(1);
1855    }
1856    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1857    pub struct Eosr13_SPEC;
1858    pub type Eosr13 = crate::EnumBitfieldStruct<u8, Eosr13_SPEC>;
1859    impl Eosr13 {
1860        #[doc = "No effect on output"]
1861        pub const _0: Self = Self::new(0);
1862
1863        #[doc = "High output"]
1864        pub const _1: Self = Self::new(1);
1865    }
1866}