lpc550x/gpio/
pin.rs

1#[doc = "Register `PIN[%s]` reader"]
2pub struct R(crate::R<PIN_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PIN_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PIN_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PIN_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `PIN[%s]` writer"]
17pub struct W(crate::W<PIN_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PIN_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<PIN_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PIN_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `PIO0` reader - Reads or writes pin state for pin PIOn_0."]
38pub type PIO0_R = crate::BitReader<PIO0_A>;
39#[doc = "Reads or writes pin state for pin PIOn_0.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum PIO0_A {
42    #[doc = "0: Pin is low."]
43    LOW = 0,
44    #[doc = "1: Pin is high."]
45    HIGH = 1,
46}
47impl From<PIO0_A> for bool {
48    #[inline(always)]
49    fn from(variant: PIO0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl PIO0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> PIO0_A {
57        match self.bits {
58            false => PIO0_A::LOW,
59            true => PIO0_A::HIGH,
60        }
61    }
62    #[doc = "Checks if the value of the field is `LOW`"]
63    #[inline(always)]
64    pub fn is_low(&self) -> bool {
65        *self == PIO0_A::LOW
66    }
67    #[doc = "Checks if the value of the field is `HIGH`"]
68    #[inline(always)]
69    pub fn is_high(&self) -> bool {
70        *self == PIO0_A::HIGH
71    }
72}
73#[doc = "Field `PIO0` writer - Reads or writes pin state for pin PIOn_0."]
74pub type PIO0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO0_A, O>;
75impl<'a, const O: u8> PIO0_W<'a, O> {
76    #[doc = "Pin is low."]
77    #[inline(always)]
78    pub fn low(self) -> &'a mut W {
79        self.variant(PIO0_A::LOW)
80    }
81    #[doc = "Pin is high."]
82    #[inline(always)]
83    pub fn high(self) -> &'a mut W {
84        self.variant(PIO0_A::HIGH)
85    }
86}
87#[doc = "Field `PIO1` reader - Reads or writes pin state for pin PIOn_1."]
88pub type PIO1_R = crate::BitReader<PIO1_A>;
89#[doc = "Reads or writes pin state for pin PIOn_1.\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum PIO1_A {
92    #[doc = "0: Pin is low."]
93    LOW = 0,
94    #[doc = "1: Pin is high."]
95    HIGH = 1,
96}
97impl From<PIO1_A> for bool {
98    #[inline(always)]
99    fn from(variant: PIO1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl PIO1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> PIO1_A {
107        match self.bits {
108            false => PIO1_A::LOW,
109            true => PIO1_A::HIGH,
110        }
111    }
112    #[doc = "Checks if the value of the field is `LOW`"]
113    #[inline(always)]
114    pub fn is_low(&self) -> bool {
115        *self == PIO1_A::LOW
116    }
117    #[doc = "Checks if the value of the field is `HIGH`"]
118    #[inline(always)]
119    pub fn is_high(&self) -> bool {
120        *self == PIO1_A::HIGH
121    }
122}
123#[doc = "Field `PIO1` writer - Reads or writes pin state for pin PIOn_1."]
124pub type PIO1_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO1_A, O>;
125impl<'a, const O: u8> PIO1_W<'a, O> {
126    #[doc = "Pin is low."]
127    #[inline(always)]
128    pub fn low(self) -> &'a mut W {
129        self.variant(PIO1_A::LOW)
130    }
131    #[doc = "Pin is high."]
132    #[inline(always)]
133    pub fn high(self) -> &'a mut W {
134        self.variant(PIO1_A::HIGH)
135    }
136}
137#[doc = "Field `PIO2` reader - Reads or writes pin state for pin PIOn_2."]
138pub type PIO2_R = crate::BitReader<PIO2_A>;
139#[doc = "Reads or writes pin state for pin PIOn_2.\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum PIO2_A {
142    #[doc = "0: Pin is low."]
143    LOW = 0,
144    #[doc = "1: Pin is high."]
145    HIGH = 1,
146}
147impl From<PIO2_A> for bool {
148    #[inline(always)]
149    fn from(variant: PIO2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl PIO2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> PIO2_A {
157        match self.bits {
158            false => PIO2_A::LOW,
159            true => PIO2_A::HIGH,
160        }
161    }
162    #[doc = "Checks if the value of the field is `LOW`"]
163    #[inline(always)]
164    pub fn is_low(&self) -> bool {
165        *self == PIO2_A::LOW
166    }
167    #[doc = "Checks if the value of the field is `HIGH`"]
168    #[inline(always)]
169    pub fn is_high(&self) -> bool {
170        *self == PIO2_A::HIGH
171    }
172}
173#[doc = "Field `PIO2` writer - Reads or writes pin state for pin PIOn_2."]
174pub type PIO2_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO2_A, O>;
175impl<'a, const O: u8> PIO2_W<'a, O> {
176    #[doc = "Pin is low."]
177    #[inline(always)]
178    pub fn low(self) -> &'a mut W {
179        self.variant(PIO2_A::LOW)
180    }
181    #[doc = "Pin is high."]
182    #[inline(always)]
183    pub fn high(self) -> &'a mut W {
184        self.variant(PIO2_A::HIGH)
185    }
186}
187#[doc = "Field `PIO3` reader - Reads or writes pin state for pin PIOn_3."]
188pub type PIO3_R = crate::BitReader<PIO3_A>;
189#[doc = "Reads or writes pin state for pin PIOn_3.\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum PIO3_A {
192    #[doc = "0: Pin is low."]
193    LOW = 0,
194    #[doc = "1: Pin is high."]
195    HIGH = 1,
196}
197impl From<PIO3_A> for bool {
198    #[inline(always)]
199    fn from(variant: PIO3_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl PIO3_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> PIO3_A {
207        match self.bits {
208            false => PIO3_A::LOW,
209            true => PIO3_A::HIGH,
210        }
211    }
212    #[doc = "Checks if the value of the field is `LOW`"]
213    #[inline(always)]
214    pub fn is_low(&self) -> bool {
215        *self == PIO3_A::LOW
216    }
217    #[doc = "Checks if the value of the field is `HIGH`"]
218    #[inline(always)]
219    pub fn is_high(&self) -> bool {
220        *self == PIO3_A::HIGH
221    }
222}
223#[doc = "Field `PIO3` writer - Reads or writes pin state for pin PIOn_3."]
224pub type PIO3_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO3_A, O>;
225impl<'a, const O: u8> PIO3_W<'a, O> {
226    #[doc = "Pin is low."]
227    #[inline(always)]
228    pub fn low(self) -> &'a mut W {
229        self.variant(PIO3_A::LOW)
230    }
231    #[doc = "Pin is high."]
232    #[inline(always)]
233    pub fn high(self) -> &'a mut W {
234        self.variant(PIO3_A::HIGH)
235    }
236}
237#[doc = "Field `PIO4` reader - Reads or writes pin state for pin PIOn_4."]
238pub type PIO4_R = crate::BitReader<PIO4_A>;
239#[doc = "Reads or writes pin state for pin PIOn_4.\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum PIO4_A {
242    #[doc = "0: Pin is low."]
243    LOW = 0,
244    #[doc = "1: Pin is high."]
245    HIGH = 1,
246}
247impl From<PIO4_A> for bool {
248    #[inline(always)]
249    fn from(variant: PIO4_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl PIO4_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> PIO4_A {
257        match self.bits {
258            false => PIO4_A::LOW,
259            true => PIO4_A::HIGH,
260        }
261    }
262    #[doc = "Checks if the value of the field is `LOW`"]
263    #[inline(always)]
264    pub fn is_low(&self) -> bool {
265        *self == PIO4_A::LOW
266    }
267    #[doc = "Checks if the value of the field is `HIGH`"]
268    #[inline(always)]
269    pub fn is_high(&self) -> bool {
270        *self == PIO4_A::HIGH
271    }
272}
273#[doc = "Field `PIO4` writer - Reads or writes pin state for pin PIOn_4."]
274pub type PIO4_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO4_A, O>;
275impl<'a, const O: u8> PIO4_W<'a, O> {
276    #[doc = "Pin is low."]
277    #[inline(always)]
278    pub fn low(self) -> &'a mut W {
279        self.variant(PIO4_A::LOW)
280    }
281    #[doc = "Pin is high."]
282    #[inline(always)]
283    pub fn high(self) -> &'a mut W {
284        self.variant(PIO4_A::HIGH)
285    }
286}
287#[doc = "Field `PIO5` reader - Reads or writes pin state for pin PIOn_5."]
288pub type PIO5_R = crate::BitReader<PIO5_A>;
289#[doc = "Reads or writes pin state for pin PIOn_5.\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum PIO5_A {
292    #[doc = "0: Pin is low."]
293    LOW = 0,
294    #[doc = "1: Pin is high."]
295    HIGH = 1,
296}
297impl From<PIO5_A> for bool {
298    #[inline(always)]
299    fn from(variant: PIO5_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl PIO5_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> PIO5_A {
307        match self.bits {
308            false => PIO5_A::LOW,
309            true => PIO5_A::HIGH,
310        }
311    }
312    #[doc = "Checks if the value of the field is `LOW`"]
313    #[inline(always)]
314    pub fn is_low(&self) -> bool {
315        *self == PIO5_A::LOW
316    }
317    #[doc = "Checks if the value of the field is `HIGH`"]
318    #[inline(always)]
319    pub fn is_high(&self) -> bool {
320        *self == PIO5_A::HIGH
321    }
322}
323#[doc = "Field `PIO5` writer - Reads or writes pin state for pin PIOn_5."]
324pub type PIO5_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO5_A, O>;
325impl<'a, const O: u8> PIO5_W<'a, O> {
326    #[doc = "Pin is low."]
327    #[inline(always)]
328    pub fn low(self) -> &'a mut W {
329        self.variant(PIO5_A::LOW)
330    }
331    #[doc = "Pin is high."]
332    #[inline(always)]
333    pub fn high(self) -> &'a mut W {
334        self.variant(PIO5_A::HIGH)
335    }
336}
337#[doc = "Field `PIO6` reader - Reads or writes pin state for pin PIOn_6."]
338pub type PIO6_R = crate::BitReader<PIO6_A>;
339#[doc = "Reads or writes pin state for pin PIOn_6.\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum PIO6_A {
342    #[doc = "0: Pin is low."]
343    LOW = 0,
344    #[doc = "1: Pin is high."]
345    HIGH = 1,
346}
347impl From<PIO6_A> for bool {
348    #[inline(always)]
349    fn from(variant: PIO6_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl PIO6_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> PIO6_A {
357        match self.bits {
358            false => PIO6_A::LOW,
359            true => PIO6_A::HIGH,
360        }
361    }
362    #[doc = "Checks if the value of the field is `LOW`"]
363    #[inline(always)]
364    pub fn is_low(&self) -> bool {
365        *self == PIO6_A::LOW
366    }
367    #[doc = "Checks if the value of the field is `HIGH`"]
368    #[inline(always)]
369    pub fn is_high(&self) -> bool {
370        *self == PIO6_A::HIGH
371    }
372}
373#[doc = "Field `PIO6` writer - Reads or writes pin state for pin PIOn_6."]
374pub type PIO6_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO6_A, O>;
375impl<'a, const O: u8> PIO6_W<'a, O> {
376    #[doc = "Pin is low."]
377    #[inline(always)]
378    pub fn low(self) -> &'a mut W {
379        self.variant(PIO6_A::LOW)
380    }
381    #[doc = "Pin is high."]
382    #[inline(always)]
383    pub fn high(self) -> &'a mut W {
384        self.variant(PIO6_A::HIGH)
385    }
386}
387#[doc = "Field `PIO7` reader - Reads or writes pin state for pin PIOn_7."]
388pub type PIO7_R = crate::BitReader<PIO7_A>;
389#[doc = "Reads or writes pin state for pin PIOn_7.\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum PIO7_A {
392    #[doc = "0: Pin is low."]
393    LOW = 0,
394    #[doc = "1: Pin is high."]
395    HIGH = 1,
396}
397impl From<PIO7_A> for bool {
398    #[inline(always)]
399    fn from(variant: PIO7_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl PIO7_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> PIO7_A {
407        match self.bits {
408            false => PIO7_A::LOW,
409            true => PIO7_A::HIGH,
410        }
411    }
412    #[doc = "Checks if the value of the field is `LOW`"]
413    #[inline(always)]
414    pub fn is_low(&self) -> bool {
415        *self == PIO7_A::LOW
416    }
417    #[doc = "Checks if the value of the field is `HIGH`"]
418    #[inline(always)]
419    pub fn is_high(&self) -> bool {
420        *self == PIO7_A::HIGH
421    }
422}
423#[doc = "Field `PIO7` writer - Reads or writes pin state for pin PIOn_7."]
424pub type PIO7_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO7_A, O>;
425impl<'a, const O: u8> PIO7_W<'a, O> {
426    #[doc = "Pin is low."]
427    #[inline(always)]
428    pub fn low(self) -> &'a mut W {
429        self.variant(PIO7_A::LOW)
430    }
431    #[doc = "Pin is high."]
432    #[inline(always)]
433    pub fn high(self) -> &'a mut W {
434        self.variant(PIO7_A::HIGH)
435    }
436}
437#[doc = "Field `PIO8` reader - Reads or writes pin state for pin PIOn_8."]
438pub type PIO8_R = crate::BitReader<PIO8_A>;
439#[doc = "Reads or writes pin state for pin PIOn_8.\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum PIO8_A {
442    #[doc = "0: Pin is low."]
443    LOW = 0,
444    #[doc = "1: Pin is high."]
445    HIGH = 1,
446}
447impl From<PIO8_A> for bool {
448    #[inline(always)]
449    fn from(variant: PIO8_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl PIO8_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> PIO8_A {
457        match self.bits {
458            false => PIO8_A::LOW,
459            true => PIO8_A::HIGH,
460        }
461    }
462    #[doc = "Checks if the value of the field is `LOW`"]
463    #[inline(always)]
464    pub fn is_low(&self) -> bool {
465        *self == PIO8_A::LOW
466    }
467    #[doc = "Checks if the value of the field is `HIGH`"]
468    #[inline(always)]
469    pub fn is_high(&self) -> bool {
470        *self == PIO8_A::HIGH
471    }
472}
473#[doc = "Field `PIO8` writer - Reads or writes pin state for pin PIOn_8."]
474pub type PIO8_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO8_A, O>;
475impl<'a, const O: u8> PIO8_W<'a, O> {
476    #[doc = "Pin is low."]
477    #[inline(always)]
478    pub fn low(self) -> &'a mut W {
479        self.variant(PIO8_A::LOW)
480    }
481    #[doc = "Pin is high."]
482    #[inline(always)]
483    pub fn high(self) -> &'a mut W {
484        self.variant(PIO8_A::HIGH)
485    }
486}
487#[doc = "Field `PIO9` reader - Reads or writes pin state for pin PIOn_9."]
488pub type PIO9_R = crate::BitReader<PIO9_A>;
489#[doc = "Reads or writes pin state for pin PIOn_9.\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum PIO9_A {
492    #[doc = "0: Pin is low."]
493    LOW = 0,
494    #[doc = "1: Pin is high."]
495    HIGH = 1,
496}
497impl From<PIO9_A> for bool {
498    #[inline(always)]
499    fn from(variant: PIO9_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl PIO9_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> PIO9_A {
507        match self.bits {
508            false => PIO9_A::LOW,
509            true => PIO9_A::HIGH,
510        }
511    }
512    #[doc = "Checks if the value of the field is `LOW`"]
513    #[inline(always)]
514    pub fn is_low(&self) -> bool {
515        *self == PIO9_A::LOW
516    }
517    #[doc = "Checks if the value of the field is `HIGH`"]
518    #[inline(always)]
519    pub fn is_high(&self) -> bool {
520        *self == PIO9_A::HIGH
521    }
522}
523#[doc = "Field `PIO9` writer - Reads or writes pin state for pin PIOn_9."]
524pub type PIO9_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO9_A, O>;
525impl<'a, const O: u8> PIO9_W<'a, O> {
526    #[doc = "Pin is low."]
527    #[inline(always)]
528    pub fn low(self) -> &'a mut W {
529        self.variant(PIO9_A::LOW)
530    }
531    #[doc = "Pin is high."]
532    #[inline(always)]
533    pub fn high(self) -> &'a mut W {
534        self.variant(PIO9_A::HIGH)
535    }
536}
537#[doc = "Field `PIO10` reader - Reads or writes pin state for pin PIOn_10."]
538pub type PIO10_R = crate::BitReader<PIO10_A>;
539#[doc = "Reads or writes pin state for pin PIOn_10.\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum PIO10_A {
542    #[doc = "0: Pin is low."]
543    LOW = 0,
544    #[doc = "1: Pin is high."]
545    HIGH = 1,
546}
547impl From<PIO10_A> for bool {
548    #[inline(always)]
549    fn from(variant: PIO10_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl PIO10_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> PIO10_A {
557        match self.bits {
558            false => PIO10_A::LOW,
559            true => PIO10_A::HIGH,
560        }
561    }
562    #[doc = "Checks if the value of the field is `LOW`"]
563    #[inline(always)]
564    pub fn is_low(&self) -> bool {
565        *self == PIO10_A::LOW
566    }
567    #[doc = "Checks if the value of the field is `HIGH`"]
568    #[inline(always)]
569    pub fn is_high(&self) -> bool {
570        *self == PIO10_A::HIGH
571    }
572}
573#[doc = "Field `PIO10` writer - Reads or writes pin state for pin PIOn_10."]
574pub type PIO10_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO10_A, O>;
575impl<'a, const O: u8> PIO10_W<'a, O> {
576    #[doc = "Pin is low."]
577    #[inline(always)]
578    pub fn low(self) -> &'a mut W {
579        self.variant(PIO10_A::LOW)
580    }
581    #[doc = "Pin is high."]
582    #[inline(always)]
583    pub fn high(self) -> &'a mut W {
584        self.variant(PIO10_A::HIGH)
585    }
586}
587#[doc = "Field `PIO11` reader - Reads or writes pin state for pin PIOn_11."]
588pub type PIO11_R = crate::BitReader<PIO11_A>;
589#[doc = "Reads or writes pin state for pin PIOn_11.\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum PIO11_A {
592    #[doc = "0: Pin is low."]
593    LOW = 0,
594    #[doc = "1: Pin is high."]
595    HIGH = 1,
596}
597impl From<PIO11_A> for bool {
598    #[inline(always)]
599    fn from(variant: PIO11_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl PIO11_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> PIO11_A {
607        match self.bits {
608            false => PIO11_A::LOW,
609            true => PIO11_A::HIGH,
610        }
611    }
612    #[doc = "Checks if the value of the field is `LOW`"]
613    #[inline(always)]
614    pub fn is_low(&self) -> bool {
615        *self == PIO11_A::LOW
616    }
617    #[doc = "Checks if the value of the field is `HIGH`"]
618    #[inline(always)]
619    pub fn is_high(&self) -> bool {
620        *self == PIO11_A::HIGH
621    }
622}
623#[doc = "Field `PIO11` writer - Reads or writes pin state for pin PIOn_11."]
624pub type PIO11_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO11_A, O>;
625impl<'a, const O: u8> PIO11_W<'a, O> {
626    #[doc = "Pin is low."]
627    #[inline(always)]
628    pub fn low(self) -> &'a mut W {
629        self.variant(PIO11_A::LOW)
630    }
631    #[doc = "Pin is high."]
632    #[inline(always)]
633    pub fn high(self) -> &'a mut W {
634        self.variant(PIO11_A::HIGH)
635    }
636}
637#[doc = "Field `PIO12` reader - Reads or writes pin state for pin PIOn_12."]
638pub type PIO12_R = crate::BitReader<PIO12_A>;
639#[doc = "Reads or writes pin state for pin PIOn_12.\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum PIO12_A {
642    #[doc = "0: Pin is low."]
643    LOW = 0,
644    #[doc = "1: Pin is high."]
645    HIGH = 1,
646}
647impl From<PIO12_A> for bool {
648    #[inline(always)]
649    fn from(variant: PIO12_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl PIO12_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> PIO12_A {
657        match self.bits {
658            false => PIO12_A::LOW,
659            true => PIO12_A::HIGH,
660        }
661    }
662    #[doc = "Checks if the value of the field is `LOW`"]
663    #[inline(always)]
664    pub fn is_low(&self) -> bool {
665        *self == PIO12_A::LOW
666    }
667    #[doc = "Checks if the value of the field is `HIGH`"]
668    #[inline(always)]
669    pub fn is_high(&self) -> bool {
670        *self == PIO12_A::HIGH
671    }
672}
673#[doc = "Field `PIO12` writer - Reads or writes pin state for pin PIOn_12."]
674pub type PIO12_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO12_A, O>;
675impl<'a, const O: u8> PIO12_W<'a, O> {
676    #[doc = "Pin is low."]
677    #[inline(always)]
678    pub fn low(self) -> &'a mut W {
679        self.variant(PIO12_A::LOW)
680    }
681    #[doc = "Pin is high."]
682    #[inline(always)]
683    pub fn high(self) -> &'a mut W {
684        self.variant(PIO12_A::HIGH)
685    }
686}
687#[doc = "Field `PIO13` reader - Reads or writes pin state for pin PIOn_13."]
688pub type PIO13_R = crate::BitReader<PIO13_A>;
689#[doc = "Reads or writes pin state for pin PIOn_13.\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum PIO13_A {
692    #[doc = "0: Pin is low."]
693    LOW = 0,
694    #[doc = "1: Pin is high."]
695    HIGH = 1,
696}
697impl From<PIO13_A> for bool {
698    #[inline(always)]
699    fn from(variant: PIO13_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl PIO13_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> PIO13_A {
707        match self.bits {
708            false => PIO13_A::LOW,
709            true => PIO13_A::HIGH,
710        }
711    }
712    #[doc = "Checks if the value of the field is `LOW`"]
713    #[inline(always)]
714    pub fn is_low(&self) -> bool {
715        *self == PIO13_A::LOW
716    }
717    #[doc = "Checks if the value of the field is `HIGH`"]
718    #[inline(always)]
719    pub fn is_high(&self) -> bool {
720        *self == PIO13_A::HIGH
721    }
722}
723#[doc = "Field `PIO13` writer - Reads or writes pin state for pin PIOn_13."]
724pub type PIO13_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO13_A, O>;
725impl<'a, const O: u8> PIO13_W<'a, O> {
726    #[doc = "Pin is low."]
727    #[inline(always)]
728    pub fn low(self) -> &'a mut W {
729        self.variant(PIO13_A::LOW)
730    }
731    #[doc = "Pin is high."]
732    #[inline(always)]
733    pub fn high(self) -> &'a mut W {
734        self.variant(PIO13_A::HIGH)
735    }
736}
737#[doc = "Field `PIO14` reader - Reads or writes pin state for pin PIOn_14."]
738pub type PIO14_R = crate::BitReader<PIO14_A>;
739#[doc = "Reads or writes pin state for pin PIOn_14.\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum PIO14_A {
742    #[doc = "0: Pin is low."]
743    LOW = 0,
744    #[doc = "1: Pin is high."]
745    HIGH = 1,
746}
747impl From<PIO14_A> for bool {
748    #[inline(always)]
749    fn from(variant: PIO14_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl PIO14_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> PIO14_A {
757        match self.bits {
758            false => PIO14_A::LOW,
759            true => PIO14_A::HIGH,
760        }
761    }
762    #[doc = "Checks if the value of the field is `LOW`"]
763    #[inline(always)]
764    pub fn is_low(&self) -> bool {
765        *self == PIO14_A::LOW
766    }
767    #[doc = "Checks if the value of the field is `HIGH`"]
768    #[inline(always)]
769    pub fn is_high(&self) -> bool {
770        *self == PIO14_A::HIGH
771    }
772}
773#[doc = "Field `PIO14` writer - Reads or writes pin state for pin PIOn_14."]
774pub type PIO14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO14_A, O>;
775impl<'a, const O: u8> PIO14_W<'a, O> {
776    #[doc = "Pin is low."]
777    #[inline(always)]
778    pub fn low(self) -> &'a mut W {
779        self.variant(PIO14_A::LOW)
780    }
781    #[doc = "Pin is high."]
782    #[inline(always)]
783    pub fn high(self) -> &'a mut W {
784        self.variant(PIO14_A::HIGH)
785    }
786}
787#[doc = "Field `PIO15` reader - Reads or writes pin state for pin PIOn_15."]
788pub type PIO15_R = crate::BitReader<PIO15_A>;
789#[doc = "Reads or writes pin state for pin PIOn_15.\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum PIO15_A {
792    #[doc = "0: Pin is low."]
793    LOW = 0,
794    #[doc = "1: Pin is high."]
795    HIGH = 1,
796}
797impl From<PIO15_A> for bool {
798    #[inline(always)]
799    fn from(variant: PIO15_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl PIO15_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> PIO15_A {
807        match self.bits {
808            false => PIO15_A::LOW,
809            true => PIO15_A::HIGH,
810        }
811    }
812    #[doc = "Checks if the value of the field is `LOW`"]
813    #[inline(always)]
814    pub fn is_low(&self) -> bool {
815        *self == PIO15_A::LOW
816    }
817    #[doc = "Checks if the value of the field is `HIGH`"]
818    #[inline(always)]
819    pub fn is_high(&self) -> bool {
820        *self == PIO15_A::HIGH
821    }
822}
823#[doc = "Field `PIO15` writer - Reads or writes pin state for pin PIOn_15."]
824pub type PIO15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO15_A, O>;
825impl<'a, const O: u8> PIO15_W<'a, O> {
826    #[doc = "Pin is low."]
827    #[inline(always)]
828    pub fn low(self) -> &'a mut W {
829        self.variant(PIO15_A::LOW)
830    }
831    #[doc = "Pin is high."]
832    #[inline(always)]
833    pub fn high(self) -> &'a mut W {
834        self.variant(PIO15_A::HIGH)
835    }
836}
837#[doc = "Field `PIO16` reader - Reads or writes pin state for pin PIOn_16."]
838pub type PIO16_R = crate::BitReader<PIO16_A>;
839#[doc = "Reads or writes pin state for pin PIOn_16.\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum PIO16_A {
842    #[doc = "0: Pin is low."]
843    LOW = 0,
844    #[doc = "1: Pin is high."]
845    HIGH = 1,
846}
847impl From<PIO16_A> for bool {
848    #[inline(always)]
849    fn from(variant: PIO16_A) -> Self {
850        variant as u8 != 0
851    }
852}
853impl PIO16_R {
854    #[doc = "Get enumerated values variant"]
855    #[inline(always)]
856    pub fn variant(&self) -> PIO16_A {
857        match self.bits {
858            false => PIO16_A::LOW,
859            true => PIO16_A::HIGH,
860        }
861    }
862    #[doc = "Checks if the value of the field is `LOW`"]
863    #[inline(always)]
864    pub fn is_low(&self) -> bool {
865        *self == PIO16_A::LOW
866    }
867    #[doc = "Checks if the value of the field is `HIGH`"]
868    #[inline(always)]
869    pub fn is_high(&self) -> bool {
870        *self == PIO16_A::HIGH
871    }
872}
873#[doc = "Field `PIO16` writer - Reads or writes pin state for pin PIOn_16."]
874pub type PIO16_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO16_A, O>;
875impl<'a, const O: u8> PIO16_W<'a, O> {
876    #[doc = "Pin is low."]
877    #[inline(always)]
878    pub fn low(self) -> &'a mut W {
879        self.variant(PIO16_A::LOW)
880    }
881    #[doc = "Pin is high."]
882    #[inline(always)]
883    pub fn high(self) -> &'a mut W {
884        self.variant(PIO16_A::HIGH)
885    }
886}
887#[doc = "Field `PIO17` reader - Reads or writes pin state for pin PIOn_17."]
888pub type PIO17_R = crate::BitReader<PIO17_A>;
889#[doc = "Reads or writes pin state for pin PIOn_17.\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq, Eq)]
891pub enum PIO17_A {
892    #[doc = "0: Pin is low."]
893    LOW = 0,
894    #[doc = "1: Pin is high."]
895    HIGH = 1,
896}
897impl From<PIO17_A> for bool {
898    #[inline(always)]
899    fn from(variant: PIO17_A) -> Self {
900        variant as u8 != 0
901    }
902}
903impl PIO17_R {
904    #[doc = "Get enumerated values variant"]
905    #[inline(always)]
906    pub fn variant(&self) -> PIO17_A {
907        match self.bits {
908            false => PIO17_A::LOW,
909            true => PIO17_A::HIGH,
910        }
911    }
912    #[doc = "Checks if the value of the field is `LOW`"]
913    #[inline(always)]
914    pub fn is_low(&self) -> bool {
915        *self == PIO17_A::LOW
916    }
917    #[doc = "Checks if the value of the field is `HIGH`"]
918    #[inline(always)]
919    pub fn is_high(&self) -> bool {
920        *self == PIO17_A::HIGH
921    }
922}
923#[doc = "Field `PIO17` writer - Reads or writes pin state for pin PIOn_17."]
924pub type PIO17_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO17_A, O>;
925impl<'a, const O: u8> PIO17_W<'a, O> {
926    #[doc = "Pin is low."]
927    #[inline(always)]
928    pub fn low(self) -> &'a mut W {
929        self.variant(PIO17_A::LOW)
930    }
931    #[doc = "Pin is high."]
932    #[inline(always)]
933    pub fn high(self) -> &'a mut W {
934        self.variant(PIO17_A::HIGH)
935    }
936}
937#[doc = "Field `PIO18` reader - Reads or writes pin state for pin PIOn_18."]
938pub type PIO18_R = crate::BitReader<PIO18_A>;
939#[doc = "Reads or writes pin state for pin PIOn_18.\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq, Eq)]
941pub enum PIO18_A {
942    #[doc = "0: Pin is low."]
943    LOW = 0,
944    #[doc = "1: Pin is high."]
945    HIGH = 1,
946}
947impl From<PIO18_A> for bool {
948    #[inline(always)]
949    fn from(variant: PIO18_A) -> Self {
950        variant as u8 != 0
951    }
952}
953impl PIO18_R {
954    #[doc = "Get enumerated values variant"]
955    #[inline(always)]
956    pub fn variant(&self) -> PIO18_A {
957        match self.bits {
958            false => PIO18_A::LOW,
959            true => PIO18_A::HIGH,
960        }
961    }
962    #[doc = "Checks if the value of the field is `LOW`"]
963    #[inline(always)]
964    pub fn is_low(&self) -> bool {
965        *self == PIO18_A::LOW
966    }
967    #[doc = "Checks if the value of the field is `HIGH`"]
968    #[inline(always)]
969    pub fn is_high(&self) -> bool {
970        *self == PIO18_A::HIGH
971    }
972}
973#[doc = "Field `PIO18` writer - Reads or writes pin state for pin PIOn_18."]
974pub type PIO18_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO18_A, O>;
975impl<'a, const O: u8> PIO18_W<'a, O> {
976    #[doc = "Pin is low."]
977    #[inline(always)]
978    pub fn low(self) -> &'a mut W {
979        self.variant(PIO18_A::LOW)
980    }
981    #[doc = "Pin is high."]
982    #[inline(always)]
983    pub fn high(self) -> &'a mut W {
984        self.variant(PIO18_A::HIGH)
985    }
986}
987#[doc = "Field `PIO19` reader - Reads or writes pin state for pin PIOn_19."]
988pub type PIO19_R = crate::BitReader<PIO19_A>;
989#[doc = "Reads or writes pin state for pin PIOn_19.\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq, Eq)]
991pub enum PIO19_A {
992    #[doc = "0: Pin is low."]
993    LOW = 0,
994    #[doc = "1: Pin is high."]
995    HIGH = 1,
996}
997impl From<PIO19_A> for bool {
998    #[inline(always)]
999    fn from(variant: PIO19_A) -> Self {
1000        variant as u8 != 0
1001    }
1002}
1003impl PIO19_R {
1004    #[doc = "Get enumerated values variant"]
1005    #[inline(always)]
1006    pub fn variant(&self) -> PIO19_A {
1007        match self.bits {
1008            false => PIO19_A::LOW,
1009            true => PIO19_A::HIGH,
1010        }
1011    }
1012    #[doc = "Checks if the value of the field is `LOW`"]
1013    #[inline(always)]
1014    pub fn is_low(&self) -> bool {
1015        *self == PIO19_A::LOW
1016    }
1017    #[doc = "Checks if the value of the field is `HIGH`"]
1018    #[inline(always)]
1019    pub fn is_high(&self) -> bool {
1020        *self == PIO19_A::HIGH
1021    }
1022}
1023#[doc = "Field `PIO19` writer - Reads or writes pin state for pin PIOn_19."]
1024pub type PIO19_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO19_A, O>;
1025impl<'a, const O: u8> PIO19_W<'a, O> {
1026    #[doc = "Pin is low."]
1027    #[inline(always)]
1028    pub fn low(self) -> &'a mut W {
1029        self.variant(PIO19_A::LOW)
1030    }
1031    #[doc = "Pin is high."]
1032    #[inline(always)]
1033    pub fn high(self) -> &'a mut W {
1034        self.variant(PIO19_A::HIGH)
1035    }
1036}
1037#[doc = "Field `PIO20` reader - Reads or writes pin state for pin PIOn_20."]
1038pub type PIO20_R = crate::BitReader<PIO20_A>;
1039#[doc = "Reads or writes pin state for pin PIOn_20.\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1041pub enum PIO20_A {
1042    #[doc = "0: Pin is low."]
1043    LOW = 0,
1044    #[doc = "1: Pin is high."]
1045    HIGH = 1,
1046}
1047impl From<PIO20_A> for bool {
1048    #[inline(always)]
1049    fn from(variant: PIO20_A) -> Self {
1050        variant as u8 != 0
1051    }
1052}
1053impl PIO20_R {
1054    #[doc = "Get enumerated values variant"]
1055    #[inline(always)]
1056    pub fn variant(&self) -> PIO20_A {
1057        match self.bits {
1058            false => PIO20_A::LOW,
1059            true => PIO20_A::HIGH,
1060        }
1061    }
1062    #[doc = "Checks if the value of the field is `LOW`"]
1063    #[inline(always)]
1064    pub fn is_low(&self) -> bool {
1065        *self == PIO20_A::LOW
1066    }
1067    #[doc = "Checks if the value of the field is `HIGH`"]
1068    #[inline(always)]
1069    pub fn is_high(&self) -> bool {
1070        *self == PIO20_A::HIGH
1071    }
1072}
1073#[doc = "Field `PIO20` writer - Reads or writes pin state for pin PIOn_20."]
1074pub type PIO20_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO20_A, O>;
1075impl<'a, const O: u8> PIO20_W<'a, O> {
1076    #[doc = "Pin is low."]
1077    #[inline(always)]
1078    pub fn low(self) -> &'a mut W {
1079        self.variant(PIO20_A::LOW)
1080    }
1081    #[doc = "Pin is high."]
1082    #[inline(always)]
1083    pub fn high(self) -> &'a mut W {
1084        self.variant(PIO20_A::HIGH)
1085    }
1086}
1087#[doc = "Field `PIO21` reader - Reads or writes pin state for pin PIOn_21."]
1088pub type PIO21_R = crate::BitReader<PIO21_A>;
1089#[doc = "Reads or writes pin state for pin PIOn_21.\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1091pub enum PIO21_A {
1092    #[doc = "0: Pin is low."]
1093    LOW = 0,
1094    #[doc = "1: Pin is high."]
1095    HIGH = 1,
1096}
1097impl From<PIO21_A> for bool {
1098    #[inline(always)]
1099    fn from(variant: PIO21_A) -> Self {
1100        variant as u8 != 0
1101    }
1102}
1103impl PIO21_R {
1104    #[doc = "Get enumerated values variant"]
1105    #[inline(always)]
1106    pub fn variant(&self) -> PIO21_A {
1107        match self.bits {
1108            false => PIO21_A::LOW,
1109            true => PIO21_A::HIGH,
1110        }
1111    }
1112    #[doc = "Checks if the value of the field is `LOW`"]
1113    #[inline(always)]
1114    pub fn is_low(&self) -> bool {
1115        *self == PIO21_A::LOW
1116    }
1117    #[doc = "Checks if the value of the field is `HIGH`"]
1118    #[inline(always)]
1119    pub fn is_high(&self) -> bool {
1120        *self == PIO21_A::HIGH
1121    }
1122}
1123#[doc = "Field `PIO21` writer - Reads or writes pin state for pin PIOn_21."]
1124pub type PIO21_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO21_A, O>;
1125impl<'a, const O: u8> PIO21_W<'a, O> {
1126    #[doc = "Pin is low."]
1127    #[inline(always)]
1128    pub fn low(self) -> &'a mut W {
1129        self.variant(PIO21_A::LOW)
1130    }
1131    #[doc = "Pin is high."]
1132    #[inline(always)]
1133    pub fn high(self) -> &'a mut W {
1134        self.variant(PIO21_A::HIGH)
1135    }
1136}
1137#[doc = "Field `PIO22` reader - Reads or writes pin state for pin PIOn_22."]
1138pub type PIO22_R = crate::BitReader<PIO22_A>;
1139#[doc = "Reads or writes pin state for pin PIOn_22.\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1141pub enum PIO22_A {
1142    #[doc = "0: Pin is low."]
1143    LOW = 0,
1144    #[doc = "1: Pin is high."]
1145    HIGH = 1,
1146}
1147impl From<PIO22_A> for bool {
1148    #[inline(always)]
1149    fn from(variant: PIO22_A) -> Self {
1150        variant as u8 != 0
1151    }
1152}
1153impl PIO22_R {
1154    #[doc = "Get enumerated values variant"]
1155    #[inline(always)]
1156    pub fn variant(&self) -> PIO22_A {
1157        match self.bits {
1158            false => PIO22_A::LOW,
1159            true => PIO22_A::HIGH,
1160        }
1161    }
1162    #[doc = "Checks if the value of the field is `LOW`"]
1163    #[inline(always)]
1164    pub fn is_low(&self) -> bool {
1165        *self == PIO22_A::LOW
1166    }
1167    #[doc = "Checks if the value of the field is `HIGH`"]
1168    #[inline(always)]
1169    pub fn is_high(&self) -> bool {
1170        *self == PIO22_A::HIGH
1171    }
1172}
1173#[doc = "Field `PIO22` writer - Reads or writes pin state for pin PIOn_22."]
1174pub type PIO22_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO22_A, O>;
1175impl<'a, const O: u8> PIO22_W<'a, O> {
1176    #[doc = "Pin is low."]
1177    #[inline(always)]
1178    pub fn low(self) -> &'a mut W {
1179        self.variant(PIO22_A::LOW)
1180    }
1181    #[doc = "Pin is high."]
1182    #[inline(always)]
1183    pub fn high(self) -> &'a mut W {
1184        self.variant(PIO22_A::HIGH)
1185    }
1186}
1187#[doc = "Field `PIO23` reader - Reads or writes pin state for pin PIOn_23."]
1188pub type PIO23_R = crate::BitReader<PIO23_A>;
1189#[doc = "Reads or writes pin state for pin PIOn_23.\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1191pub enum PIO23_A {
1192    #[doc = "0: Pin is low."]
1193    LOW = 0,
1194    #[doc = "1: Pin is high."]
1195    HIGH = 1,
1196}
1197impl From<PIO23_A> for bool {
1198    #[inline(always)]
1199    fn from(variant: PIO23_A) -> Self {
1200        variant as u8 != 0
1201    }
1202}
1203impl PIO23_R {
1204    #[doc = "Get enumerated values variant"]
1205    #[inline(always)]
1206    pub fn variant(&self) -> PIO23_A {
1207        match self.bits {
1208            false => PIO23_A::LOW,
1209            true => PIO23_A::HIGH,
1210        }
1211    }
1212    #[doc = "Checks if the value of the field is `LOW`"]
1213    #[inline(always)]
1214    pub fn is_low(&self) -> bool {
1215        *self == PIO23_A::LOW
1216    }
1217    #[doc = "Checks if the value of the field is `HIGH`"]
1218    #[inline(always)]
1219    pub fn is_high(&self) -> bool {
1220        *self == PIO23_A::HIGH
1221    }
1222}
1223#[doc = "Field `PIO23` writer - Reads or writes pin state for pin PIOn_23."]
1224pub type PIO23_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO23_A, O>;
1225impl<'a, const O: u8> PIO23_W<'a, O> {
1226    #[doc = "Pin is low."]
1227    #[inline(always)]
1228    pub fn low(self) -> &'a mut W {
1229        self.variant(PIO23_A::LOW)
1230    }
1231    #[doc = "Pin is high."]
1232    #[inline(always)]
1233    pub fn high(self) -> &'a mut W {
1234        self.variant(PIO23_A::HIGH)
1235    }
1236}
1237#[doc = "Field `PIO24` reader - Reads or writes pin state for pin PIOn_24."]
1238pub type PIO24_R = crate::BitReader<PIO24_A>;
1239#[doc = "Reads or writes pin state for pin PIOn_24.\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1241pub enum PIO24_A {
1242    #[doc = "0: Pin is low."]
1243    LOW = 0,
1244    #[doc = "1: Pin is high."]
1245    HIGH = 1,
1246}
1247impl From<PIO24_A> for bool {
1248    #[inline(always)]
1249    fn from(variant: PIO24_A) -> Self {
1250        variant as u8 != 0
1251    }
1252}
1253impl PIO24_R {
1254    #[doc = "Get enumerated values variant"]
1255    #[inline(always)]
1256    pub fn variant(&self) -> PIO24_A {
1257        match self.bits {
1258            false => PIO24_A::LOW,
1259            true => PIO24_A::HIGH,
1260        }
1261    }
1262    #[doc = "Checks if the value of the field is `LOW`"]
1263    #[inline(always)]
1264    pub fn is_low(&self) -> bool {
1265        *self == PIO24_A::LOW
1266    }
1267    #[doc = "Checks if the value of the field is `HIGH`"]
1268    #[inline(always)]
1269    pub fn is_high(&self) -> bool {
1270        *self == PIO24_A::HIGH
1271    }
1272}
1273#[doc = "Field `PIO24` writer - Reads or writes pin state for pin PIOn_24."]
1274pub type PIO24_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO24_A, O>;
1275impl<'a, const O: u8> PIO24_W<'a, O> {
1276    #[doc = "Pin is low."]
1277    #[inline(always)]
1278    pub fn low(self) -> &'a mut W {
1279        self.variant(PIO24_A::LOW)
1280    }
1281    #[doc = "Pin is high."]
1282    #[inline(always)]
1283    pub fn high(self) -> &'a mut W {
1284        self.variant(PIO24_A::HIGH)
1285    }
1286}
1287#[doc = "Field `PIO25` reader - Reads or writes pin state for pin PIOn_25."]
1288pub type PIO25_R = crate::BitReader<PIO25_A>;
1289#[doc = "Reads or writes pin state for pin PIOn_25.\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1291pub enum PIO25_A {
1292    #[doc = "0: Pin is low."]
1293    LOW = 0,
1294    #[doc = "1: Pin is high."]
1295    HIGH = 1,
1296}
1297impl From<PIO25_A> for bool {
1298    #[inline(always)]
1299    fn from(variant: PIO25_A) -> Self {
1300        variant as u8 != 0
1301    }
1302}
1303impl PIO25_R {
1304    #[doc = "Get enumerated values variant"]
1305    #[inline(always)]
1306    pub fn variant(&self) -> PIO25_A {
1307        match self.bits {
1308            false => PIO25_A::LOW,
1309            true => PIO25_A::HIGH,
1310        }
1311    }
1312    #[doc = "Checks if the value of the field is `LOW`"]
1313    #[inline(always)]
1314    pub fn is_low(&self) -> bool {
1315        *self == PIO25_A::LOW
1316    }
1317    #[doc = "Checks if the value of the field is `HIGH`"]
1318    #[inline(always)]
1319    pub fn is_high(&self) -> bool {
1320        *self == PIO25_A::HIGH
1321    }
1322}
1323#[doc = "Field `PIO25` writer - Reads or writes pin state for pin PIOn_25."]
1324pub type PIO25_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO25_A, O>;
1325impl<'a, const O: u8> PIO25_W<'a, O> {
1326    #[doc = "Pin is low."]
1327    #[inline(always)]
1328    pub fn low(self) -> &'a mut W {
1329        self.variant(PIO25_A::LOW)
1330    }
1331    #[doc = "Pin is high."]
1332    #[inline(always)]
1333    pub fn high(self) -> &'a mut W {
1334        self.variant(PIO25_A::HIGH)
1335    }
1336}
1337#[doc = "Field `PIO26` reader - Reads or writes pin state for pin PIOn_26."]
1338pub type PIO26_R = crate::BitReader<PIO26_A>;
1339#[doc = "Reads or writes pin state for pin PIOn_26.\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1341pub enum PIO26_A {
1342    #[doc = "0: Pin is low."]
1343    LOW = 0,
1344    #[doc = "1: Pin is high."]
1345    HIGH = 1,
1346}
1347impl From<PIO26_A> for bool {
1348    #[inline(always)]
1349    fn from(variant: PIO26_A) -> Self {
1350        variant as u8 != 0
1351    }
1352}
1353impl PIO26_R {
1354    #[doc = "Get enumerated values variant"]
1355    #[inline(always)]
1356    pub fn variant(&self) -> PIO26_A {
1357        match self.bits {
1358            false => PIO26_A::LOW,
1359            true => PIO26_A::HIGH,
1360        }
1361    }
1362    #[doc = "Checks if the value of the field is `LOW`"]
1363    #[inline(always)]
1364    pub fn is_low(&self) -> bool {
1365        *self == PIO26_A::LOW
1366    }
1367    #[doc = "Checks if the value of the field is `HIGH`"]
1368    #[inline(always)]
1369    pub fn is_high(&self) -> bool {
1370        *self == PIO26_A::HIGH
1371    }
1372}
1373#[doc = "Field `PIO26` writer - Reads or writes pin state for pin PIOn_26."]
1374pub type PIO26_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO26_A, O>;
1375impl<'a, const O: u8> PIO26_W<'a, O> {
1376    #[doc = "Pin is low."]
1377    #[inline(always)]
1378    pub fn low(self) -> &'a mut W {
1379        self.variant(PIO26_A::LOW)
1380    }
1381    #[doc = "Pin is high."]
1382    #[inline(always)]
1383    pub fn high(self) -> &'a mut W {
1384        self.variant(PIO26_A::HIGH)
1385    }
1386}
1387#[doc = "Field `PIO27` reader - Reads or writes pin state for pin PIOn_27."]
1388pub type PIO27_R = crate::BitReader<PIO27_A>;
1389#[doc = "Reads or writes pin state for pin PIOn_27.\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1391pub enum PIO27_A {
1392    #[doc = "0: Pin is low."]
1393    LOW = 0,
1394    #[doc = "1: Pin is high."]
1395    HIGH = 1,
1396}
1397impl From<PIO27_A> for bool {
1398    #[inline(always)]
1399    fn from(variant: PIO27_A) -> Self {
1400        variant as u8 != 0
1401    }
1402}
1403impl PIO27_R {
1404    #[doc = "Get enumerated values variant"]
1405    #[inline(always)]
1406    pub fn variant(&self) -> PIO27_A {
1407        match self.bits {
1408            false => PIO27_A::LOW,
1409            true => PIO27_A::HIGH,
1410        }
1411    }
1412    #[doc = "Checks if the value of the field is `LOW`"]
1413    #[inline(always)]
1414    pub fn is_low(&self) -> bool {
1415        *self == PIO27_A::LOW
1416    }
1417    #[doc = "Checks if the value of the field is `HIGH`"]
1418    #[inline(always)]
1419    pub fn is_high(&self) -> bool {
1420        *self == PIO27_A::HIGH
1421    }
1422}
1423#[doc = "Field `PIO27` writer - Reads or writes pin state for pin PIOn_27."]
1424pub type PIO27_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO27_A, O>;
1425impl<'a, const O: u8> PIO27_W<'a, O> {
1426    #[doc = "Pin is low."]
1427    #[inline(always)]
1428    pub fn low(self) -> &'a mut W {
1429        self.variant(PIO27_A::LOW)
1430    }
1431    #[doc = "Pin is high."]
1432    #[inline(always)]
1433    pub fn high(self) -> &'a mut W {
1434        self.variant(PIO27_A::HIGH)
1435    }
1436}
1437#[doc = "Field `PIO28` reader - Reads or writes pin state for pin PIOn_28."]
1438pub type PIO28_R = crate::BitReader<PIO28_A>;
1439#[doc = "Reads or writes pin state for pin PIOn_28.\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1441pub enum PIO28_A {
1442    #[doc = "0: Pin is low."]
1443    LOW = 0,
1444    #[doc = "1: Pin is high."]
1445    HIGH = 1,
1446}
1447impl From<PIO28_A> for bool {
1448    #[inline(always)]
1449    fn from(variant: PIO28_A) -> Self {
1450        variant as u8 != 0
1451    }
1452}
1453impl PIO28_R {
1454    #[doc = "Get enumerated values variant"]
1455    #[inline(always)]
1456    pub fn variant(&self) -> PIO28_A {
1457        match self.bits {
1458            false => PIO28_A::LOW,
1459            true => PIO28_A::HIGH,
1460        }
1461    }
1462    #[doc = "Checks if the value of the field is `LOW`"]
1463    #[inline(always)]
1464    pub fn is_low(&self) -> bool {
1465        *self == PIO28_A::LOW
1466    }
1467    #[doc = "Checks if the value of the field is `HIGH`"]
1468    #[inline(always)]
1469    pub fn is_high(&self) -> bool {
1470        *self == PIO28_A::HIGH
1471    }
1472}
1473#[doc = "Field `PIO28` writer - Reads or writes pin state for pin PIOn_28."]
1474pub type PIO28_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO28_A, O>;
1475impl<'a, const O: u8> PIO28_W<'a, O> {
1476    #[doc = "Pin is low."]
1477    #[inline(always)]
1478    pub fn low(self) -> &'a mut W {
1479        self.variant(PIO28_A::LOW)
1480    }
1481    #[doc = "Pin is high."]
1482    #[inline(always)]
1483    pub fn high(self) -> &'a mut W {
1484        self.variant(PIO28_A::HIGH)
1485    }
1486}
1487#[doc = "Field `PIO29` reader - Reads or writes pin state for pin PIOn_29."]
1488pub type PIO29_R = crate::BitReader<PIO29_A>;
1489#[doc = "Reads or writes pin state for pin PIOn_29.\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1491pub enum PIO29_A {
1492    #[doc = "0: Pin is low."]
1493    LOW = 0,
1494    #[doc = "1: Pin is high."]
1495    HIGH = 1,
1496}
1497impl From<PIO29_A> for bool {
1498    #[inline(always)]
1499    fn from(variant: PIO29_A) -> Self {
1500        variant as u8 != 0
1501    }
1502}
1503impl PIO29_R {
1504    #[doc = "Get enumerated values variant"]
1505    #[inline(always)]
1506    pub fn variant(&self) -> PIO29_A {
1507        match self.bits {
1508            false => PIO29_A::LOW,
1509            true => PIO29_A::HIGH,
1510        }
1511    }
1512    #[doc = "Checks if the value of the field is `LOW`"]
1513    #[inline(always)]
1514    pub fn is_low(&self) -> bool {
1515        *self == PIO29_A::LOW
1516    }
1517    #[doc = "Checks if the value of the field is `HIGH`"]
1518    #[inline(always)]
1519    pub fn is_high(&self) -> bool {
1520        *self == PIO29_A::HIGH
1521    }
1522}
1523#[doc = "Field `PIO29` writer - Reads or writes pin state for pin PIOn_29."]
1524pub type PIO29_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO29_A, O>;
1525impl<'a, const O: u8> PIO29_W<'a, O> {
1526    #[doc = "Pin is low."]
1527    #[inline(always)]
1528    pub fn low(self) -> &'a mut W {
1529        self.variant(PIO29_A::LOW)
1530    }
1531    #[doc = "Pin is high."]
1532    #[inline(always)]
1533    pub fn high(self) -> &'a mut W {
1534        self.variant(PIO29_A::HIGH)
1535    }
1536}
1537#[doc = "Field `PIO30` reader - Reads or writes pin state for pin PIOn_30."]
1538pub type PIO30_R = crate::BitReader<PIO30_A>;
1539#[doc = "Reads or writes pin state for pin PIOn_30.\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1541pub enum PIO30_A {
1542    #[doc = "0: Pin is low."]
1543    LOW = 0,
1544    #[doc = "1: Pin is high."]
1545    HIGH = 1,
1546}
1547impl From<PIO30_A> for bool {
1548    #[inline(always)]
1549    fn from(variant: PIO30_A) -> Self {
1550        variant as u8 != 0
1551    }
1552}
1553impl PIO30_R {
1554    #[doc = "Get enumerated values variant"]
1555    #[inline(always)]
1556    pub fn variant(&self) -> PIO30_A {
1557        match self.bits {
1558            false => PIO30_A::LOW,
1559            true => PIO30_A::HIGH,
1560        }
1561    }
1562    #[doc = "Checks if the value of the field is `LOW`"]
1563    #[inline(always)]
1564    pub fn is_low(&self) -> bool {
1565        *self == PIO30_A::LOW
1566    }
1567    #[doc = "Checks if the value of the field is `HIGH`"]
1568    #[inline(always)]
1569    pub fn is_high(&self) -> bool {
1570        *self == PIO30_A::HIGH
1571    }
1572}
1573#[doc = "Field `PIO30` writer - Reads or writes pin state for pin PIOn_30."]
1574pub type PIO30_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO30_A, O>;
1575impl<'a, const O: u8> PIO30_W<'a, O> {
1576    #[doc = "Pin is low."]
1577    #[inline(always)]
1578    pub fn low(self) -> &'a mut W {
1579        self.variant(PIO30_A::LOW)
1580    }
1581    #[doc = "Pin is high."]
1582    #[inline(always)]
1583    pub fn high(self) -> &'a mut W {
1584        self.variant(PIO30_A::HIGH)
1585    }
1586}
1587#[doc = "Field `PIO31` reader - Reads or writes pin state for pin PIOn_31."]
1588pub type PIO31_R = crate::BitReader<PIO31_A>;
1589#[doc = "Reads or writes pin state for pin PIOn_31.\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1591pub enum PIO31_A {
1592    #[doc = "0: Pin is low."]
1593    LOW = 0,
1594    #[doc = "1: Pin is high."]
1595    HIGH = 1,
1596}
1597impl From<PIO31_A> for bool {
1598    #[inline(always)]
1599    fn from(variant: PIO31_A) -> Self {
1600        variant as u8 != 0
1601    }
1602}
1603impl PIO31_R {
1604    #[doc = "Get enumerated values variant"]
1605    #[inline(always)]
1606    pub fn variant(&self) -> PIO31_A {
1607        match self.bits {
1608            false => PIO31_A::LOW,
1609            true => PIO31_A::HIGH,
1610        }
1611    }
1612    #[doc = "Checks if the value of the field is `LOW`"]
1613    #[inline(always)]
1614    pub fn is_low(&self) -> bool {
1615        *self == PIO31_A::LOW
1616    }
1617    #[doc = "Checks if the value of the field is `HIGH`"]
1618    #[inline(always)]
1619    pub fn is_high(&self) -> bool {
1620        *self == PIO31_A::HIGH
1621    }
1622}
1623#[doc = "Field `PIO31` writer - Reads or writes pin state for pin PIOn_31."]
1624pub type PIO31_W<'a, const O: u8> = crate::BitWriter<'a, u32, PIN_SPEC, PIO31_A, O>;
1625impl<'a, const O: u8> PIO31_W<'a, O> {
1626    #[doc = "Pin is low."]
1627    #[inline(always)]
1628    pub fn low(self) -> &'a mut W {
1629        self.variant(PIO31_A::LOW)
1630    }
1631    #[doc = "Pin is high."]
1632    #[inline(always)]
1633    pub fn high(self) -> &'a mut W {
1634        self.variant(PIO31_A::HIGH)
1635    }
1636}
1637impl R {
1638    #[doc = "Bit 0 - Reads or writes pin state for pin PIOn_0."]
1639    #[inline(always)]
1640    pub fn pio0(&self) -> PIO0_R {
1641        PIO0_R::new((self.bits & 1) != 0)
1642    }
1643    #[doc = "Bit 1 - Reads or writes pin state for pin PIOn_1."]
1644    #[inline(always)]
1645    pub fn pio1(&self) -> PIO1_R {
1646        PIO1_R::new(((self.bits >> 1) & 1) != 0)
1647    }
1648    #[doc = "Bit 2 - Reads or writes pin state for pin PIOn_2."]
1649    #[inline(always)]
1650    pub fn pio2(&self) -> PIO2_R {
1651        PIO2_R::new(((self.bits >> 2) & 1) != 0)
1652    }
1653    #[doc = "Bit 3 - Reads or writes pin state for pin PIOn_3."]
1654    #[inline(always)]
1655    pub fn pio3(&self) -> PIO3_R {
1656        PIO3_R::new(((self.bits >> 3) & 1) != 0)
1657    }
1658    #[doc = "Bit 4 - Reads or writes pin state for pin PIOn_4."]
1659    #[inline(always)]
1660    pub fn pio4(&self) -> PIO4_R {
1661        PIO4_R::new(((self.bits >> 4) & 1) != 0)
1662    }
1663    #[doc = "Bit 5 - Reads or writes pin state for pin PIOn_5."]
1664    #[inline(always)]
1665    pub fn pio5(&self) -> PIO5_R {
1666        PIO5_R::new(((self.bits >> 5) & 1) != 0)
1667    }
1668    #[doc = "Bit 6 - Reads or writes pin state for pin PIOn_6."]
1669    #[inline(always)]
1670    pub fn pio6(&self) -> PIO6_R {
1671        PIO6_R::new(((self.bits >> 6) & 1) != 0)
1672    }
1673    #[doc = "Bit 7 - Reads or writes pin state for pin PIOn_7."]
1674    #[inline(always)]
1675    pub fn pio7(&self) -> PIO7_R {
1676        PIO7_R::new(((self.bits >> 7) & 1) != 0)
1677    }
1678    #[doc = "Bit 8 - Reads or writes pin state for pin PIOn_8."]
1679    #[inline(always)]
1680    pub fn pio8(&self) -> PIO8_R {
1681        PIO8_R::new(((self.bits >> 8) & 1) != 0)
1682    }
1683    #[doc = "Bit 9 - Reads or writes pin state for pin PIOn_9."]
1684    #[inline(always)]
1685    pub fn pio9(&self) -> PIO9_R {
1686        PIO9_R::new(((self.bits >> 9) & 1) != 0)
1687    }
1688    #[doc = "Bit 10 - Reads or writes pin state for pin PIOn_10."]
1689    #[inline(always)]
1690    pub fn pio10(&self) -> PIO10_R {
1691        PIO10_R::new(((self.bits >> 10) & 1) != 0)
1692    }
1693    #[doc = "Bit 11 - Reads or writes pin state for pin PIOn_11."]
1694    #[inline(always)]
1695    pub fn pio11(&self) -> PIO11_R {
1696        PIO11_R::new(((self.bits >> 11) & 1) != 0)
1697    }
1698    #[doc = "Bit 12 - Reads or writes pin state for pin PIOn_12."]
1699    #[inline(always)]
1700    pub fn pio12(&self) -> PIO12_R {
1701        PIO12_R::new(((self.bits >> 12) & 1) != 0)
1702    }
1703    #[doc = "Bit 13 - Reads or writes pin state for pin PIOn_13."]
1704    #[inline(always)]
1705    pub fn pio13(&self) -> PIO13_R {
1706        PIO13_R::new(((self.bits >> 13) & 1) != 0)
1707    }
1708    #[doc = "Bit 14 - Reads or writes pin state for pin PIOn_14."]
1709    #[inline(always)]
1710    pub fn pio14(&self) -> PIO14_R {
1711        PIO14_R::new(((self.bits >> 14) & 1) != 0)
1712    }
1713    #[doc = "Bit 15 - Reads or writes pin state for pin PIOn_15."]
1714    #[inline(always)]
1715    pub fn pio15(&self) -> PIO15_R {
1716        PIO15_R::new(((self.bits >> 15) & 1) != 0)
1717    }
1718    #[doc = "Bit 16 - Reads or writes pin state for pin PIOn_16."]
1719    #[inline(always)]
1720    pub fn pio16(&self) -> PIO16_R {
1721        PIO16_R::new(((self.bits >> 16) & 1) != 0)
1722    }
1723    #[doc = "Bit 17 - Reads or writes pin state for pin PIOn_17."]
1724    #[inline(always)]
1725    pub fn pio17(&self) -> PIO17_R {
1726        PIO17_R::new(((self.bits >> 17) & 1) != 0)
1727    }
1728    #[doc = "Bit 18 - Reads or writes pin state for pin PIOn_18."]
1729    #[inline(always)]
1730    pub fn pio18(&self) -> PIO18_R {
1731        PIO18_R::new(((self.bits >> 18) & 1) != 0)
1732    }
1733    #[doc = "Bit 19 - Reads or writes pin state for pin PIOn_19."]
1734    #[inline(always)]
1735    pub fn pio19(&self) -> PIO19_R {
1736        PIO19_R::new(((self.bits >> 19) & 1) != 0)
1737    }
1738    #[doc = "Bit 20 - Reads or writes pin state for pin PIOn_20."]
1739    #[inline(always)]
1740    pub fn pio20(&self) -> PIO20_R {
1741        PIO20_R::new(((self.bits >> 20) & 1) != 0)
1742    }
1743    #[doc = "Bit 21 - Reads or writes pin state for pin PIOn_21."]
1744    #[inline(always)]
1745    pub fn pio21(&self) -> PIO21_R {
1746        PIO21_R::new(((self.bits >> 21) & 1) != 0)
1747    }
1748    #[doc = "Bit 22 - Reads or writes pin state for pin PIOn_22."]
1749    #[inline(always)]
1750    pub fn pio22(&self) -> PIO22_R {
1751        PIO22_R::new(((self.bits >> 22) & 1) != 0)
1752    }
1753    #[doc = "Bit 23 - Reads or writes pin state for pin PIOn_23."]
1754    #[inline(always)]
1755    pub fn pio23(&self) -> PIO23_R {
1756        PIO23_R::new(((self.bits >> 23) & 1) != 0)
1757    }
1758    #[doc = "Bit 24 - Reads or writes pin state for pin PIOn_24."]
1759    #[inline(always)]
1760    pub fn pio24(&self) -> PIO24_R {
1761        PIO24_R::new(((self.bits >> 24) & 1) != 0)
1762    }
1763    #[doc = "Bit 25 - Reads or writes pin state for pin PIOn_25."]
1764    #[inline(always)]
1765    pub fn pio25(&self) -> PIO25_R {
1766        PIO25_R::new(((self.bits >> 25) & 1) != 0)
1767    }
1768    #[doc = "Bit 26 - Reads or writes pin state for pin PIOn_26."]
1769    #[inline(always)]
1770    pub fn pio26(&self) -> PIO26_R {
1771        PIO26_R::new(((self.bits >> 26) & 1) != 0)
1772    }
1773    #[doc = "Bit 27 - Reads or writes pin state for pin PIOn_27."]
1774    #[inline(always)]
1775    pub fn pio27(&self) -> PIO27_R {
1776        PIO27_R::new(((self.bits >> 27) & 1) != 0)
1777    }
1778    #[doc = "Bit 28 - Reads or writes pin state for pin PIOn_28."]
1779    #[inline(always)]
1780    pub fn pio28(&self) -> PIO28_R {
1781        PIO28_R::new(((self.bits >> 28) & 1) != 0)
1782    }
1783    #[doc = "Bit 29 - Reads or writes pin state for pin PIOn_29."]
1784    #[inline(always)]
1785    pub fn pio29(&self) -> PIO29_R {
1786        PIO29_R::new(((self.bits >> 29) & 1) != 0)
1787    }
1788    #[doc = "Bit 30 - Reads or writes pin state for pin PIOn_30."]
1789    #[inline(always)]
1790    pub fn pio30(&self) -> PIO30_R {
1791        PIO30_R::new(((self.bits >> 30) & 1) != 0)
1792    }
1793    #[doc = "Bit 31 - Reads or writes pin state for pin PIOn_31."]
1794    #[inline(always)]
1795    pub fn pio31(&self) -> PIO31_R {
1796        PIO31_R::new(((self.bits >> 31) & 1) != 0)
1797    }
1798}
1799impl W {
1800    #[doc = "Bit 0 - Reads or writes pin state for pin PIOn_0."]
1801    #[inline(always)]
1802    pub fn pio0(&mut self) -> PIO0_W<0> {
1803        PIO0_W::new(self)
1804    }
1805    #[doc = "Bit 1 - Reads or writes pin state for pin PIOn_1."]
1806    #[inline(always)]
1807    pub fn pio1(&mut self) -> PIO1_W<1> {
1808        PIO1_W::new(self)
1809    }
1810    #[doc = "Bit 2 - Reads or writes pin state for pin PIOn_2."]
1811    #[inline(always)]
1812    pub fn pio2(&mut self) -> PIO2_W<2> {
1813        PIO2_W::new(self)
1814    }
1815    #[doc = "Bit 3 - Reads or writes pin state for pin PIOn_3."]
1816    #[inline(always)]
1817    pub fn pio3(&mut self) -> PIO3_W<3> {
1818        PIO3_W::new(self)
1819    }
1820    #[doc = "Bit 4 - Reads or writes pin state for pin PIOn_4."]
1821    #[inline(always)]
1822    pub fn pio4(&mut self) -> PIO4_W<4> {
1823        PIO4_W::new(self)
1824    }
1825    #[doc = "Bit 5 - Reads or writes pin state for pin PIOn_5."]
1826    #[inline(always)]
1827    pub fn pio5(&mut self) -> PIO5_W<5> {
1828        PIO5_W::new(self)
1829    }
1830    #[doc = "Bit 6 - Reads or writes pin state for pin PIOn_6."]
1831    #[inline(always)]
1832    pub fn pio6(&mut self) -> PIO6_W<6> {
1833        PIO6_W::new(self)
1834    }
1835    #[doc = "Bit 7 - Reads or writes pin state for pin PIOn_7."]
1836    #[inline(always)]
1837    pub fn pio7(&mut self) -> PIO7_W<7> {
1838        PIO7_W::new(self)
1839    }
1840    #[doc = "Bit 8 - Reads or writes pin state for pin PIOn_8."]
1841    #[inline(always)]
1842    pub fn pio8(&mut self) -> PIO8_W<8> {
1843        PIO8_W::new(self)
1844    }
1845    #[doc = "Bit 9 - Reads or writes pin state for pin PIOn_9."]
1846    #[inline(always)]
1847    pub fn pio9(&mut self) -> PIO9_W<9> {
1848        PIO9_W::new(self)
1849    }
1850    #[doc = "Bit 10 - Reads or writes pin state for pin PIOn_10."]
1851    #[inline(always)]
1852    pub fn pio10(&mut self) -> PIO10_W<10> {
1853        PIO10_W::new(self)
1854    }
1855    #[doc = "Bit 11 - Reads or writes pin state for pin PIOn_11."]
1856    #[inline(always)]
1857    pub fn pio11(&mut self) -> PIO11_W<11> {
1858        PIO11_W::new(self)
1859    }
1860    #[doc = "Bit 12 - Reads or writes pin state for pin PIOn_12."]
1861    #[inline(always)]
1862    pub fn pio12(&mut self) -> PIO12_W<12> {
1863        PIO12_W::new(self)
1864    }
1865    #[doc = "Bit 13 - Reads or writes pin state for pin PIOn_13."]
1866    #[inline(always)]
1867    pub fn pio13(&mut self) -> PIO13_W<13> {
1868        PIO13_W::new(self)
1869    }
1870    #[doc = "Bit 14 - Reads or writes pin state for pin PIOn_14."]
1871    #[inline(always)]
1872    pub fn pio14(&mut self) -> PIO14_W<14> {
1873        PIO14_W::new(self)
1874    }
1875    #[doc = "Bit 15 - Reads or writes pin state for pin PIOn_15."]
1876    #[inline(always)]
1877    pub fn pio15(&mut self) -> PIO15_W<15> {
1878        PIO15_W::new(self)
1879    }
1880    #[doc = "Bit 16 - Reads or writes pin state for pin PIOn_16."]
1881    #[inline(always)]
1882    pub fn pio16(&mut self) -> PIO16_W<16> {
1883        PIO16_W::new(self)
1884    }
1885    #[doc = "Bit 17 - Reads or writes pin state for pin PIOn_17."]
1886    #[inline(always)]
1887    pub fn pio17(&mut self) -> PIO17_W<17> {
1888        PIO17_W::new(self)
1889    }
1890    #[doc = "Bit 18 - Reads or writes pin state for pin PIOn_18."]
1891    #[inline(always)]
1892    pub fn pio18(&mut self) -> PIO18_W<18> {
1893        PIO18_W::new(self)
1894    }
1895    #[doc = "Bit 19 - Reads or writes pin state for pin PIOn_19."]
1896    #[inline(always)]
1897    pub fn pio19(&mut self) -> PIO19_W<19> {
1898        PIO19_W::new(self)
1899    }
1900    #[doc = "Bit 20 - Reads or writes pin state for pin PIOn_20."]
1901    #[inline(always)]
1902    pub fn pio20(&mut self) -> PIO20_W<20> {
1903        PIO20_W::new(self)
1904    }
1905    #[doc = "Bit 21 - Reads or writes pin state for pin PIOn_21."]
1906    #[inline(always)]
1907    pub fn pio21(&mut self) -> PIO21_W<21> {
1908        PIO21_W::new(self)
1909    }
1910    #[doc = "Bit 22 - Reads or writes pin state for pin PIOn_22."]
1911    #[inline(always)]
1912    pub fn pio22(&mut self) -> PIO22_W<22> {
1913        PIO22_W::new(self)
1914    }
1915    #[doc = "Bit 23 - Reads or writes pin state for pin PIOn_23."]
1916    #[inline(always)]
1917    pub fn pio23(&mut self) -> PIO23_W<23> {
1918        PIO23_W::new(self)
1919    }
1920    #[doc = "Bit 24 - Reads or writes pin state for pin PIOn_24."]
1921    #[inline(always)]
1922    pub fn pio24(&mut self) -> PIO24_W<24> {
1923        PIO24_W::new(self)
1924    }
1925    #[doc = "Bit 25 - Reads or writes pin state for pin PIOn_25."]
1926    #[inline(always)]
1927    pub fn pio25(&mut self) -> PIO25_W<25> {
1928        PIO25_W::new(self)
1929    }
1930    #[doc = "Bit 26 - Reads or writes pin state for pin PIOn_26."]
1931    #[inline(always)]
1932    pub fn pio26(&mut self) -> PIO26_W<26> {
1933        PIO26_W::new(self)
1934    }
1935    #[doc = "Bit 27 - Reads or writes pin state for pin PIOn_27."]
1936    #[inline(always)]
1937    pub fn pio27(&mut self) -> PIO27_W<27> {
1938        PIO27_W::new(self)
1939    }
1940    #[doc = "Bit 28 - Reads or writes pin state for pin PIOn_28."]
1941    #[inline(always)]
1942    pub fn pio28(&mut self) -> PIO28_W<28> {
1943        PIO28_W::new(self)
1944    }
1945    #[doc = "Bit 29 - Reads or writes pin state for pin PIOn_29."]
1946    #[inline(always)]
1947    pub fn pio29(&mut self) -> PIO29_W<29> {
1948        PIO29_W::new(self)
1949    }
1950    #[doc = "Bit 30 - Reads or writes pin state for pin PIOn_30."]
1951    #[inline(always)]
1952    pub fn pio30(&mut self) -> PIO30_W<30> {
1953        PIO30_W::new(self)
1954    }
1955    #[doc = "Bit 31 - Reads or writes pin state for pin PIOn_31."]
1956    #[inline(always)]
1957    pub fn pio31(&mut self) -> PIO31_W<31> {
1958        PIO31_W::new(self)
1959    }
1960    #[doc = "Writes raw bits to the register."]
1961    #[inline(always)]
1962    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1963        self.0.bits(bits);
1964        self
1965    }
1966}
1967#[doc = "Port pin register for all port GPIO pins.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pin](index.html) module"]
1968pub struct PIN_SPEC;
1969impl crate::RegisterSpec for PIN_SPEC {
1970    type Ux = u32;
1971}
1972#[doc = "`read()` method returns [pin::R](R) reader structure"]
1973impl crate::Readable for PIN_SPEC {
1974    type Reader = R;
1975}
1976#[doc = "`write(|w| ..)` method takes [pin::W](W) writer structure"]
1977impl crate::Writable for PIN_SPEC {
1978    type Writer = W;
1979}
1980#[doc = "`reset()` method sets PIN[%s]
1981to value 0"]
1982impl crate::Resettable for PIN_SPEC {
1983    #[inline(always)]
1984    fn reset_value() -> Self::Ux {
1985        0
1986    }
1987}