ra2e2/port1/
pcntr2.rs

1#[doc = "Register `PCNTR2` reader"]
2pub struct R(crate::R<PCNTR2_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PCNTR2_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PCNTR2_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PCNTR2_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `PIDR00` reader - Pmn State"]
17pub type PIDR00_R = crate::BitReader<PIDR00_A>;
18#[doc = "Pmn State\n\nValue on reset: 0"]
19#[derive(Clone, Copy, Debug, PartialEq, Eq)]
20pub enum PIDR00_A {
21    #[doc = "0: Low level"]
22    _0 = 0,
23    #[doc = "1: High level"]
24    _1 = 1,
25}
26impl From<PIDR00_A> for bool {
27    #[inline(always)]
28    fn from(variant: PIDR00_A) -> Self {
29        variant as u8 != 0
30    }
31}
32impl PIDR00_R {
33    #[doc = "Get enumerated values variant"]
34    #[inline(always)]
35    pub fn variant(&self) -> PIDR00_A {
36        match self.bits {
37            false => PIDR00_A::_0,
38            true => PIDR00_A::_1,
39        }
40    }
41    #[doc = "Checks if the value of the field is `_0`"]
42    #[inline(always)]
43    pub fn is_0(&self) -> bool {
44        *self == PIDR00_A::_0
45    }
46    #[doc = "Checks if the value of the field is `_1`"]
47    #[inline(always)]
48    pub fn is_1(&self) -> bool {
49        *self == PIDR00_A::_1
50    }
51}
52#[doc = "Field `PIDR01` reader - Pmn State"]
53pub type PIDR01_R = crate::BitReader<PIDR01_A>;
54#[doc = "Pmn State\n\nValue on reset: 0"]
55#[derive(Clone, Copy, Debug, PartialEq, Eq)]
56pub enum PIDR01_A {
57    #[doc = "0: Low level"]
58    _0 = 0,
59    #[doc = "1: High level"]
60    _1 = 1,
61}
62impl From<PIDR01_A> for bool {
63    #[inline(always)]
64    fn from(variant: PIDR01_A) -> Self {
65        variant as u8 != 0
66    }
67}
68impl PIDR01_R {
69    #[doc = "Get enumerated values variant"]
70    #[inline(always)]
71    pub fn variant(&self) -> PIDR01_A {
72        match self.bits {
73            false => PIDR01_A::_0,
74            true => PIDR01_A::_1,
75        }
76    }
77    #[doc = "Checks if the value of the field is `_0`"]
78    #[inline(always)]
79    pub fn is_0(&self) -> bool {
80        *self == PIDR01_A::_0
81    }
82    #[doc = "Checks if the value of the field is `_1`"]
83    #[inline(always)]
84    pub fn is_1(&self) -> bool {
85        *self == PIDR01_A::_1
86    }
87}
88#[doc = "Field `PIDR02` reader - Pmn State"]
89pub type PIDR02_R = crate::BitReader<PIDR02_A>;
90#[doc = "Pmn State\n\nValue on reset: 0"]
91#[derive(Clone, Copy, Debug, PartialEq, Eq)]
92pub enum PIDR02_A {
93    #[doc = "0: Low level"]
94    _0 = 0,
95    #[doc = "1: High level"]
96    _1 = 1,
97}
98impl From<PIDR02_A> for bool {
99    #[inline(always)]
100    fn from(variant: PIDR02_A) -> Self {
101        variant as u8 != 0
102    }
103}
104impl PIDR02_R {
105    #[doc = "Get enumerated values variant"]
106    #[inline(always)]
107    pub fn variant(&self) -> PIDR02_A {
108        match self.bits {
109            false => PIDR02_A::_0,
110            true => PIDR02_A::_1,
111        }
112    }
113    #[doc = "Checks if the value of the field is `_0`"]
114    #[inline(always)]
115    pub fn is_0(&self) -> bool {
116        *self == PIDR02_A::_0
117    }
118    #[doc = "Checks if the value of the field is `_1`"]
119    #[inline(always)]
120    pub fn is_1(&self) -> bool {
121        *self == PIDR02_A::_1
122    }
123}
124#[doc = "Field `PIDR03` reader - Pmn State"]
125pub type PIDR03_R = crate::BitReader<PIDR03_A>;
126#[doc = "Pmn State\n\nValue on reset: 0"]
127#[derive(Clone, Copy, Debug, PartialEq, Eq)]
128pub enum PIDR03_A {
129    #[doc = "0: Low level"]
130    _0 = 0,
131    #[doc = "1: High level"]
132    _1 = 1,
133}
134impl From<PIDR03_A> for bool {
135    #[inline(always)]
136    fn from(variant: PIDR03_A) -> Self {
137        variant as u8 != 0
138    }
139}
140impl PIDR03_R {
141    #[doc = "Get enumerated values variant"]
142    #[inline(always)]
143    pub fn variant(&self) -> PIDR03_A {
144        match self.bits {
145            false => PIDR03_A::_0,
146            true => PIDR03_A::_1,
147        }
148    }
149    #[doc = "Checks if the value of the field is `_0`"]
150    #[inline(always)]
151    pub fn is_0(&self) -> bool {
152        *self == PIDR03_A::_0
153    }
154    #[doc = "Checks if the value of the field is `_1`"]
155    #[inline(always)]
156    pub fn is_1(&self) -> bool {
157        *self == PIDR03_A::_1
158    }
159}
160#[doc = "Field `PIDR04` reader - Pmn State"]
161pub type PIDR04_R = crate::BitReader<PIDR04_A>;
162#[doc = "Pmn State\n\nValue on reset: 0"]
163#[derive(Clone, Copy, Debug, PartialEq, Eq)]
164pub enum PIDR04_A {
165    #[doc = "0: Low level"]
166    _0 = 0,
167    #[doc = "1: High level"]
168    _1 = 1,
169}
170impl From<PIDR04_A> for bool {
171    #[inline(always)]
172    fn from(variant: PIDR04_A) -> Self {
173        variant as u8 != 0
174    }
175}
176impl PIDR04_R {
177    #[doc = "Get enumerated values variant"]
178    #[inline(always)]
179    pub fn variant(&self) -> PIDR04_A {
180        match self.bits {
181            false => PIDR04_A::_0,
182            true => PIDR04_A::_1,
183        }
184    }
185    #[doc = "Checks if the value of the field is `_0`"]
186    #[inline(always)]
187    pub fn is_0(&self) -> bool {
188        *self == PIDR04_A::_0
189    }
190    #[doc = "Checks if the value of the field is `_1`"]
191    #[inline(always)]
192    pub fn is_1(&self) -> bool {
193        *self == PIDR04_A::_1
194    }
195}
196#[doc = "Field `PIDR05` reader - Pmn State"]
197pub type PIDR05_R = crate::BitReader<PIDR05_A>;
198#[doc = "Pmn State\n\nValue on reset: 0"]
199#[derive(Clone, Copy, Debug, PartialEq, Eq)]
200pub enum PIDR05_A {
201    #[doc = "0: Low level"]
202    _0 = 0,
203    #[doc = "1: High level"]
204    _1 = 1,
205}
206impl From<PIDR05_A> for bool {
207    #[inline(always)]
208    fn from(variant: PIDR05_A) -> Self {
209        variant as u8 != 0
210    }
211}
212impl PIDR05_R {
213    #[doc = "Get enumerated values variant"]
214    #[inline(always)]
215    pub fn variant(&self) -> PIDR05_A {
216        match self.bits {
217            false => PIDR05_A::_0,
218            true => PIDR05_A::_1,
219        }
220    }
221    #[doc = "Checks if the value of the field is `_0`"]
222    #[inline(always)]
223    pub fn is_0(&self) -> bool {
224        *self == PIDR05_A::_0
225    }
226    #[doc = "Checks if the value of the field is `_1`"]
227    #[inline(always)]
228    pub fn is_1(&self) -> bool {
229        *self == PIDR05_A::_1
230    }
231}
232#[doc = "Field `PIDR06` reader - Pmn State"]
233pub type PIDR06_R = crate::BitReader<PIDR06_A>;
234#[doc = "Pmn State\n\nValue on reset: 0"]
235#[derive(Clone, Copy, Debug, PartialEq, Eq)]
236pub enum PIDR06_A {
237    #[doc = "0: Low level"]
238    _0 = 0,
239    #[doc = "1: High level"]
240    _1 = 1,
241}
242impl From<PIDR06_A> for bool {
243    #[inline(always)]
244    fn from(variant: PIDR06_A) -> Self {
245        variant as u8 != 0
246    }
247}
248impl PIDR06_R {
249    #[doc = "Get enumerated values variant"]
250    #[inline(always)]
251    pub fn variant(&self) -> PIDR06_A {
252        match self.bits {
253            false => PIDR06_A::_0,
254            true => PIDR06_A::_1,
255        }
256    }
257    #[doc = "Checks if the value of the field is `_0`"]
258    #[inline(always)]
259    pub fn is_0(&self) -> bool {
260        *self == PIDR06_A::_0
261    }
262    #[doc = "Checks if the value of the field is `_1`"]
263    #[inline(always)]
264    pub fn is_1(&self) -> bool {
265        *self == PIDR06_A::_1
266    }
267}
268#[doc = "Field `PIDR07` reader - Pmn State"]
269pub type PIDR07_R = crate::BitReader<PIDR07_A>;
270#[doc = "Pmn State\n\nValue on reset: 0"]
271#[derive(Clone, Copy, Debug, PartialEq, Eq)]
272pub enum PIDR07_A {
273    #[doc = "0: Low level"]
274    _0 = 0,
275    #[doc = "1: High level"]
276    _1 = 1,
277}
278impl From<PIDR07_A> for bool {
279    #[inline(always)]
280    fn from(variant: PIDR07_A) -> Self {
281        variant as u8 != 0
282    }
283}
284impl PIDR07_R {
285    #[doc = "Get enumerated values variant"]
286    #[inline(always)]
287    pub fn variant(&self) -> PIDR07_A {
288        match self.bits {
289            false => PIDR07_A::_0,
290            true => PIDR07_A::_1,
291        }
292    }
293    #[doc = "Checks if the value of the field is `_0`"]
294    #[inline(always)]
295    pub fn is_0(&self) -> bool {
296        *self == PIDR07_A::_0
297    }
298    #[doc = "Checks if the value of the field is `_1`"]
299    #[inline(always)]
300    pub fn is_1(&self) -> bool {
301        *self == PIDR07_A::_1
302    }
303}
304#[doc = "Field `PIDR08` reader - Pmn State"]
305pub type PIDR08_R = crate::BitReader<PIDR08_A>;
306#[doc = "Pmn State\n\nValue on reset: 0"]
307#[derive(Clone, Copy, Debug, PartialEq, Eq)]
308pub enum PIDR08_A {
309    #[doc = "0: Low level"]
310    _0 = 0,
311    #[doc = "1: High level"]
312    _1 = 1,
313}
314impl From<PIDR08_A> for bool {
315    #[inline(always)]
316    fn from(variant: PIDR08_A) -> Self {
317        variant as u8 != 0
318    }
319}
320impl PIDR08_R {
321    #[doc = "Get enumerated values variant"]
322    #[inline(always)]
323    pub fn variant(&self) -> PIDR08_A {
324        match self.bits {
325            false => PIDR08_A::_0,
326            true => PIDR08_A::_1,
327        }
328    }
329    #[doc = "Checks if the value of the field is `_0`"]
330    #[inline(always)]
331    pub fn is_0(&self) -> bool {
332        *self == PIDR08_A::_0
333    }
334    #[doc = "Checks if the value of the field is `_1`"]
335    #[inline(always)]
336    pub fn is_1(&self) -> bool {
337        *self == PIDR08_A::_1
338    }
339}
340#[doc = "Field `PIDR09` reader - Pmn State"]
341pub type PIDR09_R = crate::BitReader<PIDR09_A>;
342#[doc = "Pmn State\n\nValue on reset: 0"]
343#[derive(Clone, Copy, Debug, PartialEq, Eq)]
344pub enum PIDR09_A {
345    #[doc = "0: Low level"]
346    _0 = 0,
347    #[doc = "1: High level"]
348    _1 = 1,
349}
350impl From<PIDR09_A> for bool {
351    #[inline(always)]
352    fn from(variant: PIDR09_A) -> Self {
353        variant as u8 != 0
354    }
355}
356impl PIDR09_R {
357    #[doc = "Get enumerated values variant"]
358    #[inline(always)]
359    pub fn variant(&self) -> PIDR09_A {
360        match self.bits {
361            false => PIDR09_A::_0,
362            true => PIDR09_A::_1,
363        }
364    }
365    #[doc = "Checks if the value of the field is `_0`"]
366    #[inline(always)]
367    pub fn is_0(&self) -> bool {
368        *self == PIDR09_A::_0
369    }
370    #[doc = "Checks if the value of the field is `_1`"]
371    #[inline(always)]
372    pub fn is_1(&self) -> bool {
373        *self == PIDR09_A::_1
374    }
375}
376#[doc = "Field `PIDR10` reader - Pmn State"]
377pub type PIDR10_R = crate::BitReader<PIDR10_A>;
378#[doc = "Pmn State\n\nValue on reset: 0"]
379#[derive(Clone, Copy, Debug, PartialEq, Eq)]
380pub enum PIDR10_A {
381    #[doc = "0: Low level"]
382    _0 = 0,
383    #[doc = "1: High level"]
384    _1 = 1,
385}
386impl From<PIDR10_A> for bool {
387    #[inline(always)]
388    fn from(variant: PIDR10_A) -> Self {
389        variant as u8 != 0
390    }
391}
392impl PIDR10_R {
393    #[doc = "Get enumerated values variant"]
394    #[inline(always)]
395    pub fn variant(&self) -> PIDR10_A {
396        match self.bits {
397            false => PIDR10_A::_0,
398            true => PIDR10_A::_1,
399        }
400    }
401    #[doc = "Checks if the value of the field is `_0`"]
402    #[inline(always)]
403    pub fn is_0(&self) -> bool {
404        *self == PIDR10_A::_0
405    }
406    #[doc = "Checks if the value of the field is `_1`"]
407    #[inline(always)]
408    pub fn is_1(&self) -> bool {
409        *self == PIDR10_A::_1
410    }
411}
412#[doc = "Field `PIDR11` reader - Pmn State"]
413pub type PIDR11_R = crate::BitReader<PIDR11_A>;
414#[doc = "Pmn State\n\nValue on reset: 0"]
415#[derive(Clone, Copy, Debug, PartialEq, Eq)]
416pub enum PIDR11_A {
417    #[doc = "0: Low level"]
418    _0 = 0,
419    #[doc = "1: High level"]
420    _1 = 1,
421}
422impl From<PIDR11_A> for bool {
423    #[inline(always)]
424    fn from(variant: PIDR11_A) -> Self {
425        variant as u8 != 0
426    }
427}
428impl PIDR11_R {
429    #[doc = "Get enumerated values variant"]
430    #[inline(always)]
431    pub fn variant(&self) -> PIDR11_A {
432        match self.bits {
433            false => PIDR11_A::_0,
434            true => PIDR11_A::_1,
435        }
436    }
437    #[doc = "Checks if the value of the field is `_0`"]
438    #[inline(always)]
439    pub fn is_0(&self) -> bool {
440        *self == PIDR11_A::_0
441    }
442    #[doc = "Checks if the value of the field is `_1`"]
443    #[inline(always)]
444    pub fn is_1(&self) -> bool {
445        *self == PIDR11_A::_1
446    }
447}
448#[doc = "Field `PIDR12` reader - Pmn State"]
449pub type PIDR12_R = crate::BitReader<PIDR12_A>;
450#[doc = "Pmn State\n\nValue on reset: 0"]
451#[derive(Clone, Copy, Debug, PartialEq, Eq)]
452pub enum PIDR12_A {
453    #[doc = "0: Low level"]
454    _0 = 0,
455    #[doc = "1: High level"]
456    _1 = 1,
457}
458impl From<PIDR12_A> for bool {
459    #[inline(always)]
460    fn from(variant: PIDR12_A) -> Self {
461        variant as u8 != 0
462    }
463}
464impl PIDR12_R {
465    #[doc = "Get enumerated values variant"]
466    #[inline(always)]
467    pub fn variant(&self) -> PIDR12_A {
468        match self.bits {
469            false => PIDR12_A::_0,
470            true => PIDR12_A::_1,
471        }
472    }
473    #[doc = "Checks if the value of the field is `_0`"]
474    #[inline(always)]
475    pub fn is_0(&self) -> bool {
476        *self == PIDR12_A::_0
477    }
478    #[doc = "Checks if the value of the field is `_1`"]
479    #[inline(always)]
480    pub fn is_1(&self) -> bool {
481        *self == PIDR12_A::_1
482    }
483}
484#[doc = "Field `PIDR13` reader - Pmn State"]
485pub type PIDR13_R = crate::BitReader<PIDR13_A>;
486#[doc = "Pmn State\n\nValue on reset: 0"]
487#[derive(Clone, Copy, Debug, PartialEq, Eq)]
488pub enum PIDR13_A {
489    #[doc = "0: Low level"]
490    _0 = 0,
491    #[doc = "1: High level"]
492    _1 = 1,
493}
494impl From<PIDR13_A> for bool {
495    #[inline(always)]
496    fn from(variant: PIDR13_A) -> Self {
497        variant as u8 != 0
498    }
499}
500impl PIDR13_R {
501    #[doc = "Get enumerated values variant"]
502    #[inline(always)]
503    pub fn variant(&self) -> PIDR13_A {
504        match self.bits {
505            false => PIDR13_A::_0,
506            true => PIDR13_A::_1,
507        }
508    }
509    #[doc = "Checks if the value of the field is `_0`"]
510    #[inline(always)]
511    pub fn is_0(&self) -> bool {
512        *self == PIDR13_A::_0
513    }
514    #[doc = "Checks if the value of the field is `_1`"]
515    #[inline(always)]
516    pub fn is_1(&self) -> bool {
517        *self == PIDR13_A::_1
518    }
519}
520#[doc = "Field `PIDR14` reader - Pmn State"]
521pub type PIDR14_R = crate::BitReader<PIDR14_A>;
522#[doc = "Pmn State\n\nValue on reset: 0"]
523#[derive(Clone, Copy, Debug, PartialEq, Eq)]
524pub enum PIDR14_A {
525    #[doc = "0: Low level"]
526    _0 = 0,
527    #[doc = "1: High level"]
528    _1 = 1,
529}
530impl From<PIDR14_A> for bool {
531    #[inline(always)]
532    fn from(variant: PIDR14_A) -> Self {
533        variant as u8 != 0
534    }
535}
536impl PIDR14_R {
537    #[doc = "Get enumerated values variant"]
538    #[inline(always)]
539    pub fn variant(&self) -> PIDR14_A {
540        match self.bits {
541            false => PIDR14_A::_0,
542            true => PIDR14_A::_1,
543        }
544    }
545    #[doc = "Checks if the value of the field is `_0`"]
546    #[inline(always)]
547    pub fn is_0(&self) -> bool {
548        *self == PIDR14_A::_0
549    }
550    #[doc = "Checks if the value of the field is `_1`"]
551    #[inline(always)]
552    pub fn is_1(&self) -> bool {
553        *self == PIDR14_A::_1
554    }
555}
556#[doc = "Field `PIDR15` reader - Pmn State"]
557pub type PIDR15_R = crate::BitReader<PIDR15_A>;
558#[doc = "Pmn State\n\nValue on reset: 0"]
559#[derive(Clone, Copy, Debug, PartialEq, Eq)]
560pub enum PIDR15_A {
561    #[doc = "0: Low level"]
562    _0 = 0,
563    #[doc = "1: High level"]
564    _1 = 1,
565}
566impl From<PIDR15_A> for bool {
567    #[inline(always)]
568    fn from(variant: PIDR15_A) -> Self {
569        variant as u8 != 0
570    }
571}
572impl PIDR15_R {
573    #[doc = "Get enumerated values variant"]
574    #[inline(always)]
575    pub fn variant(&self) -> PIDR15_A {
576        match self.bits {
577            false => PIDR15_A::_0,
578            true => PIDR15_A::_1,
579        }
580    }
581    #[doc = "Checks if the value of the field is `_0`"]
582    #[inline(always)]
583    pub fn is_0(&self) -> bool {
584        *self == PIDR15_A::_0
585    }
586    #[doc = "Checks if the value of the field is `_1`"]
587    #[inline(always)]
588    pub fn is_1(&self) -> bool {
589        *self == PIDR15_A::_1
590    }
591}
592#[doc = "Field `EIDR00` reader - Port Event Input Data"]
593pub type EIDR00_R = crate::BitReader<EIDR00_A>;
594#[doc = "Port Event Input Data\n\nValue on reset: 0"]
595#[derive(Clone, Copy, Debug, PartialEq, Eq)]
596pub enum EIDR00_A {
597    #[doc = "0: Low input"]
598    _0 = 0,
599    #[doc = "1: High input"]
600    _1 = 1,
601}
602impl From<EIDR00_A> for bool {
603    #[inline(always)]
604    fn from(variant: EIDR00_A) -> Self {
605        variant as u8 != 0
606    }
607}
608impl EIDR00_R {
609    #[doc = "Get enumerated values variant"]
610    #[inline(always)]
611    pub fn variant(&self) -> EIDR00_A {
612        match self.bits {
613            false => EIDR00_A::_0,
614            true => EIDR00_A::_1,
615        }
616    }
617    #[doc = "Checks if the value of the field is `_0`"]
618    #[inline(always)]
619    pub fn is_0(&self) -> bool {
620        *self == EIDR00_A::_0
621    }
622    #[doc = "Checks if the value of the field is `_1`"]
623    #[inline(always)]
624    pub fn is_1(&self) -> bool {
625        *self == EIDR00_A::_1
626    }
627}
628#[doc = "Field `EIDR01` reader - Port Event Input Data"]
629pub type EIDR01_R = crate::BitReader<EIDR01_A>;
630#[doc = "Port Event Input Data\n\nValue on reset: 0"]
631#[derive(Clone, Copy, Debug, PartialEq, Eq)]
632pub enum EIDR01_A {
633    #[doc = "0: Low input"]
634    _0 = 0,
635    #[doc = "1: High input"]
636    _1 = 1,
637}
638impl From<EIDR01_A> for bool {
639    #[inline(always)]
640    fn from(variant: EIDR01_A) -> Self {
641        variant as u8 != 0
642    }
643}
644impl EIDR01_R {
645    #[doc = "Get enumerated values variant"]
646    #[inline(always)]
647    pub fn variant(&self) -> EIDR01_A {
648        match self.bits {
649            false => EIDR01_A::_0,
650            true => EIDR01_A::_1,
651        }
652    }
653    #[doc = "Checks if the value of the field is `_0`"]
654    #[inline(always)]
655    pub fn is_0(&self) -> bool {
656        *self == EIDR01_A::_0
657    }
658    #[doc = "Checks if the value of the field is `_1`"]
659    #[inline(always)]
660    pub fn is_1(&self) -> bool {
661        *self == EIDR01_A::_1
662    }
663}
664#[doc = "Field `EIDR02` reader - Port Event Input Data"]
665pub type EIDR02_R = crate::BitReader<EIDR02_A>;
666#[doc = "Port Event Input Data\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq, Eq)]
668pub enum EIDR02_A {
669    #[doc = "0: Low input"]
670    _0 = 0,
671    #[doc = "1: High input"]
672    _1 = 1,
673}
674impl From<EIDR02_A> for bool {
675    #[inline(always)]
676    fn from(variant: EIDR02_A) -> Self {
677        variant as u8 != 0
678    }
679}
680impl EIDR02_R {
681    #[doc = "Get enumerated values variant"]
682    #[inline(always)]
683    pub fn variant(&self) -> EIDR02_A {
684        match self.bits {
685            false => EIDR02_A::_0,
686            true => EIDR02_A::_1,
687        }
688    }
689    #[doc = "Checks if the value of the field is `_0`"]
690    #[inline(always)]
691    pub fn is_0(&self) -> bool {
692        *self == EIDR02_A::_0
693    }
694    #[doc = "Checks if the value of the field is `_1`"]
695    #[inline(always)]
696    pub fn is_1(&self) -> bool {
697        *self == EIDR02_A::_1
698    }
699}
700#[doc = "Field `EIDR03` reader - Port Event Input Data"]
701pub type EIDR03_R = crate::BitReader<EIDR03_A>;
702#[doc = "Port Event Input Data\n\nValue on reset: 0"]
703#[derive(Clone, Copy, Debug, PartialEq, Eq)]
704pub enum EIDR03_A {
705    #[doc = "0: Low input"]
706    _0 = 0,
707    #[doc = "1: High input"]
708    _1 = 1,
709}
710impl From<EIDR03_A> for bool {
711    #[inline(always)]
712    fn from(variant: EIDR03_A) -> Self {
713        variant as u8 != 0
714    }
715}
716impl EIDR03_R {
717    #[doc = "Get enumerated values variant"]
718    #[inline(always)]
719    pub fn variant(&self) -> EIDR03_A {
720        match self.bits {
721            false => EIDR03_A::_0,
722            true => EIDR03_A::_1,
723        }
724    }
725    #[doc = "Checks if the value of the field is `_0`"]
726    #[inline(always)]
727    pub fn is_0(&self) -> bool {
728        *self == EIDR03_A::_0
729    }
730    #[doc = "Checks if the value of the field is `_1`"]
731    #[inline(always)]
732    pub fn is_1(&self) -> bool {
733        *self == EIDR03_A::_1
734    }
735}
736#[doc = "Field `EIDR04` reader - Port Event Input Data"]
737pub type EIDR04_R = crate::BitReader<EIDR04_A>;
738#[doc = "Port Event Input Data\n\nValue on reset: 0"]
739#[derive(Clone, Copy, Debug, PartialEq, Eq)]
740pub enum EIDR04_A {
741    #[doc = "0: Low input"]
742    _0 = 0,
743    #[doc = "1: High input"]
744    _1 = 1,
745}
746impl From<EIDR04_A> for bool {
747    #[inline(always)]
748    fn from(variant: EIDR04_A) -> Self {
749        variant as u8 != 0
750    }
751}
752impl EIDR04_R {
753    #[doc = "Get enumerated values variant"]
754    #[inline(always)]
755    pub fn variant(&self) -> EIDR04_A {
756        match self.bits {
757            false => EIDR04_A::_0,
758            true => EIDR04_A::_1,
759        }
760    }
761    #[doc = "Checks if the value of the field is `_0`"]
762    #[inline(always)]
763    pub fn is_0(&self) -> bool {
764        *self == EIDR04_A::_0
765    }
766    #[doc = "Checks if the value of the field is `_1`"]
767    #[inline(always)]
768    pub fn is_1(&self) -> bool {
769        *self == EIDR04_A::_1
770    }
771}
772#[doc = "Field `EIDR05` reader - Port Event Input Data"]
773pub type EIDR05_R = crate::BitReader<EIDR05_A>;
774#[doc = "Port Event Input Data\n\nValue on reset: 0"]
775#[derive(Clone, Copy, Debug, PartialEq, Eq)]
776pub enum EIDR05_A {
777    #[doc = "0: Low input"]
778    _0 = 0,
779    #[doc = "1: High input"]
780    _1 = 1,
781}
782impl From<EIDR05_A> for bool {
783    #[inline(always)]
784    fn from(variant: EIDR05_A) -> Self {
785        variant as u8 != 0
786    }
787}
788impl EIDR05_R {
789    #[doc = "Get enumerated values variant"]
790    #[inline(always)]
791    pub fn variant(&self) -> EIDR05_A {
792        match self.bits {
793            false => EIDR05_A::_0,
794            true => EIDR05_A::_1,
795        }
796    }
797    #[doc = "Checks if the value of the field is `_0`"]
798    #[inline(always)]
799    pub fn is_0(&self) -> bool {
800        *self == EIDR05_A::_0
801    }
802    #[doc = "Checks if the value of the field is `_1`"]
803    #[inline(always)]
804    pub fn is_1(&self) -> bool {
805        *self == EIDR05_A::_1
806    }
807}
808#[doc = "Field `EIDR06` reader - Port Event Input Data"]
809pub type EIDR06_R = crate::BitReader<EIDR06_A>;
810#[doc = "Port Event Input Data\n\nValue on reset: 0"]
811#[derive(Clone, Copy, Debug, PartialEq, Eq)]
812pub enum EIDR06_A {
813    #[doc = "0: Low input"]
814    _0 = 0,
815    #[doc = "1: High input"]
816    _1 = 1,
817}
818impl From<EIDR06_A> for bool {
819    #[inline(always)]
820    fn from(variant: EIDR06_A) -> Self {
821        variant as u8 != 0
822    }
823}
824impl EIDR06_R {
825    #[doc = "Get enumerated values variant"]
826    #[inline(always)]
827    pub fn variant(&self) -> EIDR06_A {
828        match self.bits {
829            false => EIDR06_A::_0,
830            true => EIDR06_A::_1,
831        }
832    }
833    #[doc = "Checks if the value of the field is `_0`"]
834    #[inline(always)]
835    pub fn is_0(&self) -> bool {
836        *self == EIDR06_A::_0
837    }
838    #[doc = "Checks if the value of the field is `_1`"]
839    #[inline(always)]
840    pub fn is_1(&self) -> bool {
841        *self == EIDR06_A::_1
842    }
843}
844#[doc = "Field `EIDR07` reader - Port Event Input Data"]
845pub type EIDR07_R = crate::BitReader<EIDR07_A>;
846#[doc = "Port Event Input Data\n\nValue on reset: 0"]
847#[derive(Clone, Copy, Debug, PartialEq, Eq)]
848pub enum EIDR07_A {
849    #[doc = "0: Low input"]
850    _0 = 0,
851    #[doc = "1: High input"]
852    _1 = 1,
853}
854impl From<EIDR07_A> for bool {
855    #[inline(always)]
856    fn from(variant: EIDR07_A) -> Self {
857        variant as u8 != 0
858    }
859}
860impl EIDR07_R {
861    #[doc = "Get enumerated values variant"]
862    #[inline(always)]
863    pub fn variant(&self) -> EIDR07_A {
864        match self.bits {
865            false => EIDR07_A::_0,
866            true => EIDR07_A::_1,
867        }
868    }
869    #[doc = "Checks if the value of the field is `_0`"]
870    #[inline(always)]
871    pub fn is_0(&self) -> bool {
872        *self == EIDR07_A::_0
873    }
874    #[doc = "Checks if the value of the field is `_1`"]
875    #[inline(always)]
876    pub fn is_1(&self) -> bool {
877        *self == EIDR07_A::_1
878    }
879}
880#[doc = "Field `EIDR08` reader - Port Event Input Data"]
881pub type EIDR08_R = crate::BitReader<EIDR08_A>;
882#[doc = "Port Event Input Data\n\nValue on reset: 0"]
883#[derive(Clone, Copy, Debug, PartialEq, Eq)]
884pub enum EIDR08_A {
885    #[doc = "0: Low input"]
886    _0 = 0,
887    #[doc = "1: High input"]
888    _1 = 1,
889}
890impl From<EIDR08_A> for bool {
891    #[inline(always)]
892    fn from(variant: EIDR08_A) -> Self {
893        variant as u8 != 0
894    }
895}
896impl EIDR08_R {
897    #[doc = "Get enumerated values variant"]
898    #[inline(always)]
899    pub fn variant(&self) -> EIDR08_A {
900        match self.bits {
901            false => EIDR08_A::_0,
902            true => EIDR08_A::_1,
903        }
904    }
905    #[doc = "Checks if the value of the field is `_0`"]
906    #[inline(always)]
907    pub fn is_0(&self) -> bool {
908        *self == EIDR08_A::_0
909    }
910    #[doc = "Checks if the value of the field is `_1`"]
911    #[inline(always)]
912    pub fn is_1(&self) -> bool {
913        *self == EIDR08_A::_1
914    }
915}
916#[doc = "Field `EIDR09` reader - Port Event Input Data"]
917pub type EIDR09_R = crate::BitReader<EIDR09_A>;
918#[doc = "Port Event Input Data\n\nValue on reset: 0"]
919#[derive(Clone, Copy, Debug, PartialEq, Eq)]
920pub enum EIDR09_A {
921    #[doc = "0: Low input"]
922    _0 = 0,
923    #[doc = "1: High input"]
924    _1 = 1,
925}
926impl From<EIDR09_A> for bool {
927    #[inline(always)]
928    fn from(variant: EIDR09_A) -> Self {
929        variant as u8 != 0
930    }
931}
932impl EIDR09_R {
933    #[doc = "Get enumerated values variant"]
934    #[inline(always)]
935    pub fn variant(&self) -> EIDR09_A {
936        match self.bits {
937            false => EIDR09_A::_0,
938            true => EIDR09_A::_1,
939        }
940    }
941    #[doc = "Checks if the value of the field is `_0`"]
942    #[inline(always)]
943    pub fn is_0(&self) -> bool {
944        *self == EIDR09_A::_0
945    }
946    #[doc = "Checks if the value of the field is `_1`"]
947    #[inline(always)]
948    pub fn is_1(&self) -> bool {
949        *self == EIDR09_A::_1
950    }
951}
952#[doc = "Field `EIDR10` reader - Port Event Input Data"]
953pub type EIDR10_R = crate::BitReader<EIDR10_A>;
954#[doc = "Port Event Input Data\n\nValue on reset: 0"]
955#[derive(Clone, Copy, Debug, PartialEq, Eq)]
956pub enum EIDR10_A {
957    #[doc = "0: Low input"]
958    _0 = 0,
959    #[doc = "1: High input"]
960    _1 = 1,
961}
962impl From<EIDR10_A> for bool {
963    #[inline(always)]
964    fn from(variant: EIDR10_A) -> Self {
965        variant as u8 != 0
966    }
967}
968impl EIDR10_R {
969    #[doc = "Get enumerated values variant"]
970    #[inline(always)]
971    pub fn variant(&self) -> EIDR10_A {
972        match self.bits {
973            false => EIDR10_A::_0,
974            true => EIDR10_A::_1,
975        }
976    }
977    #[doc = "Checks if the value of the field is `_0`"]
978    #[inline(always)]
979    pub fn is_0(&self) -> bool {
980        *self == EIDR10_A::_0
981    }
982    #[doc = "Checks if the value of the field is `_1`"]
983    #[inline(always)]
984    pub fn is_1(&self) -> bool {
985        *self == EIDR10_A::_1
986    }
987}
988#[doc = "Field `EIDR11` reader - Port Event Input Data"]
989pub type EIDR11_R = crate::BitReader<EIDR11_A>;
990#[doc = "Port Event Input Data\n\nValue on reset: 0"]
991#[derive(Clone, Copy, Debug, PartialEq, Eq)]
992pub enum EIDR11_A {
993    #[doc = "0: Low input"]
994    _0 = 0,
995    #[doc = "1: High input"]
996    _1 = 1,
997}
998impl From<EIDR11_A> for bool {
999    #[inline(always)]
1000    fn from(variant: EIDR11_A) -> Self {
1001        variant as u8 != 0
1002    }
1003}
1004impl EIDR11_R {
1005    #[doc = "Get enumerated values variant"]
1006    #[inline(always)]
1007    pub fn variant(&self) -> EIDR11_A {
1008        match self.bits {
1009            false => EIDR11_A::_0,
1010            true => EIDR11_A::_1,
1011        }
1012    }
1013    #[doc = "Checks if the value of the field is `_0`"]
1014    #[inline(always)]
1015    pub fn is_0(&self) -> bool {
1016        *self == EIDR11_A::_0
1017    }
1018    #[doc = "Checks if the value of the field is `_1`"]
1019    #[inline(always)]
1020    pub fn is_1(&self) -> bool {
1021        *self == EIDR11_A::_1
1022    }
1023}
1024#[doc = "Field `EIDR12` reader - Port Event Input Data"]
1025pub type EIDR12_R = crate::BitReader<EIDR12_A>;
1026#[doc = "Port Event Input Data\n\nValue on reset: 0"]
1027#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1028pub enum EIDR12_A {
1029    #[doc = "0: Low input"]
1030    _0 = 0,
1031    #[doc = "1: High input"]
1032    _1 = 1,
1033}
1034impl From<EIDR12_A> for bool {
1035    #[inline(always)]
1036    fn from(variant: EIDR12_A) -> Self {
1037        variant as u8 != 0
1038    }
1039}
1040impl EIDR12_R {
1041    #[doc = "Get enumerated values variant"]
1042    #[inline(always)]
1043    pub fn variant(&self) -> EIDR12_A {
1044        match self.bits {
1045            false => EIDR12_A::_0,
1046            true => EIDR12_A::_1,
1047        }
1048    }
1049    #[doc = "Checks if the value of the field is `_0`"]
1050    #[inline(always)]
1051    pub fn is_0(&self) -> bool {
1052        *self == EIDR12_A::_0
1053    }
1054    #[doc = "Checks if the value of the field is `_1`"]
1055    #[inline(always)]
1056    pub fn is_1(&self) -> bool {
1057        *self == EIDR12_A::_1
1058    }
1059}
1060#[doc = "Field `EIDR13` reader - Port Event Input Data"]
1061pub type EIDR13_R = crate::BitReader<EIDR13_A>;
1062#[doc = "Port Event Input Data\n\nValue on reset: 0"]
1063#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1064pub enum EIDR13_A {
1065    #[doc = "0: Low input"]
1066    _0 = 0,
1067    #[doc = "1: High input"]
1068    _1 = 1,
1069}
1070impl From<EIDR13_A> for bool {
1071    #[inline(always)]
1072    fn from(variant: EIDR13_A) -> Self {
1073        variant as u8 != 0
1074    }
1075}
1076impl EIDR13_R {
1077    #[doc = "Get enumerated values variant"]
1078    #[inline(always)]
1079    pub fn variant(&self) -> EIDR13_A {
1080        match self.bits {
1081            false => EIDR13_A::_0,
1082            true => EIDR13_A::_1,
1083        }
1084    }
1085    #[doc = "Checks if the value of the field is `_0`"]
1086    #[inline(always)]
1087    pub fn is_0(&self) -> bool {
1088        *self == EIDR13_A::_0
1089    }
1090    #[doc = "Checks if the value of the field is `_1`"]
1091    #[inline(always)]
1092    pub fn is_1(&self) -> bool {
1093        *self == EIDR13_A::_1
1094    }
1095}
1096#[doc = "Field `EIDR14` reader - Port Event Input Data"]
1097pub type EIDR14_R = crate::BitReader<EIDR14_A>;
1098#[doc = "Port Event Input Data\n\nValue on reset: 0"]
1099#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1100pub enum EIDR14_A {
1101    #[doc = "0: Low input"]
1102    _0 = 0,
1103    #[doc = "1: High input"]
1104    _1 = 1,
1105}
1106impl From<EIDR14_A> for bool {
1107    #[inline(always)]
1108    fn from(variant: EIDR14_A) -> Self {
1109        variant as u8 != 0
1110    }
1111}
1112impl EIDR14_R {
1113    #[doc = "Get enumerated values variant"]
1114    #[inline(always)]
1115    pub fn variant(&self) -> EIDR14_A {
1116        match self.bits {
1117            false => EIDR14_A::_0,
1118            true => EIDR14_A::_1,
1119        }
1120    }
1121    #[doc = "Checks if the value of the field is `_0`"]
1122    #[inline(always)]
1123    pub fn is_0(&self) -> bool {
1124        *self == EIDR14_A::_0
1125    }
1126    #[doc = "Checks if the value of the field is `_1`"]
1127    #[inline(always)]
1128    pub fn is_1(&self) -> bool {
1129        *self == EIDR14_A::_1
1130    }
1131}
1132#[doc = "Field `EIDR15` reader - Port Event Input Data"]
1133pub type EIDR15_R = crate::BitReader<EIDR15_A>;
1134#[doc = "Port Event Input Data\n\nValue on reset: 0"]
1135#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1136pub enum EIDR15_A {
1137    #[doc = "0: Low input"]
1138    _0 = 0,
1139    #[doc = "1: High input"]
1140    _1 = 1,
1141}
1142impl From<EIDR15_A> for bool {
1143    #[inline(always)]
1144    fn from(variant: EIDR15_A) -> Self {
1145        variant as u8 != 0
1146    }
1147}
1148impl EIDR15_R {
1149    #[doc = "Get enumerated values variant"]
1150    #[inline(always)]
1151    pub fn variant(&self) -> EIDR15_A {
1152        match self.bits {
1153            false => EIDR15_A::_0,
1154            true => EIDR15_A::_1,
1155        }
1156    }
1157    #[doc = "Checks if the value of the field is `_0`"]
1158    #[inline(always)]
1159    pub fn is_0(&self) -> bool {
1160        *self == EIDR15_A::_0
1161    }
1162    #[doc = "Checks if the value of the field is `_1`"]
1163    #[inline(always)]
1164    pub fn is_1(&self) -> bool {
1165        *self == EIDR15_A::_1
1166    }
1167}
1168impl R {
1169    #[doc = "Bit 0 - Pmn State"]
1170    #[inline(always)]
1171    pub fn pidr00(&self) -> PIDR00_R {
1172        PIDR00_R::new((self.bits & 1) != 0)
1173    }
1174    #[doc = "Bit 1 - Pmn State"]
1175    #[inline(always)]
1176    pub fn pidr01(&self) -> PIDR01_R {
1177        PIDR01_R::new(((self.bits >> 1) & 1) != 0)
1178    }
1179    #[doc = "Bit 2 - Pmn State"]
1180    #[inline(always)]
1181    pub fn pidr02(&self) -> PIDR02_R {
1182        PIDR02_R::new(((self.bits >> 2) & 1) != 0)
1183    }
1184    #[doc = "Bit 3 - Pmn State"]
1185    #[inline(always)]
1186    pub fn pidr03(&self) -> PIDR03_R {
1187        PIDR03_R::new(((self.bits >> 3) & 1) != 0)
1188    }
1189    #[doc = "Bit 4 - Pmn State"]
1190    #[inline(always)]
1191    pub fn pidr04(&self) -> PIDR04_R {
1192        PIDR04_R::new(((self.bits >> 4) & 1) != 0)
1193    }
1194    #[doc = "Bit 5 - Pmn State"]
1195    #[inline(always)]
1196    pub fn pidr05(&self) -> PIDR05_R {
1197        PIDR05_R::new(((self.bits >> 5) & 1) != 0)
1198    }
1199    #[doc = "Bit 6 - Pmn State"]
1200    #[inline(always)]
1201    pub fn pidr06(&self) -> PIDR06_R {
1202        PIDR06_R::new(((self.bits >> 6) & 1) != 0)
1203    }
1204    #[doc = "Bit 7 - Pmn State"]
1205    #[inline(always)]
1206    pub fn pidr07(&self) -> PIDR07_R {
1207        PIDR07_R::new(((self.bits >> 7) & 1) != 0)
1208    }
1209    #[doc = "Bit 8 - Pmn State"]
1210    #[inline(always)]
1211    pub fn pidr08(&self) -> PIDR08_R {
1212        PIDR08_R::new(((self.bits >> 8) & 1) != 0)
1213    }
1214    #[doc = "Bit 9 - Pmn State"]
1215    #[inline(always)]
1216    pub fn pidr09(&self) -> PIDR09_R {
1217        PIDR09_R::new(((self.bits >> 9) & 1) != 0)
1218    }
1219    #[doc = "Bit 10 - Pmn State"]
1220    #[inline(always)]
1221    pub fn pidr10(&self) -> PIDR10_R {
1222        PIDR10_R::new(((self.bits >> 10) & 1) != 0)
1223    }
1224    #[doc = "Bit 11 - Pmn State"]
1225    #[inline(always)]
1226    pub fn pidr11(&self) -> PIDR11_R {
1227        PIDR11_R::new(((self.bits >> 11) & 1) != 0)
1228    }
1229    #[doc = "Bit 12 - Pmn State"]
1230    #[inline(always)]
1231    pub fn pidr12(&self) -> PIDR12_R {
1232        PIDR12_R::new(((self.bits >> 12) & 1) != 0)
1233    }
1234    #[doc = "Bit 13 - Pmn State"]
1235    #[inline(always)]
1236    pub fn pidr13(&self) -> PIDR13_R {
1237        PIDR13_R::new(((self.bits >> 13) & 1) != 0)
1238    }
1239    #[doc = "Bit 14 - Pmn State"]
1240    #[inline(always)]
1241    pub fn pidr14(&self) -> PIDR14_R {
1242        PIDR14_R::new(((self.bits >> 14) & 1) != 0)
1243    }
1244    #[doc = "Bit 15 - Pmn State"]
1245    #[inline(always)]
1246    pub fn pidr15(&self) -> PIDR15_R {
1247        PIDR15_R::new(((self.bits >> 15) & 1) != 0)
1248    }
1249    #[doc = "Bit 16 - Port Event Input Data"]
1250    #[inline(always)]
1251    pub fn eidr00(&self) -> EIDR00_R {
1252        EIDR00_R::new(((self.bits >> 16) & 1) != 0)
1253    }
1254    #[doc = "Bit 17 - Port Event Input Data"]
1255    #[inline(always)]
1256    pub fn eidr01(&self) -> EIDR01_R {
1257        EIDR01_R::new(((self.bits >> 17) & 1) != 0)
1258    }
1259    #[doc = "Bit 18 - Port Event Input Data"]
1260    #[inline(always)]
1261    pub fn eidr02(&self) -> EIDR02_R {
1262        EIDR02_R::new(((self.bits >> 18) & 1) != 0)
1263    }
1264    #[doc = "Bit 19 - Port Event Input Data"]
1265    #[inline(always)]
1266    pub fn eidr03(&self) -> EIDR03_R {
1267        EIDR03_R::new(((self.bits >> 19) & 1) != 0)
1268    }
1269    #[doc = "Bit 20 - Port Event Input Data"]
1270    #[inline(always)]
1271    pub fn eidr04(&self) -> EIDR04_R {
1272        EIDR04_R::new(((self.bits >> 20) & 1) != 0)
1273    }
1274    #[doc = "Bit 21 - Port Event Input Data"]
1275    #[inline(always)]
1276    pub fn eidr05(&self) -> EIDR05_R {
1277        EIDR05_R::new(((self.bits >> 21) & 1) != 0)
1278    }
1279    #[doc = "Bit 22 - Port Event Input Data"]
1280    #[inline(always)]
1281    pub fn eidr06(&self) -> EIDR06_R {
1282        EIDR06_R::new(((self.bits >> 22) & 1) != 0)
1283    }
1284    #[doc = "Bit 23 - Port Event Input Data"]
1285    #[inline(always)]
1286    pub fn eidr07(&self) -> EIDR07_R {
1287        EIDR07_R::new(((self.bits >> 23) & 1) != 0)
1288    }
1289    #[doc = "Bit 24 - Port Event Input Data"]
1290    #[inline(always)]
1291    pub fn eidr08(&self) -> EIDR08_R {
1292        EIDR08_R::new(((self.bits >> 24) & 1) != 0)
1293    }
1294    #[doc = "Bit 25 - Port Event Input Data"]
1295    #[inline(always)]
1296    pub fn eidr09(&self) -> EIDR09_R {
1297        EIDR09_R::new(((self.bits >> 25) & 1) != 0)
1298    }
1299    #[doc = "Bit 26 - Port Event Input Data"]
1300    #[inline(always)]
1301    pub fn eidr10(&self) -> EIDR10_R {
1302        EIDR10_R::new(((self.bits >> 26) & 1) != 0)
1303    }
1304    #[doc = "Bit 27 - Port Event Input Data"]
1305    #[inline(always)]
1306    pub fn eidr11(&self) -> EIDR11_R {
1307        EIDR11_R::new(((self.bits >> 27) & 1) != 0)
1308    }
1309    #[doc = "Bit 28 - Port Event Input Data"]
1310    #[inline(always)]
1311    pub fn eidr12(&self) -> EIDR12_R {
1312        EIDR12_R::new(((self.bits >> 28) & 1) != 0)
1313    }
1314    #[doc = "Bit 29 - Port Event Input Data"]
1315    #[inline(always)]
1316    pub fn eidr13(&self) -> EIDR13_R {
1317        EIDR13_R::new(((self.bits >> 29) & 1) != 0)
1318    }
1319    #[doc = "Bit 30 - Port Event Input Data"]
1320    #[inline(always)]
1321    pub fn eidr14(&self) -> EIDR14_R {
1322        EIDR14_R::new(((self.bits >> 30) & 1) != 0)
1323    }
1324    #[doc = "Bit 31 - Port Event Input Data"]
1325    #[inline(always)]
1326    pub fn eidr15(&self) -> EIDR15_R {
1327        EIDR15_R::new(((self.bits >> 31) & 1) != 0)
1328    }
1329}
1330#[doc = "Port Control Register 2\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pcntr2](index.html) module"]
1331pub struct PCNTR2_SPEC;
1332impl crate::RegisterSpec for PCNTR2_SPEC {
1333    type Ux = u32;
1334}
1335#[doc = "`read()` method returns [pcntr2::R](R) reader structure"]
1336impl crate::Readable for PCNTR2_SPEC {
1337    type Reader = R;
1338}
1339#[doc = "`reset()` method sets PCNTR2 to value 0"]
1340impl crate::Resettable for PCNTR2_SPEC {
1341    const RESET_VALUE: Self::Ux = 0;
1342}