mimxrt595s/secgpio/
mask0.rs

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