ra6t2/portc/
pcntr3.rs

1#[doc = "Register `PCNTR3` writer"]
2pub struct W(crate::W<PCNTR3_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<PCNTR3_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<PCNTR3_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<PCNTR3_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Pmn Output Set\n\nValue on reset: 0"]
23#[derive(Clone, Copy, Debug, PartialEq, Eq)]
24pub enum POSR00_AW {
25    #[doc = "0: No effect on output"]
26    _0 = 0,
27    #[doc = "1: High output"]
28    _1 = 1,
29}
30impl From<POSR00_AW> for bool {
31    #[inline(always)]
32    fn from(variant: POSR00_AW) -> Self {
33        variant as u8 != 0
34    }
35}
36#[doc = "Field `POSR00` writer - Pmn Output Set"]
37pub type POSR00_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR00_AW, O>;
38impl<'a, const O: u8> POSR00_W<'a, O> {
39    #[doc = "No effect on output"]
40    #[inline(always)]
41    pub fn _0(self) -> &'a mut W {
42        self.variant(POSR00_AW::_0)
43    }
44    #[doc = "High output"]
45    #[inline(always)]
46    pub fn _1(self) -> &'a mut W {
47        self.variant(POSR00_AW::_1)
48    }
49}
50#[doc = "Pmn Output Set\n\nValue on reset: 0"]
51#[derive(Clone, Copy, Debug, PartialEq, Eq)]
52pub enum POSR01_AW {
53    #[doc = "0: No effect on output"]
54    _0 = 0,
55    #[doc = "1: High output"]
56    _1 = 1,
57}
58impl From<POSR01_AW> for bool {
59    #[inline(always)]
60    fn from(variant: POSR01_AW) -> Self {
61        variant as u8 != 0
62    }
63}
64#[doc = "Field `POSR01` writer - Pmn Output Set"]
65pub type POSR01_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR01_AW, O>;
66impl<'a, const O: u8> POSR01_W<'a, O> {
67    #[doc = "No effect on output"]
68    #[inline(always)]
69    pub fn _0(self) -> &'a mut W {
70        self.variant(POSR01_AW::_0)
71    }
72    #[doc = "High output"]
73    #[inline(always)]
74    pub fn _1(self) -> &'a mut W {
75        self.variant(POSR01_AW::_1)
76    }
77}
78#[doc = "Pmn Output Set\n\nValue on reset: 0"]
79#[derive(Clone, Copy, Debug, PartialEq, Eq)]
80pub enum POSR02_AW {
81    #[doc = "0: No effect on output"]
82    _0 = 0,
83    #[doc = "1: High output"]
84    _1 = 1,
85}
86impl From<POSR02_AW> for bool {
87    #[inline(always)]
88    fn from(variant: POSR02_AW) -> Self {
89        variant as u8 != 0
90    }
91}
92#[doc = "Field `POSR02` writer - Pmn Output Set"]
93pub type POSR02_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR02_AW, O>;
94impl<'a, const O: u8> POSR02_W<'a, O> {
95    #[doc = "No effect on output"]
96    #[inline(always)]
97    pub fn _0(self) -> &'a mut W {
98        self.variant(POSR02_AW::_0)
99    }
100    #[doc = "High output"]
101    #[inline(always)]
102    pub fn _1(self) -> &'a mut W {
103        self.variant(POSR02_AW::_1)
104    }
105}
106#[doc = "Pmn Output Set\n\nValue on reset: 0"]
107#[derive(Clone, Copy, Debug, PartialEq, Eq)]
108pub enum POSR03_AW {
109    #[doc = "0: No effect on output"]
110    _0 = 0,
111    #[doc = "1: High output"]
112    _1 = 1,
113}
114impl From<POSR03_AW> for bool {
115    #[inline(always)]
116    fn from(variant: POSR03_AW) -> Self {
117        variant as u8 != 0
118    }
119}
120#[doc = "Field `POSR03` writer - Pmn Output Set"]
121pub type POSR03_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR03_AW, O>;
122impl<'a, const O: u8> POSR03_W<'a, O> {
123    #[doc = "No effect on output"]
124    #[inline(always)]
125    pub fn _0(self) -> &'a mut W {
126        self.variant(POSR03_AW::_0)
127    }
128    #[doc = "High output"]
129    #[inline(always)]
130    pub fn _1(self) -> &'a mut W {
131        self.variant(POSR03_AW::_1)
132    }
133}
134#[doc = "Pmn Output Set\n\nValue on reset: 0"]
135#[derive(Clone, Copy, Debug, PartialEq, Eq)]
136pub enum POSR04_AW {
137    #[doc = "0: No effect on output"]
138    _0 = 0,
139    #[doc = "1: High output"]
140    _1 = 1,
141}
142impl From<POSR04_AW> for bool {
143    #[inline(always)]
144    fn from(variant: POSR04_AW) -> Self {
145        variant as u8 != 0
146    }
147}
148#[doc = "Field `POSR04` writer - Pmn Output Set"]
149pub type POSR04_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR04_AW, O>;
150impl<'a, const O: u8> POSR04_W<'a, O> {
151    #[doc = "No effect on output"]
152    #[inline(always)]
153    pub fn _0(self) -> &'a mut W {
154        self.variant(POSR04_AW::_0)
155    }
156    #[doc = "High output"]
157    #[inline(always)]
158    pub fn _1(self) -> &'a mut W {
159        self.variant(POSR04_AW::_1)
160    }
161}
162#[doc = "Pmn Output Set\n\nValue on reset: 0"]
163#[derive(Clone, Copy, Debug, PartialEq, Eq)]
164pub enum POSR05_AW {
165    #[doc = "0: No effect on output"]
166    _0 = 0,
167    #[doc = "1: High output"]
168    _1 = 1,
169}
170impl From<POSR05_AW> for bool {
171    #[inline(always)]
172    fn from(variant: POSR05_AW) -> Self {
173        variant as u8 != 0
174    }
175}
176#[doc = "Field `POSR05` writer - Pmn Output Set"]
177pub type POSR05_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR05_AW, O>;
178impl<'a, const O: u8> POSR05_W<'a, O> {
179    #[doc = "No effect on output"]
180    #[inline(always)]
181    pub fn _0(self) -> &'a mut W {
182        self.variant(POSR05_AW::_0)
183    }
184    #[doc = "High output"]
185    #[inline(always)]
186    pub fn _1(self) -> &'a mut W {
187        self.variant(POSR05_AW::_1)
188    }
189}
190#[doc = "Pmn Output Set\n\nValue on reset: 0"]
191#[derive(Clone, Copy, Debug, PartialEq, Eq)]
192pub enum POSR06_AW {
193    #[doc = "0: No effect on output"]
194    _0 = 0,
195    #[doc = "1: High output"]
196    _1 = 1,
197}
198impl From<POSR06_AW> for bool {
199    #[inline(always)]
200    fn from(variant: POSR06_AW) -> Self {
201        variant as u8 != 0
202    }
203}
204#[doc = "Field `POSR06` writer - Pmn Output Set"]
205pub type POSR06_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR06_AW, O>;
206impl<'a, const O: u8> POSR06_W<'a, O> {
207    #[doc = "No effect on output"]
208    #[inline(always)]
209    pub fn _0(self) -> &'a mut W {
210        self.variant(POSR06_AW::_0)
211    }
212    #[doc = "High output"]
213    #[inline(always)]
214    pub fn _1(self) -> &'a mut W {
215        self.variant(POSR06_AW::_1)
216    }
217}
218#[doc = "Pmn Output Set\n\nValue on reset: 0"]
219#[derive(Clone, Copy, Debug, PartialEq, Eq)]
220pub enum POSR07_AW {
221    #[doc = "0: No effect on output"]
222    _0 = 0,
223    #[doc = "1: High output"]
224    _1 = 1,
225}
226impl From<POSR07_AW> for bool {
227    #[inline(always)]
228    fn from(variant: POSR07_AW) -> Self {
229        variant as u8 != 0
230    }
231}
232#[doc = "Field `POSR07` writer - Pmn Output Set"]
233pub type POSR07_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR07_AW, O>;
234impl<'a, const O: u8> POSR07_W<'a, O> {
235    #[doc = "No effect on output"]
236    #[inline(always)]
237    pub fn _0(self) -> &'a mut W {
238        self.variant(POSR07_AW::_0)
239    }
240    #[doc = "High output"]
241    #[inline(always)]
242    pub fn _1(self) -> &'a mut W {
243        self.variant(POSR07_AW::_1)
244    }
245}
246#[doc = "Pmn Output Set\n\nValue on reset: 0"]
247#[derive(Clone, Copy, Debug, PartialEq, Eq)]
248pub enum POSR08_AW {
249    #[doc = "0: No effect on output"]
250    _0 = 0,
251    #[doc = "1: High output"]
252    _1 = 1,
253}
254impl From<POSR08_AW> for bool {
255    #[inline(always)]
256    fn from(variant: POSR08_AW) -> Self {
257        variant as u8 != 0
258    }
259}
260#[doc = "Field `POSR08` writer - Pmn Output Set"]
261pub type POSR08_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR08_AW, O>;
262impl<'a, const O: u8> POSR08_W<'a, O> {
263    #[doc = "No effect on output"]
264    #[inline(always)]
265    pub fn _0(self) -> &'a mut W {
266        self.variant(POSR08_AW::_0)
267    }
268    #[doc = "High output"]
269    #[inline(always)]
270    pub fn _1(self) -> &'a mut W {
271        self.variant(POSR08_AW::_1)
272    }
273}
274#[doc = "Pmn Output Set\n\nValue on reset: 0"]
275#[derive(Clone, Copy, Debug, PartialEq, Eq)]
276pub enum POSR09_AW {
277    #[doc = "0: No effect on output"]
278    _0 = 0,
279    #[doc = "1: High output"]
280    _1 = 1,
281}
282impl From<POSR09_AW> for bool {
283    #[inline(always)]
284    fn from(variant: POSR09_AW) -> Self {
285        variant as u8 != 0
286    }
287}
288#[doc = "Field `POSR09` writer - Pmn Output Set"]
289pub type POSR09_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR09_AW, O>;
290impl<'a, const O: u8> POSR09_W<'a, O> {
291    #[doc = "No effect on output"]
292    #[inline(always)]
293    pub fn _0(self) -> &'a mut W {
294        self.variant(POSR09_AW::_0)
295    }
296    #[doc = "High output"]
297    #[inline(always)]
298    pub fn _1(self) -> &'a mut W {
299        self.variant(POSR09_AW::_1)
300    }
301}
302#[doc = "Pmn Output Set\n\nValue on reset: 0"]
303#[derive(Clone, Copy, Debug, PartialEq, Eq)]
304pub enum POSR10_AW {
305    #[doc = "0: No effect on output"]
306    _0 = 0,
307    #[doc = "1: High output"]
308    _1 = 1,
309}
310impl From<POSR10_AW> for bool {
311    #[inline(always)]
312    fn from(variant: POSR10_AW) -> Self {
313        variant as u8 != 0
314    }
315}
316#[doc = "Field `POSR10` writer - Pmn Output Set"]
317pub type POSR10_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR10_AW, O>;
318impl<'a, const O: u8> POSR10_W<'a, O> {
319    #[doc = "No effect on output"]
320    #[inline(always)]
321    pub fn _0(self) -> &'a mut W {
322        self.variant(POSR10_AW::_0)
323    }
324    #[doc = "High output"]
325    #[inline(always)]
326    pub fn _1(self) -> &'a mut W {
327        self.variant(POSR10_AW::_1)
328    }
329}
330#[doc = "Pmn Output Set\n\nValue on reset: 0"]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum POSR11_AW {
333    #[doc = "0: No effect on output"]
334    _0 = 0,
335    #[doc = "1: High output"]
336    _1 = 1,
337}
338impl From<POSR11_AW> for bool {
339    #[inline(always)]
340    fn from(variant: POSR11_AW) -> Self {
341        variant as u8 != 0
342    }
343}
344#[doc = "Field `POSR11` writer - Pmn Output Set"]
345pub type POSR11_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR11_AW, O>;
346impl<'a, const O: u8> POSR11_W<'a, O> {
347    #[doc = "No effect on output"]
348    #[inline(always)]
349    pub fn _0(self) -> &'a mut W {
350        self.variant(POSR11_AW::_0)
351    }
352    #[doc = "High output"]
353    #[inline(always)]
354    pub fn _1(self) -> &'a mut W {
355        self.variant(POSR11_AW::_1)
356    }
357}
358#[doc = "Pmn Output Set\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq, Eq)]
360pub enum POSR12_AW {
361    #[doc = "0: No effect on output"]
362    _0 = 0,
363    #[doc = "1: High output"]
364    _1 = 1,
365}
366impl From<POSR12_AW> for bool {
367    #[inline(always)]
368    fn from(variant: POSR12_AW) -> Self {
369        variant as u8 != 0
370    }
371}
372#[doc = "Field `POSR12` writer - Pmn Output Set"]
373pub type POSR12_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR12_AW, O>;
374impl<'a, const O: u8> POSR12_W<'a, O> {
375    #[doc = "No effect on output"]
376    #[inline(always)]
377    pub fn _0(self) -> &'a mut W {
378        self.variant(POSR12_AW::_0)
379    }
380    #[doc = "High output"]
381    #[inline(always)]
382    pub fn _1(self) -> &'a mut W {
383        self.variant(POSR12_AW::_1)
384    }
385}
386#[doc = "Pmn Output Set\n\nValue on reset: 0"]
387#[derive(Clone, Copy, Debug, PartialEq, Eq)]
388pub enum POSR13_AW {
389    #[doc = "0: No effect on output"]
390    _0 = 0,
391    #[doc = "1: High output"]
392    _1 = 1,
393}
394impl From<POSR13_AW> for bool {
395    #[inline(always)]
396    fn from(variant: POSR13_AW) -> Self {
397        variant as u8 != 0
398    }
399}
400#[doc = "Field `POSR13` writer - Pmn Output Set"]
401pub type POSR13_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR13_AW, O>;
402impl<'a, const O: u8> POSR13_W<'a, O> {
403    #[doc = "No effect on output"]
404    #[inline(always)]
405    pub fn _0(self) -> &'a mut W {
406        self.variant(POSR13_AW::_0)
407    }
408    #[doc = "High output"]
409    #[inline(always)]
410    pub fn _1(self) -> &'a mut W {
411        self.variant(POSR13_AW::_1)
412    }
413}
414#[doc = "Pmn Output Set\n\nValue on reset: 0"]
415#[derive(Clone, Copy, Debug, PartialEq, Eq)]
416pub enum POSR14_AW {
417    #[doc = "0: No effect on output"]
418    _0 = 0,
419    #[doc = "1: High output"]
420    _1 = 1,
421}
422impl From<POSR14_AW> for bool {
423    #[inline(always)]
424    fn from(variant: POSR14_AW) -> Self {
425        variant as u8 != 0
426    }
427}
428#[doc = "Field `POSR14` writer - Pmn Output Set"]
429pub type POSR14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR14_AW, O>;
430impl<'a, const O: u8> POSR14_W<'a, O> {
431    #[doc = "No effect on output"]
432    #[inline(always)]
433    pub fn _0(self) -> &'a mut W {
434        self.variant(POSR14_AW::_0)
435    }
436    #[doc = "High output"]
437    #[inline(always)]
438    pub fn _1(self) -> &'a mut W {
439        self.variant(POSR14_AW::_1)
440    }
441}
442#[doc = "Pmn Output Set\n\nValue on reset: 0"]
443#[derive(Clone, Copy, Debug, PartialEq, Eq)]
444pub enum POSR15_AW {
445    #[doc = "0: No effect on output"]
446    _0 = 0,
447    #[doc = "1: High output"]
448    _1 = 1,
449}
450impl From<POSR15_AW> for bool {
451    #[inline(always)]
452    fn from(variant: POSR15_AW) -> Self {
453        variant as u8 != 0
454    }
455}
456#[doc = "Field `POSR15` writer - Pmn Output Set"]
457pub type POSR15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, POSR15_AW, O>;
458impl<'a, const O: u8> POSR15_W<'a, O> {
459    #[doc = "No effect on output"]
460    #[inline(always)]
461    pub fn _0(self) -> &'a mut W {
462        self.variant(POSR15_AW::_0)
463    }
464    #[doc = "High output"]
465    #[inline(always)]
466    pub fn _1(self) -> &'a mut W {
467        self.variant(POSR15_AW::_1)
468    }
469}
470#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
471#[derive(Clone, Copy, Debug, PartialEq, Eq)]
472pub enum PORR00_AW {
473    #[doc = "0: No effect on output"]
474    _0 = 0,
475    #[doc = "1: Low output"]
476    _1 = 1,
477}
478impl From<PORR00_AW> for bool {
479    #[inline(always)]
480    fn from(variant: PORR00_AW) -> Self {
481        variant as u8 != 0
482    }
483}
484#[doc = "Field `PORR00` writer - Pmn Output Reset"]
485pub type PORR00_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR00_AW, O>;
486impl<'a, const O: u8> PORR00_W<'a, O> {
487    #[doc = "No effect on output"]
488    #[inline(always)]
489    pub fn _0(self) -> &'a mut W {
490        self.variant(PORR00_AW::_0)
491    }
492    #[doc = "Low output"]
493    #[inline(always)]
494    pub fn _1(self) -> &'a mut W {
495        self.variant(PORR00_AW::_1)
496    }
497}
498#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
499#[derive(Clone, Copy, Debug, PartialEq, Eq)]
500pub enum PORR01_AW {
501    #[doc = "0: No effect on output"]
502    _0 = 0,
503    #[doc = "1: Low output"]
504    _1 = 1,
505}
506impl From<PORR01_AW> for bool {
507    #[inline(always)]
508    fn from(variant: PORR01_AW) -> Self {
509        variant as u8 != 0
510    }
511}
512#[doc = "Field `PORR01` writer - Pmn Output Reset"]
513pub type PORR01_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR01_AW, O>;
514impl<'a, const O: u8> PORR01_W<'a, O> {
515    #[doc = "No effect on output"]
516    #[inline(always)]
517    pub fn _0(self) -> &'a mut W {
518        self.variant(PORR01_AW::_0)
519    }
520    #[doc = "Low output"]
521    #[inline(always)]
522    pub fn _1(self) -> &'a mut W {
523        self.variant(PORR01_AW::_1)
524    }
525}
526#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
527#[derive(Clone, Copy, Debug, PartialEq, Eq)]
528pub enum PORR02_AW {
529    #[doc = "0: No effect on output"]
530    _0 = 0,
531    #[doc = "1: Low output"]
532    _1 = 1,
533}
534impl From<PORR02_AW> for bool {
535    #[inline(always)]
536    fn from(variant: PORR02_AW) -> Self {
537        variant as u8 != 0
538    }
539}
540#[doc = "Field `PORR02` writer - Pmn Output Reset"]
541pub type PORR02_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR02_AW, O>;
542impl<'a, const O: u8> PORR02_W<'a, O> {
543    #[doc = "No effect on output"]
544    #[inline(always)]
545    pub fn _0(self) -> &'a mut W {
546        self.variant(PORR02_AW::_0)
547    }
548    #[doc = "Low output"]
549    #[inline(always)]
550    pub fn _1(self) -> &'a mut W {
551        self.variant(PORR02_AW::_1)
552    }
553}
554#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
555#[derive(Clone, Copy, Debug, PartialEq, Eq)]
556pub enum PORR03_AW {
557    #[doc = "0: No effect on output"]
558    _0 = 0,
559    #[doc = "1: Low output"]
560    _1 = 1,
561}
562impl From<PORR03_AW> for bool {
563    #[inline(always)]
564    fn from(variant: PORR03_AW) -> Self {
565        variant as u8 != 0
566    }
567}
568#[doc = "Field `PORR03` writer - Pmn Output Reset"]
569pub type PORR03_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR03_AW, O>;
570impl<'a, const O: u8> PORR03_W<'a, O> {
571    #[doc = "No effect on output"]
572    #[inline(always)]
573    pub fn _0(self) -> &'a mut W {
574        self.variant(PORR03_AW::_0)
575    }
576    #[doc = "Low output"]
577    #[inline(always)]
578    pub fn _1(self) -> &'a mut W {
579        self.variant(PORR03_AW::_1)
580    }
581}
582#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
583#[derive(Clone, Copy, Debug, PartialEq, Eq)]
584pub enum PORR04_AW {
585    #[doc = "0: No effect on output"]
586    _0 = 0,
587    #[doc = "1: Low output"]
588    _1 = 1,
589}
590impl From<PORR04_AW> for bool {
591    #[inline(always)]
592    fn from(variant: PORR04_AW) -> Self {
593        variant as u8 != 0
594    }
595}
596#[doc = "Field `PORR04` writer - Pmn Output Reset"]
597pub type PORR04_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR04_AW, O>;
598impl<'a, const O: u8> PORR04_W<'a, O> {
599    #[doc = "No effect on output"]
600    #[inline(always)]
601    pub fn _0(self) -> &'a mut W {
602        self.variant(PORR04_AW::_0)
603    }
604    #[doc = "Low output"]
605    #[inline(always)]
606    pub fn _1(self) -> &'a mut W {
607        self.variant(PORR04_AW::_1)
608    }
609}
610#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
611#[derive(Clone, Copy, Debug, PartialEq, Eq)]
612pub enum PORR05_AW {
613    #[doc = "0: No effect on output"]
614    _0 = 0,
615    #[doc = "1: Low output"]
616    _1 = 1,
617}
618impl From<PORR05_AW> for bool {
619    #[inline(always)]
620    fn from(variant: PORR05_AW) -> Self {
621        variant as u8 != 0
622    }
623}
624#[doc = "Field `PORR05` writer - Pmn Output Reset"]
625pub type PORR05_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR05_AW, O>;
626impl<'a, const O: u8> PORR05_W<'a, O> {
627    #[doc = "No effect on output"]
628    #[inline(always)]
629    pub fn _0(self) -> &'a mut W {
630        self.variant(PORR05_AW::_0)
631    }
632    #[doc = "Low output"]
633    #[inline(always)]
634    pub fn _1(self) -> &'a mut W {
635        self.variant(PORR05_AW::_1)
636    }
637}
638#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
639#[derive(Clone, Copy, Debug, PartialEq, Eq)]
640pub enum PORR06_AW {
641    #[doc = "0: No effect on output"]
642    _0 = 0,
643    #[doc = "1: Low output"]
644    _1 = 1,
645}
646impl From<PORR06_AW> for bool {
647    #[inline(always)]
648    fn from(variant: PORR06_AW) -> Self {
649        variant as u8 != 0
650    }
651}
652#[doc = "Field `PORR06` writer - Pmn Output Reset"]
653pub type PORR06_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR06_AW, O>;
654impl<'a, const O: u8> PORR06_W<'a, O> {
655    #[doc = "No effect on output"]
656    #[inline(always)]
657    pub fn _0(self) -> &'a mut W {
658        self.variant(PORR06_AW::_0)
659    }
660    #[doc = "Low output"]
661    #[inline(always)]
662    pub fn _1(self) -> &'a mut W {
663        self.variant(PORR06_AW::_1)
664    }
665}
666#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq, Eq)]
668pub enum PORR07_AW {
669    #[doc = "0: No effect on output"]
670    _0 = 0,
671    #[doc = "1: Low output"]
672    _1 = 1,
673}
674impl From<PORR07_AW> for bool {
675    #[inline(always)]
676    fn from(variant: PORR07_AW) -> Self {
677        variant as u8 != 0
678    }
679}
680#[doc = "Field `PORR07` writer - Pmn Output Reset"]
681pub type PORR07_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR07_AW, O>;
682impl<'a, const O: u8> PORR07_W<'a, O> {
683    #[doc = "No effect on output"]
684    #[inline(always)]
685    pub fn _0(self) -> &'a mut W {
686        self.variant(PORR07_AW::_0)
687    }
688    #[doc = "Low output"]
689    #[inline(always)]
690    pub fn _1(self) -> &'a mut W {
691        self.variant(PORR07_AW::_1)
692    }
693}
694#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
695#[derive(Clone, Copy, Debug, PartialEq, Eq)]
696pub enum PORR08_AW {
697    #[doc = "0: No effect on output"]
698    _0 = 0,
699    #[doc = "1: Low output"]
700    _1 = 1,
701}
702impl From<PORR08_AW> for bool {
703    #[inline(always)]
704    fn from(variant: PORR08_AW) -> Self {
705        variant as u8 != 0
706    }
707}
708#[doc = "Field `PORR08` writer - Pmn Output Reset"]
709pub type PORR08_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR08_AW, O>;
710impl<'a, const O: u8> PORR08_W<'a, O> {
711    #[doc = "No effect on output"]
712    #[inline(always)]
713    pub fn _0(self) -> &'a mut W {
714        self.variant(PORR08_AW::_0)
715    }
716    #[doc = "Low output"]
717    #[inline(always)]
718    pub fn _1(self) -> &'a mut W {
719        self.variant(PORR08_AW::_1)
720    }
721}
722#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
723#[derive(Clone, Copy, Debug, PartialEq, Eq)]
724pub enum PORR09_AW {
725    #[doc = "0: No effect on output"]
726    _0 = 0,
727    #[doc = "1: Low output"]
728    _1 = 1,
729}
730impl From<PORR09_AW> for bool {
731    #[inline(always)]
732    fn from(variant: PORR09_AW) -> Self {
733        variant as u8 != 0
734    }
735}
736#[doc = "Field `PORR09` writer - Pmn Output Reset"]
737pub type PORR09_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR09_AW, O>;
738impl<'a, const O: u8> PORR09_W<'a, O> {
739    #[doc = "No effect on output"]
740    #[inline(always)]
741    pub fn _0(self) -> &'a mut W {
742        self.variant(PORR09_AW::_0)
743    }
744    #[doc = "Low output"]
745    #[inline(always)]
746    pub fn _1(self) -> &'a mut W {
747        self.variant(PORR09_AW::_1)
748    }
749}
750#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
751#[derive(Clone, Copy, Debug, PartialEq, Eq)]
752pub enum PORR10_AW {
753    #[doc = "0: No effect on output"]
754    _0 = 0,
755    #[doc = "1: Low output"]
756    _1 = 1,
757}
758impl From<PORR10_AW> for bool {
759    #[inline(always)]
760    fn from(variant: PORR10_AW) -> Self {
761        variant as u8 != 0
762    }
763}
764#[doc = "Field `PORR10` writer - Pmn Output Reset"]
765pub type PORR10_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR10_AW, O>;
766impl<'a, const O: u8> PORR10_W<'a, O> {
767    #[doc = "No effect on output"]
768    #[inline(always)]
769    pub fn _0(self) -> &'a mut W {
770        self.variant(PORR10_AW::_0)
771    }
772    #[doc = "Low output"]
773    #[inline(always)]
774    pub fn _1(self) -> &'a mut W {
775        self.variant(PORR10_AW::_1)
776    }
777}
778#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
779#[derive(Clone, Copy, Debug, PartialEq, Eq)]
780pub enum PORR11_AW {
781    #[doc = "0: No effect on output"]
782    _0 = 0,
783    #[doc = "1: Low output"]
784    _1 = 1,
785}
786impl From<PORR11_AW> for bool {
787    #[inline(always)]
788    fn from(variant: PORR11_AW) -> Self {
789        variant as u8 != 0
790    }
791}
792#[doc = "Field `PORR11` writer - Pmn Output Reset"]
793pub type PORR11_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR11_AW, O>;
794impl<'a, const O: u8> PORR11_W<'a, O> {
795    #[doc = "No effect on output"]
796    #[inline(always)]
797    pub fn _0(self) -> &'a mut W {
798        self.variant(PORR11_AW::_0)
799    }
800    #[doc = "Low output"]
801    #[inline(always)]
802    pub fn _1(self) -> &'a mut W {
803        self.variant(PORR11_AW::_1)
804    }
805}
806#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
807#[derive(Clone, Copy, Debug, PartialEq, Eq)]
808pub enum PORR12_AW {
809    #[doc = "0: No effect on output"]
810    _0 = 0,
811    #[doc = "1: Low output"]
812    _1 = 1,
813}
814impl From<PORR12_AW> for bool {
815    #[inline(always)]
816    fn from(variant: PORR12_AW) -> Self {
817        variant as u8 != 0
818    }
819}
820#[doc = "Field `PORR12` writer - Pmn Output Reset"]
821pub type PORR12_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR12_AW, O>;
822impl<'a, const O: u8> PORR12_W<'a, O> {
823    #[doc = "No effect on output"]
824    #[inline(always)]
825    pub fn _0(self) -> &'a mut W {
826        self.variant(PORR12_AW::_0)
827    }
828    #[doc = "Low output"]
829    #[inline(always)]
830    pub fn _1(self) -> &'a mut W {
831        self.variant(PORR12_AW::_1)
832    }
833}
834#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
835#[derive(Clone, Copy, Debug, PartialEq, Eq)]
836pub enum PORR13_AW {
837    #[doc = "0: No effect on output"]
838    _0 = 0,
839    #[doc = "1: Low output"]
840    _1 = 1,
841}
842impl From<PORR13_AW> for bool {
843    #[inline(always)]
844    fn from(variant: PORR13_AW) -> Self {
845        variant as u8 != 0
846    }
847}
848#[doc = "Field `PORR13` writer - Pmn Output Reset"]
849pub type PORR13_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR13_AW, O>;
850impl<'a, const O: u8> PORR13_W<'a, O> {
851    #[doc = "No effect on output"]
852    #[inline(always)]
853    pub fn _0(self) -> &'a mut W {
854        self.variant(PORR13_AW::_0)
855    }
856    #[doc = "Low output"]
857    #[inline(always)]
858    pub fn _1(self) -> &'a mut W {
859        self.variant(PORR13_AW::_1)
860    }
861}
862#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
863#[derive(Clone, Copy, Debug, PartialEq, Eq)]
864pub enum PORR14_AW {
865    #[doc = "0: No effect on output"]
866    _0 = 0,
867    #[doc = "1: Low output"]
868    _1 = 1,
869}
870impl From<PORR14_AW> for bool {
871    #[inline(always)]
872    fn from(variant: PORR14_AW) -> Self {
873        variant as u8 != 0
874    }
875}
876#[doc = "Field `PORR14` writer - Pmn Output Reset"]
877pub type PORR14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR14_AW, O>;
878impl<'a, const O: u8> PORR14_W<'a, O> {
879    #[doc = "No effect on output"]
880    #[inline(always)]
881    pub fn _0(self) -> &'a mut W {
882        self.variant(PORR14_AW::_0)
883    }
884    #[doc = "Low output"]
885    #[inline(always)]
886    pub fn _1(self) -> &'a mut W {
887        self.variant(PORR14_AW::_1)
888    }
889}
890#[doc = "Pmn Output Reset\n\nValue on reset: 0"]
891#[derive(Clone, Copy, Debug, PartialEq, Eq)]
892pub enum PORR15_AW {
893    #[doc = "0: No effect on output"]
894    _0 = 0,
895    #[doc = "1: Low output"]
896    _1 = 1,
897}
898impl From<PORR15_AW> for bool {
899    #[inline(always)]
900    fn from(variant: PORR15_AW) -> Self {
901        variant as u8 != 0
902    }
903}
904#[doc = "Field `PORR15` writer - Pmn Output Reset"]
905pub type PORR15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PCNTR3_SPEC, PORR15_AW, O>;
906impl<'a, const O: u8> PORR15_W<'a, O> {
907    #[doc = "No effect on output"]
908    #[inline(always)]
909    pub fn _0(self) -> &'a mut W {
910        self.variant(PORR15_AW::_0)
911    }
912    #[doc = "Low output"]
913    #[inline(always)]
914    pub fn _1(self) -> &'a mut W {
915        self.variant(PORR15_AW::_1)
916    }
917}
918impl W {
919    #[doc = "Bit 0 - Pmn Output Set"]
920    #[inline(always)]
921    #[must_use]
922    pub fn posr00(&mut self) -> POSR00_W<0> {
923        POSR00_W::new(self)
924    }
925    #[doc = "Bit 1 - Pmn Output Set"]
926    #[inline(always)]
927    #[must_use]
928    pub fn posr01(&mut self) -> POSR01_W<1> {
929        POSR01_W::new(self)
930    }
931    #[doc = "Bit 2 - Pmn Output Set"]
932    #[inline(always)]
933    #[must_use]
934    pub fn posr02(&mut self) -> POSR02_W<2> {
935        POSR02_W::new(self)
936    }
937    #[doc = "Bit 3 - Pmn Output Set"]
938    #[inline(always)]
939    #[must_use]
940    pub fn posr03(&mut self) -> POSR03_W<3> {
941        POSR03_W::new(self)
942    }
943    #[doc = "Bit 4 - Pmn Output Set"]
944    #[inline(always)]
945    #[must_use]
946    pub fn posr04(&mut self) -> POSR04_W<4> {
947        POSR04_W::new(self)
948    }
949    #[doc = "Bit 5 - Pmn Output Set"]
950    #[inline(always)]
951    #[must_use]
952    pub fn posr05(&mut self) -> POSR05_W<5> {
953        POSR05_W::new(self)
954    }
955    #[doc = "Bit 6 - Pmn Output Set"]
956    #[inline(always)]
957    #[must_use]
958    pub fn posr06(&mut self) -> POSR06_W<6> {
959        POSR06_W::new(self)
960    }
961    #[doc = "Bit 7 - Pmn Output Set"]
962    #[inline(always)]
963    #[must_use]
964    pub fn posr07(&mut self) -> POSR07_W<7> {
965        POSR07_W::new(self)
966    }
967    #[doc = "Bit 8 - Pmn Output Set"]
968    #[inline(always)]
969    #[must_use]
970    pub fn posr08(&mut self) -> POSR08_W<8> {
971        POSR08_W::new(self)
972    }
973    #[doc = "Bit 9 - Pmn Output Set"]
974    #[inline(always)]
975    #[must_use]
976    pub fn posr09(&mut self) -> POSR09_W<9> {
977        POSR09_W::new(self)
978    }
979    #[doc = "Bit 10 - Pmn Output Set"]
980    #[inline(always)]
981    #[must_use]
982    pub fn posr10(&mut self) -> POSR10_W<10> {
983        POSR10_W::new(self)
984    }
985    #[doc = "Bit 11 - Pmn Output Set"]
986    #[inline(always)]
987    #[must_use]
988    pub fn posr11(&mut self) -> POSR11_W<11> {
989        POSR11_W::new(self)
990    }
991    #[doc = "Bit 12 - Pmn Output Set"]
992    #[inline(always)]
993    #[must_use]
994    pub fn posr12(&mut self) -> POSR12_W<12> {
995        POSR12_W::new(self)
996    }
997    #[doc = "Bit 13 - Pmn Output Set"]
998    #[inline(always)]
999    #[must_use]
1000    pub fn posr13(&mut self) -> POSR13_W<13> {
1001        POSR13_W::new(self)
1002    }
1003    #[doc = "Bit 14 - Pmn Output Set"]
1004    #[inline(always)]
1005    #[must_use]
1006    pub fn posr14(&mut self) -> POSR14_W<14> {
1007        POSR14_W::new(self)
1008    }
1009    #[doc = "Bit 15 - Pmn Output Set"]
1010    #[inline(always)]
1011    #[must_use]
1012    pub fn posr15(&mut self) -> POSR15_W<15> {
1013        POSR15_W::new(self)
1014    }
1015    #[doc = "Bit 16 - Pmn Output Reset"]
1016    #[inline(always)]
1017    #[must_use]
1018    pub fn porr00(&mut self) -> PORR00_W<16> {
1019        PORR00_W::new(self)
1020    }
1021    #[doc = "Bit 17 - Pmn Output Reset"]
1022    #[inline(always)]
1023    #[must_use]
1024    pub fn porr01(&mut self) -> PORR01_W<17> {
1025        PORR01_W::new(self)
1026    }
1027    #[doc = "Bit 18 - Pmn Output Reset"]
1028    #[inline(always)]
1029    #[must_use]
1030    pub fn porr02(&mut self) -> PORR02_W<18> {
1031        PORR02_W::new(self)
1032    }
1033    #[doc = "Bit 19 - Pmn Output Reset"]
1034    #[inline(always)]
1035    #[must_use]
1036    pub fn porr03(&mut self) -> PORR03_W<19> {
1037        PORR03_W::new(self)
1038    }
1039    #[doc = "Bit 20 - Pmn Output Reset"]
1040    #[inline(always)]
1041    #[must_use]
1042    pub fn porr04(&mut self) -> PORR04_W<20> {
1043        PORR04_W::new(self)
1044    }
1045    #[doc = "Bit 21 - Pmn Output Reset"]
1046    #[inline(always)]
1047    #[must_use]
1048    pub fn porr05(&mut self) -> PORR05_W<21> {
1049        PORR05_W::new(self)
1050    }
1051    #[doc = "Bit 22 - Pmn Output Reset"]
1052    #[inline(always)]
1053    #[must_use]
1054    pub fn porr06(&mut self) -> PORR06_W<22> {
1055        PORR06_W::new(self)
1056    }
1057    #[doc = "Bit 23 - Pmn Output Reset"]
1058    #[inline(always)]
1059    #[must_use]
1060    pub fn porr07(&mut self) -> PORR07_W<23> {
1061        PORR07_W::new(self)
1062    }
1063    #[doc = "Bit 24 - Pmn Output Reset"]
1064    #[inline(always)]
1065    #[must_use]
1066    pub fn porr08(&mut self) -> PORR08_W<24> {
1067        PORR08_W::new(self)
1068    }
1069    #[doc = "Bit 25 - Pmn Output Reset"]
1070    #[inline(always)]
1071    #[must_use]
1072    pub fn porr09(&mut self) -> PORR09_W<25> {
1073        PORR09_W::new(self)
1074    }
1075    #[doc = "Bit 26 - Pmn Output Reset"]
1076    #[inline(always)]
1077    #[must_use]
1078    pub fn porr10(&mut self) -> PORR10_W<26> {
1079        PORR10_W::new(self)
1080    }
1081    #[doc = "Bit 27 - Pmn Output Reset"]
1082    #[inline(always)]
1083    #[must_use]
1084    pub fn porr11(&mut self) -> PORR11_W<27> {
1085        PORR11_W::new(self)
1086    }
1087    #[doc = "Bit 28 - Pmn Output Reset"]
1088    #[inline(always)]
1089    #[must_use]
1090    pub fn porr12(&mut self) -> PORR12_W<28> {
1091        PORR12_W::new(self)
1092    }
1093    #[doc = "Bit 29 - Pmn Output Reset"]
1094    #[inline(always)]
1095    #[must_use]
1096    pub fn porr13(&mut self) -> PORR13_W<29> {
1097        PORR13_W::new(self)
1098    }
1099    #[doc = "Bit 30 - Pmn Output Reset"]
1100    #[inline(always)]
1101    #[must_use]
1102    pub fn porr14(&mut self) -> PORR14_W<30> {
1103        PORR14_W::new(self)
1104    }
1105    #[doc = "Bit 31 - Pmn Output Reset"]
1106    #[inline(always)]
1107    #[must_use]
1108    pub fn porr15(&mut self) -> PORR15_W<31> {
1109        PORR15_W::new(self)
1110    }
1111    #[doc = "Writes raw bits to the register."]
1112    #[inline(always)]
1113    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1114        self.0.bits(bits);
1115        self
1116    }
1117}
1118#[doc = "Port Control Register 3\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pcntr3](index.html) module"]
1119pub struct PCNTR3_SPEC;
1120impl crate::RegisterSpec for PCNTR3_SPEC {
1121    type Ux = u32;
1122}
1123#[doc = "`write(|w| ..)` method takes [pcntr3::W](W) writer structure"]
1124impl crate::Writable for PCNTR3_SPEC {
1125    type Writer = W;
1126    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1127    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1128}
1129#[doc = "`reset()` method sets PCNTR3 to value 0"]
1130impl crate::Resettable for PCNTR3_SPEC {
1131    const RESET_VALUE: Self::Ux = 0;
1132}