mcxa_pac/port0/
gpchr.rs

1#[doc = "Register `GPCHR` reader"]
2pub type R = crate::R<GpchrSpec>;
3#[doc = "Register `GPCHR` writer"]
4pub type W = crate::W<GpchrSpec>;
5#[doc = "Field `GPWD` reader - Global Pin Write Data"]
6pub type GpwdR = crate::FieldReader<u16>;
7#[doc = "Field `GPWD` writer - Global Pin Write Data"]
8pub type GpwdW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
10#[cfg_attr(feature = "defmt", derive(defmt::Format))]
11#[derive(Clone, Copy, Debug, PartialEq, Eq)]
12pub enum Gpwe16 {
13    #[doc = "0: Not updated"]
14    Gpwe0 = 0,
15    #[doc = "1: Updated"]
16    Gpwe1 = 1,
17}
18impl From<Gpwe16> for bool {
19    #[inline(always)]
20    fn from(variant: Gpwe16) -> Self {
21        variant as u8 != 0
22    }
23}
24#[doc = "Field `GPWE16` reader - Global Pin Write Enable"]
25pub type Gpwe16R = crate::BitReader<Gpwe16>;
26impl Gpwe16R {
27    #[doc = "Get enumerated values variant"]
28    #[inline(always)]
29    pub const fn variant(&self) -> Gpwe16 {
30        match self.bits {
31            false => Gpwe16::Gpwe0,
32            true => Gpwe16::Gpwe1,
33        }
34    }
35    #[doc = "Not updated"]
36    #[inline(always)]
37    pub fn is_gpwe0(&self) -> bool {
38        *self == Gpwe16::Gpwe0
39    }
40    #[doc = "Updated"]
41    #[inline(always)]
42    pub fn is_gpwe1(&self) -> bool {
43        *self == Gpwe16::Gpwe1
44    }
45}
46#[doc = "Field `GPWE16` writer - Global Pin Write Enable"]
47pub type Gpwe16W<'a, REG> = crate::BitWriter<'a, REG, Gpwe16>;
48impl<'a, REG> Gpwe16W<'a, REG>
49where
50    REG: crate::Writable + crate::RegisterSpec,
51{
52    #[doc = "Not updated"]
53    #[inline(always)]
54    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
55        self.variant(Gpwe16::Gpwe0)
56    }
57    #[doc = "Updated"]
58    #[inline(always)]
59    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
60        self.variant(Gpwe16::Gpwe1)
61    }
62}
63#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
64#[cfg_attr(feature = "defmt", derive(defmt::Format))]
65#[derive(Clone, Copy, Debug, PartialEq, Eq)]
66pub enum Gpwe17 {
67    #[doc = "0: Not updated"]
68    Gpwe0 = 0,
69    #[doc = "1: Updated"]
70    Gpwe1 = 1,
71}
72impl From<Gpwe17> for bool {
73    #[inline(always)]
74    fn from(variant: Gpwe17) -> Self {
75        variant as u8 != 0
76    }
77}
78#[doc = "Field `GPWE17` reader - Global Pin Write Enable"]
79pub type Gpwe17R = crate::BitReader<Gpwe17>;
80impl Gpwe17R {
81    #[doc = "Get enumerated values variant"]
82    #[inline(always)]
83    pub const fn variant(&self) -> Gpwe17 {
84        match self.bits {
85            false => Gpwe17::Gpwe0,
86            true => Gpwe17::Gpwe1,
87        }
88    }
89    #[doc = "Not updated"]
90    #[inline(always)]
91    pub fn is_gpwe0(&self) -> bool {
92        *self == Gpwe17::Gpwe0
93    }
94    #[doc = "Updated"]
95    #[inline(always)]
96    pub fn is_gpwe1(&self) -> bool {
97        *self == Gpwe17::Gpwe1
98    }
99}
100#[doc = "Field `GPWE17` writer - Global Pin Write Enable"]
101pub type Gpwe17W<'a, REG> = crate::BitWriter<'a, REG, Gpwe17>;
102impl<'a, REG> Gpwe17W<'a, REG>
103where
104    REG: crate::Writable + crate::RegisterSpec,
105{
106    #[doc = "Not updated"]
107    #[inline(always)]
108    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
109        self.variant(Gpwe17::Gpwe0)
110    }
111    #[doc = "Updated"]
112    #[inline(always)]
113    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
114        self.variant(Gpwe17::Gpwe1)
115    }
116}
117#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
118#[cfg_attr(feature = "defmt", derive(defmt::Format))]
119#[derive(Clone, Copy, Debug, PartialEq, Eq)]
120pub enum Gpwe18 {
121    #[doc = "0: Not updated"]
122    Gpwe0 = 0,
123    #[doc = "1: Updated"]
124    Gpwe1 = 1,
125}
126impl From<Gpwe18> for bool {
127    #[inline(always)]
128    fn from(variant: Gpwe18) -> Self {
129        variant as u8 != 0
130    }
131}
132#[doc = "Field `GPWE18` reader - Global Pin Write Enable"]
133pub type Gpwe18R = crate::BitReader<Gpwe18>;
134impl Gpwe18R {
135    #[doc = "Get enumerated values variant"]
136    #[inline(always)]
137    pub const fn variant(&self) -> Gpwe18 {
138        match self.bits {
139            false => Gpwe18::Gpwe0,
140            true => Gpwe18::Gpwe1,
141        }
142    }
143    #[doc = "Not updated"]
144    #[inline(always)]
145    pub fn is_gpwe0(&self) -> bool {
146        *self == Gpwe18::Gpwe0
147    }
148    #[doc = "Updated"]
149    #[inline(always)]
150    pub fn is_gpwe1(&self) -> bool {
151        *self == Gpwe18::Gpwe1
152    }
153}
154#[doc = "Field `GPWE18` writer - Global Pin Write Enable"]
155pub type Gpwe18W<'a, REG> = crate::BitWriter<'a, REG, Gpwe18>;
156impl<'a, REG> Gpwe18W<'a, REG>
157where
158    REG: crate::Writable + crate::RegisterSpec,
159{
160    #[doc = "Not updated"]
161    #[inline(always)]
162    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
163        self.variant(Gpwe18::Gpwe0)
164    }
165    #[doc = "Updated"]
166    #[inline(always)]
167    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
168        self.variant(Gpwe18::Gpwe1)
169    }
170}
171#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
172#[cfg_attr(feature = "defmt", derive(defmt::Format))]
173#[derive(Clone, Copy, Debug, PartialEq, Eq)]
174pub enum Gpwe19 {
175    #[doc = "0: Not updated"]
176    Gpwe0 = 0,
177    #[doc = "1: Updated"]
178    Gpwe1 = 1,
179}
180impl From<Gpwe19> for bool {
181    #[inline(always)]
182    fn from(variant: Gpwe19) -> Self {
183        variant as u8 != 0
184    }
185}
186#[doc = "Field `GPWE19` reader - Global Pin Write Enable"]
187pub type Gpwe19R = crate::BitReader<Gpwe19>;
188impl Gpwe19R {
189    #[doc = "Get enumerated values variant"]
190    #[inline(always)]
191    pub const fn variant(&self) -> Gpwe19 {
192        match self.bits {
193            false => Gpwe19::Gpwe0,
194            true => Gpwe19::Gpwe1,
195        }
196    }
197    #[doc = "Not updated"]
198    #[inline(always)]
199    pub fn is_gpwe0(&self) -> bool {
200        *self == Gpwe19::Gpwe0
201    }
202    #[doc = "Updated"]
203    #[inline(always)]
204    pub fn is_gpwe1(&self) -> bool {
205        *self == Gpwe19::Gpwe1
206    }
207}
208#[doc = "Field `GPWE19` writer - Global Pin Write Enable"]
209pub type Gpwe19W<'a, REG> = crate::BitWriter<'a, REG, Gpwe19>;
210impl<'a, REG> Gpwe19W<'a, REG>
211where
212    REG: crate::Writable + crate::RegisterSpec,
213{
214    #[doc = "Not updated"]
215    #[inline(always)]
216    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
217        self.variant(Gpwe19::Gpwe0)
218    }
219    #[doc = "Updated"]
220    #[inline(always)]
221    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
222        self.variant(Gpwe19::Gpwe1)
223    }
224}
225#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
226#[cfg_attr(feature = "defmt", derive(defmt::Format))]
227#[derive(Clone, Copy, Debug, PartialEq, Eq)]
228pub enum Gpwe20 {
229    #[doc = "0: Not updated"]
230    Gpwe0 = 0,
231    #[doc = "1: Updated"]
232    Gpwe1 = 1,
233}
234impl From<Gpwe20> for bool {
235    #[inline(always)]
236    fn from(variant: Gpwe20) -> Self {
237        variant as u8 != 0
238    }
239}
240#[doc = "Field `GPWE20` reader - Global Pin Write Enable"]
241pub type Gpwe20R = crate::BitReader<Gpwe20>;
242impl Gpwe20R {
243    #[doc = "Get enumerated values variant"]
244    #[inline(always)]
245    pub const fn variant(&self) -> Gpwe20 {
246        match self.bits {
247            false => Gpwe20::Gpwe0,
248            true => Gpwe20::Gpwe1,
249        }
250    }
251    #[doc = "Not updated"]
252    #[inline(always)]
253    pub fn is_gpwe0(&self) -> bool {
254        *self == Gpwe20::Gpwe0
255    }
256    #[doc = "Updated"]
257    #[inline(always)]
258    pub fn is_gpwe1(&self) -> bool {
259        *self == Gpwe20::Gpwe1
260    }
261}
262#[doc = "Field `GPWE20` writer - Global Pin Write Enable"]
263pub type Gpwe20W<'a, REG> = crate::BitWriter<'a, REG, Gpwe20>;
264impl<'a, REG> Gpwe20W<'a, REG>
265where
266    REG: crate::Writable + crate::RegisterSpec,
267{
268    #[doc = "Not updated"]
269    #[inline(always)]
270    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
271        self.variant(Gpwe20::Gpwe0)
272    }
273    #[doc = "Updated"]
274    #[inline(always)]
275    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
276        self.variant(Gpwe20::Gpwe1)
277    }
278}
279#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
280#[cfg_attr(feature = "defmt", derive(defmt::Format))]
281#[derive(Clone, Copy, Debug, PartialEq, Eq)]
282pub enum Gpwe21 {
283    #[doc = "0: Not updated"]
284    Gpwe0 = 0,
285    #[doc = "1: Updated"]
286    Gpwe1 = 1,
287}
288impl From<Gpwe21> for bool {
289    #[inline(always)]
290    fn from(variant: Gpwe21) -> Self {
291        variant as u8 != 0
292    }
293}
294#[doc = "Field `GPWE21` reader - Global Pin Write Enable"]
295pub type Gpwe21R = crate::BitReader<Gpwe21>;
296impl Gpwe21R {
297    #[doc = "Get enumerated values variant"]
298    #[inline(always)]
299    pub const fn variant(&self) -> Gpwe21 {
300        match self.bits {
301            false => Gpwe21::Gpwe0,
302            true => Gpwe21::Gpwe1,
303        }
304    }
305    #[doc = "Not updated"]
306    #[inline(always)]
307    pub fn is_gpwe0(&self) -> bool {
308        *self == Gpwe21::Gpwe0
309    }
310    #[doc = "Updated"]
311    #[inline(always)]
312    pub fn is_gpwe1(&self) -> bool {
313        *self == Gpwe21::Gpwe1
314    }
315}
316#[doc = "Field `GPWE21` writer - Global Pin Write Enable"]
317pub type Gpwe21W<'a, REG> = crate::BitWriter<'a, REG, Gpwe21>;
318impl<'a, REG> Gpwe21W<'a, REG>
319where
320    REG: crate::Writable + crate::RegisterSpec,
321{
322    #[doc = "Not updated"]
323    #[inline(always)]
324    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
325        self.variant(Gpwe21::Gpwe0)
326    }
327    #[doc = "Updated"]
328    #[inline(always)]
329    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
330        self.variant(Gpwe21::Gpwe1)
331    }
332}
333#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
334#[cfg_attr(feature = "defmt", derive(defmt::Format))]
335#[derive(Clone, Copy, Debug, PartialEq, Eq)]
336pub enum Gpwe22 {
337    #[doc = "0: Not updated"]
338    Gpwe0 = 0,
339    #[doc = "1: Updated"]
340    Gpwe1 = 1,
341}
342impl From<Gpwe22> for bool {
343    #[inline(always)]
344    fn from(variant: Gpwe22) -> Self {
345        variant as u8 != 0
346    }
347}
348#[doc = "Field `GPWE22` reader - Global Pin Write Enable"]
349pub type Gpwe22R = crate::BitReader<Gpwe22>;
350impl Gpwe22R {
351    #[doc = "Get enumerated values variant"]
352    #[inline(always)]
353    pub const fn variant(&self) -> Gpwe22 {
354        match self.bits {
355            false => Gpwe22::Gpwe0,
356            true => Gpwe22::Gpwe1,
357        }
358    }
359    #[doc = "Not updated"]
360    #[inline(always)]
361    pub fn is_gpwe0(&self) -> bool {
362        *self == Gpwe22::Gpwe0
363    }
364    #[doc = "Updated"]
365    #[inline(always)]
366    pub fn is_gpwe1(&self) -> bool {
367        *self == Gpwe22::Gpwe1
368    }
369}
370#[doc = "Field `GPWE22` writer - Global Pin Write Enable"]
371pub type Gpwe22W<'a, REG> = crate::BitWriter<'a, REG, Gpwe22>;
372impl<'a, REG> Gpwe22W<'a, REG>
373where
374    REG: crate::Writable + crate::RegisterSpec,
375{
376    #[doc = "Not updated"]
377    #[inline(always)]
378    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
379        self.variant(Gpwe22::Gpwe0)
380    }
381    #[doc = "Updated"]
382    #[inline(always)]
383    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
384        self.variant(Gpwe22::Gpwe1)
385    }
386}
387#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
388#[cfg_attr(feature = "defmt", derive(defmt::Format))]
389#[derive(Clone, Copy, Debug, PartialEq, Eq)]
390pub enum Gpwe23 {
391    #[doc = "0: Not updated"]
392    Gpwe0 = 0,
393    #[doc = "1: Updated"]
394    Gpwe1 = 1,
395}
396impl From<Gpwe23> for bool {
397    #[inline(always)]
398    fn from(variant: Gpwe23) -> Self {
399        variant as u8 != 0
400    }
401}
402#[doc = "Field `GPWE23` reader - Global Pin Write Enable"]
403pub type Gpwe23R = crate::BitReader<Gpwe23>;
404impl Gpwe23R {
405    #[doc = "Get enumerated values variant"]
406    #[inline(always)]
407    pub const fn variant(&self) -> Gpwe23 {
408        match self.bits {
409            false => Gpwe23::Gpwe0,
410            true => Gpwe23::Gpwe1,
411        }
412    }
413    #[doc = "Not updated"]
414    #[inline(always)]
415    pub fn is_gpwe0(&self) -> bool {
416        *self == Gpwe23::Gpwe0
417    }
418    #[doc = "Updated"]
419    #[inline(always)]
420    pub fn is_gpwe1(&self) -> bool {
421        *self == Gpwe23::Gpwe1
422    }
423}
424#[doc = "Field `GPWE23` writer - Global Pin Write Enable"]
425pub type Gpwe23W<'a, REG> = crate::BitWriter<'a, REG, Gpwe23>;
426impl<'a, REG> Gpwe23W<'a, REG>
427where
428    REG: crate::Writable + crate::RegisterSpec,
429{
430    #[doc = "Not updated"]
431    #[inline(always)]
432    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
433        self.variant(Gpwe23::Gpwe0)
434    }
435    #[doc = "Updated"]
436    #[inline(always)]
437    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
438        self.variant(Gpwe23::Gpwe1)
439    }
440}
441#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
442#[cfg_attr(feature = "defmt", derive(defmt::Format))]
443#[derive(Clone, Copy, Debug, PartialEq, Eq)]
444pub enum Gpwe24 {
445    #[doc = "0: Not updated"]
446    Gpwe0 = 0,
447    #[doc = "1: Updated"]
448    Gpwe1 = 1,
449}
450impl From<Gpwe24> for bool {
451    #[inline(always)]
452    fn from(variant: Gpwe24) -> Self {
453        variant as u8 != 0
454    }
455}
456#[doc = "Field `GPWE24` reader - Global Pin Write Enable"]
457pub type Gpwe24R = crate::BitReader<Gpwe24>;
458impl Gpwe24R {
459    #[doc = "Get enumerated values variant"]
460    #[inline(always)]
461    pub const fn variant(&self) -> Gpwe24 {
462        match self.bits {
463            false => Gpwe24::Gpwe0,
464            true => Gpwe24::Gpwe1,
465        }
466    }
467    #[doc = "Not updated"]
468    #[inline(always)]
469    pub fn is_gpwe0(&self) -> bool {
470        *self == Gpwe24::Gpwe0
471    }
472    #[doc = "Updated"]
473    #[inline(always)]
474    pub fn is_gpwe1(&self) -> bool {
475        *self == Gpwe24::Gpwe1
476    }
477}
478#[doc = "Field `GPWE24` writer - Global Pin Write Enable"]
479pub type Gpwe24W<'a, REG> = crate::BitWriter<'a, REG, Gpwe24>;
480impl<'a, REG> Gpwe24W<'a, REG>
481where
482    REG: crate::Writable + crate::RegisterSpec,
483{
484    #[doc = "Not updated"]
485    #[inline(always)]
486    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
487        self.variant(Gpwe24::Gpwe0)
488    }
489    #[doc = "Updated"]
490    #[inline(always)]
491    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
492        self.variant(Gpwe24::Gpwe1)
493    }
494}
495#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
496#[cfg_attr(feature = "defmt", derive(defmt::Format))]
497#[derive(Clone, Copy, Debug, PartialEq, Eq)]
498pub enum Gpwe25 {
499    #[doc = "0: Not updated"]
500    Gpwe0 = 0,
501    #[doc = "1: Updated"]
502    Gpwe1 = 1,
503}
504impl From<Gpwe25> for bool {
505    #[inline(always)]
506    fn from(variant: Gpwe25) -> Self {
507        variant as u8 != 0
508    }
509}
510#[doc = "Field `GPWE25` reader - Global Pin Write Enable"]
511pub type Gpwe25R = crate::BitReader<Gpwe25>;
512impl Gpwe25R {
513    #[doc = "Get enumerated values variant"]
514    #[inline(always)]
515    pub const fn variant(&self) -> Gpwe25 {
516        match self.bits {
517            false => Gpwe25::Gpwe0,
518            true => Gpwe25::Gpwe1,
519        }
520    }
521    #[doc = "Not updated"]
522    #[inline(always)]
523    pub fn is_gpwe0(&self) -> bool {
524        *self == Gpwe25::Gpwe0
525    }
526    #[doc = "Updated"]
527    #[inline(always)]
528    pub fn is_gpwe1(&self) -> bool {
529        *self == Gpwe25::Gpwe1
530    }
531}
532#[doc = "Field `GPWE25` writer - Global Pin Write Enable"]
533pub type Gpwe25W<'a, REG> = crate::BitWriter<'a, REG, Gpwe25>;
534impl<'a, REG> Gpwe25W<'a, REG>
535where
536    REG: crate::Writable + crate::RegisterSpec,
537{
538    #[doc = "Not updated"]
539    #[inline(always)]
540    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
541        self.variant(Gpwe25::Gpwe0)
542    }
543    #[doc = "Updated"]
544    #[inline(always)]
545    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
546        self.variant(Gpwe25::Gpwe1)
547    }
548}
549#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
550#[cfg_attr(feature = "defmt", derive(defmt::Format))]
551#[derive(Clone, Copy, Debug, PartialEq, Eq)]
552pub enum Gpwe26 {
553    #[doc = "0: Not updated"]
554    Gpwe0 = 0,
555    #[doc = "1: Updated"]
556    Gpwe1 = 1,
557}
558impl From<Gpwe26> for bool {
559    #[inline(always)]
560    fn from(variant: Gpwe26) -> Self {
561        variant as u8 != 0
562    }
563}
564#[doc = "Field `GPWE26` reader - Global Pin Write Enable"]
565pub type Gpwe26R = crate::BitReader<Gpwe26>;
566impl Gpwe26R {
567    #[doc = "Get enumerated values variant"]
568    #[inline(always)]
569    pub const fn variant(&self) -> Gpwe26 {
570        match self.bits {
571            false => Gpwe26::Gpwe0,
572            true => Gpwe26::Gpwe1,
573        }
574    }
575    #[doc = "Not updated"]
576    #[inline(always)]
577    pub fn is_gpwe0(&self) -> bool {
578        *self == Gpwe26::Gpwe0
579    }
580    #[doc = "Updated"]
581    #[inline(always)]
582    pub fn is_gpwe1(&self) -> bool {
583        *self == Gpwe26::Gpwe1
584    }
585}
586#[doc = "Field `GPWE26` writer - Global Pin Write Enable"]
587pub type Gpwe26W<'a, REG> = crate::BitWriter<'a, REG, Gpwe26>;
588impl<'a, REG> Gpwe26W<'a, REG>
589where
590    REG: crate::Writable + crate::RegisterSpec,
591{
592    #[doc = "Not updated"]
593    #[inline(always)]
594    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
595        self.variant(Gpwe26::Gpwe0)
596    }
597    #[doc = "Updated"]
598    #[inline(always)]
599    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
600        self.variant(Gpwe26::Gpwe1)
601    }
602}
603#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
604#[cfg_attr(feature = "defmt", derive(defmt::Format))]
605#[derive(Clone, Copy, Debug, PartialEq, Eq)]
606pub enum Gpwe27 {
607    #[doc = "0: Not updated"]
608    Gpwe0 = 0,
609    #[doc = "1: Updated"]
610    Gpwe1 = 1,
611}
612impl From<Gpwe27> for bool {
613    #[inline(always)]
614    fn from(variant: Gpwe27) -> Self {
615        variant as u8 != 0
616    }
617}
618#[doc = "Field `GPWE27` reader - Global Pin Write Enable"]
619pub type Gpwe27R = crate::BitReader<Gpwe27>;
620impl Gpwe27R {
621    #[doc = "Get enumerated values variant"]
622    #[inline(always)]
623    pub const fn variant(&self) -> Gpwe27 {
624        match self.bits {
625            false => Gpwe27::Gpwe0,
626            true => Gpwe27::Gpwe1,
627        }
628    }
629    #[doc = "Not updated"]
630    #[inline(always)]
631    pub fn is_gpwe0(&self) -> bool {
632        *self == Gpwe27::Gpwe0
633    }
634    #[doc = "Updated"]
635    #[inline(always)]
636    pub fn is_gpwe1(&self) -> bool {
637        *self == Gpwe27::Gpwe1
638    }
639}
640#[doc = "Field `GPWE27` writer - Global Pin Write Enable"]
641pub type Gpwe27W<'a, REG> = crate::BitWriter<'a, REG, Gpwe27>;
642impl<'a, REG> Gpwe27W<'a, REG>
643where
644    REG: crate::Writable + crate::RegisterSpec,
645{
646    #[doc = "Not updated"]
647    #[inline(always)]
648    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
649        self.variant(Gpwe27::Gpwe0)
650    }
651    #[doc = "Updated"]
652    #[inline(always)]
653    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
654        self.variant(Gpwe27::Gpwe1)
655    }
656}
657#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
658#[cfg_attr(feature = "defmt", derive(defmt::Format))]
659#[derive(Clone, Copy, Debug, PartialEq, Eq)]
660pub enum Gpwe28 {
661    #[doc = "0: Not updated"]
662    Gpwe0 = 0,
663    #[doc = "1: Updated"]
664    Gpwe1 = 1,
665}
666impl From<Gpwe28> for bool {
667    #[inline(always)]
668    fn from(variant: Gpwe28) -> Self {
669        variant as u8 != 0
670    }
671}
672#[doc = "Field `GPWE28` reader - Global Pin Write Enable"]
673pub type Gpwe28R = crate::BitReader<Gpwe28>;
674impl Gpwe28R {
675    #[doc = "Get enumerated values variant"]
676    #[inline(always)]
677    pub const fn variant(&self) -> Gpwe28 {
678        match self.bits {
679            false => Gpwe28::Gpwe0,
680            true => Gpwe28::Gpwe1,
681        }
682    }
683    #[doc = "Not updated"]
684    #[inline(always)]
685    pub fn is_gpwe0(&self) -> bool {
686        *self == Gpwe28::Gpwe0
687    }
688    #[doc = "Updated"]
689    #[inline(always)]
690    pub fn is_gpwe1(&self) -> bool {
691        *self == Gpwe28::Gpwe1
692    }
693}
694#[doc = "Field `GPWE28` writer - Global Pin Write Enable"]
695pub type Gpwe28W<'a, REG> = crate::BitWriter<'a, REG, Gpwe28>;
696impl<'a, REG> Gpwe28W<'a, REG>
697where
698    REG: crate::Writable + crate::RegisterSpec,
699{
700    #[doc = "Not updated"]
701    #[inline(always)]
702    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
703        self.variant(Gpwe28::Gpwe0)
704    }
705    #[doc = "Updated"]
706    #[inline(always)]
707    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
708        self.variant(Gpwe28::Gpwe1)
709    }
710}
711#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
712#[cfg_attr(feature = "defmt", derive(defmt::Format))]
713#[derive(Clone, Copy, Debug, PartialEq, Eq)]
714pub enum Gpwe29 {
715    #[doc = "0: Not updated"]
716    Gpwe0 = 0,
717    #[doc = "1: Updated"]
718    Gpwe1 = 1,
719}
720impl From<Gpwe29> for bool {
721    #[inline(always)]
722    fn from(variant: Gpwe29) -> Self {
723        variant as u8 != 0
724    }
725}
726#[doc = "Field `GPWE29` reader - Global Pin Write Enable"]
727pub type Gpwe29R = crate::BitReader<Gpwe29>;
728impl Gpwe29R {
729    #[doc = "Get enumerated values variant"]
730    #[inline(always)]
731    pub const fn variant(&self) -> Gpwe29 {
732        match self.bits {
733            false => Gpwe29::Gpwe0,
734            true => Gpwe29::Gpwe1,
735        }
736    }
737    #[doc = "Not updated"]
738    #[inline(always)]
739    pub fn is_gpwe0(&self) -> bool {
740        *self == Gpwe29::Gpwe0
741    }
742    #[doc = "Updated"]
743    #[inline(always)]
744    pub fn is_gpwe1(&self) -> bool {
745        *self == Gpwe29::Gpwe1
746    }
747}
748#[doc = "Field `GPWE29` writer - Global Pin Write Enable"]
749pub type Gpwe29W<'a, REG> = crate::BitWriter<'a, REG, Gpwe29>;
750impl<'a, REG> Gpwe29W<'a, REG>
751where
752    REG: crate::Writable + crate::RegisterSpec,
753{
754    #[doc = "Not updated"]
755    #[inline(always)]
756    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
757        self.variant(Gpwe29::Gpwe0)
758    }
759    #[doc = "Updated"]
760    #[inline(always)]
761    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
762        self.variant(Gpwe29::Gpwe1)
763    }
764}
765#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
766#[cfg_attr(feature = "defmt", derive(defmt::Format))]
767#[derive(Clone, Copy, Debug, PartialEq, Eq)]
768pub enum Gpwe30 {
769    #[doc = "0: Not updated"]
770    Gpwe0 = 0,
771    #[doc = "1: Updated"]
772    Gpwe1 = 1,
773}
774impl From<Gpwe30> for bool {
775    #[inline(always)]
776    fn from(variant: Gpwe30) -> Self {
777        variant as u8 != 0
778    }
779}
780#[doc = "Field `GPWE30` reader - Global Pin Write Enable"]
781pub type Gpwe30R = crate::BitReader<Gpwe30>;
782impl Gpwe30R {
783    #[doc = "Get enumerated values variant"]
784    #[inline(always)]
785    pub const fn variant(&self) -> Gpwe30 {
786        match self.bits {
787            false => Gpwe30::Gpwe0,
788            true => Gpwe30::Gpwe1,
789        }
790    }
791    #[doc = "Not updated"]
792    #[inline(always)]
793    pub fn is_gpwe0(&self) -> bool {
794        *self == Gpwe30::Gpwe0
795    }
796    #[doc = "Updated"]
797    #[inline(always)]
798    pub fn is_gpwe1(&self) -> bool {
799        *self == Gpwe30::Gpwe1
800    }
801}
802#[doc = "Field `GPWE30` writer - Global Pin Write Enable"]
803pub type Gpwe30W<'a, REG> = crate::BitWriter<'a, REG, Gpwe30>;
804impl<'a, REG> Gpwe30W<'a, REG>
805where
806    REG: crate::Writable + crate::RegisterSpec,
807{
808    #[doc = "Not updated"]
809    #[inline(always)]
810    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
811        self.variant(Gpwe30::Gpwe0)
812    }
813    #[doc = "Updated"]
814    #[inline(always)]
815    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
816        self.variant(Gpwe30::Gpwe1)
817    }
818}
819#[doc = "Global Pin Write Enable\n\nValue on reset: 0"]
820#[cfg_attr(feature = "defmt", derive(defmt::Format))]
821#[derive(Clone, Copy, Debug, PartialEq, Eq)]
822pub enum Gpwe31 {
823    #[doc = "0: Not updated"]
824    Gpwe0 = 0,
825    #[doc = "1: Updated"]
826    Gpwe1 = 1,
827}
828impl From<Gpwe31> for bool {
829    #[inline(always)]
830    fn from(variant: Gpwe31) -> Self {
831        variant as u8 != 0
832    }
833}
834#[doc = "Field `GPWE31` reader - Global Pin Write Enable"]
835pub type Gpwe31R = crate::BitReader<Gpwe31>;
836impl Gpwe31R {
837    #[doc = "Get enumerated values variant"]
838    #[inline(always)]
839    pub const fn variant(&self) -> Gpwe31 {
840        match self.bits {
841            false => Gpwe31::Gpwe0,
842            true => Gpwe31::Gpwe1,
843        }
844    }
845    #[doc = "Not updated"]
846    #[inline(always)]
847    pub fn is_gpwe0(&self) -> bool {
848        *self == Gpwe31::Gpwe0
849    }
850    #[doc = "Updated"]
851    #[inline(always)]
852    pub fn is_gpwe1(&self) -> bool {
853        *self == Gpwe31::Gpwe1
854    }
855}
856#[doc = "Field `GPWE31` writer - Global Pin Write Enable"]
857pub type Gpwe31W<'a, REG> = crate::BitWriter<'a, REG, Gpwe31>;
858impl<'a, REG> Gpwe31W<'a, REG>
859where
860    REG: crate::Writable + crate::RegisterSpec,
861{
862    #[doc = "Not updated"]
863    #[inline(always)]
864    pub fn gpwe0(self) -> &'a mut crate::W<REG> {
865        self.variant(Gpwe31::Gpwe0)
866    }
867    #[doc = "Updated"]
868    #[inline(always)]
869    pub fn gpwe1(self) -> &'a mut crate::W<REG> {
870        self.variant(Gpwe31::Gpwe1)
871    }
872}
873impl R {
874    #[doc = "Bits 0:15 - Global Pin Write Data"]
875    #[inline(always)]
876    pub fn gpwd(&self) -> GpwdR {
877        GpwdR::new((self.bits & 0xffff) as u16)
878    }
879    #[doc = "Bit 16 - Global Pin Write Enable"]
880    #[inline(always)]
881    pub fn gpwe16(&self) -> Gpwe16R {
882        Gpwe16R::new(((self.bits >> 16) & 1) != 0)
883    }
884    #[doc = "Bit 17 - Global Pin Write Enable"]
885    #[inline(always)]
886    pub fn gpwe17(&self) -> Gpwe17R {
887        Gpwe17R::new(((self.bits >> 17) & 1) != 0)
888    }
889    #[doc = "Bit 18 - Global Pin Write Enable"]
890    #[inline(always)]
891    pub fn gpwe18(&self) -> Gpwe18R {
892        Gpwe18R::new(((self.bits >> 18) & 1) != 0)
893    }
894    #[doc = "Bit 19 - Global Pin Write Enable"]
895    #[inline(always)]
896    pub fn gpwe19(&self) -> Gpwe19R {
897        Gpwe19R::new(((self.bits >> 19) & 1) != 0)
898    }
899    #[doc = "Bit 20 - Global Pin Write Enable"]
900    #[inline(always)]
901    pub fn gpwe20(&self) -> Gpwe20R {
902        Gpwe20R::new(((self.bits >> 20) & 1) != 0)
903    }
904    #[doc = "Bit 21 - Global Pin Write Enable"]
905    #[inline(always)]
906    pub fn gpwe21(&self) -> Gpwe21R {
907        Gpwe21R::new(((self.bits >> 21) & 1) != 0)
908    }
909    #[doc = "Bit 22 - Global Pin Write Enable"]
910    #[inline(always)]
911    pub fn gpwe22(&self) -> Gpwe22R {
912        Gpwe22R::new(((self.bits >> 22) & 1) != 0)
913    }
914    #[doc = "Bit 23 - Global Pin Write Enable"]
915    #[inline(always)]
916    pub fn gpwe23(&self) -> Gpwe23R {
917        Gpwe23R::new(((self.bits >> 23) & 1) != 0)
918    }
919    #[doc = "Bit 24 - Global Pin Write Enable"]
920    #[inline(always)]
921    pub fn gpwe24(&self) -> Gpwe24R {
922        Gpwe24R::new(((self.bits >> 24) & 1) != 0)
923    }
924    #[doc = "Bit 25 - Global Pin Write Enable"]
925    #[inline(always)]
926    pub fn gpwe25(&self) -> Gpwe25R {
927        Gpwe25R::new(((self.bits >> 25) & 1) != 0)
928    }
929    #[doc = "Bit 26 - Global Pin Write Enable"]
930    #[inline(always)]
931    pub fn gpwe26(&self) -> Gpwe26R {
932        Gpwe26R::new(((self.bits >> 26) & 1) != 0)
933    }
934    #[doc = "Bit 27 - Global Pin Write Enable"]
935    #[inline(always)]
936    pub fn gpwe27(&self) -> Gpwe27R {
937        Gpwe27R::new(((self.bits >> 27) & 1) != 0)
938    }
939    #[doc = "Bit 28 - Global Pin Write Enable"]
940    #[inline(always)]
941    pub fn gpwe28(&self) -> Gpwe28R {
942        Gpwe28R::new(((self.bits >> 28) & 1) != 0)
943    }
944    #[doc = "Bit 29 - Global Pin Write Enable"]
945    #[inline(always)]
946    pub fn gpwe29(&self) -> Gpwe29R {
947        Gpwe29R::new(((self.bits >> 29) & 1) != 0)
948    }
949    #[doc = "Bit 30 - Global Pin Write Enable"]
950    #[inline(always)]
951    pub fn gpwe30(&self) -> Gpwe30R {
952        Gpwe30R::new(((self.bits >> 30) & 1) != 0)
953    }
954    #[doc = "Bit 31 - Global Pin Write Enable"]
955    #[inline(always)]
956    pub fn gpwe31(&self) -> Gpwe31R {
957        Gpwe31R::new(((self.bits >> 31) & 1) != 0)
958    }
959}
960#[cfg(feature = "debug")]
961impl core::fmt::Debug for R {
962    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
963        f.debug_struct("GPCHR")
964            .field("gpwd", &self.gpwd())
965            .field("gpwe16", &self.gpwe16())
966            .field("gpwe17", &self.gpwe17())
967            .field("gpwe18", &self.gpwe18())
968            .field("gpwe19", &self.gpwe19())
969            .field("gpwe20", &self.gpwe20())
970            .field("gpwe21", &self.gpwe21())
971            .field("gpwe22", &self.gpwe22())
972            .field("gpwe23", &self.gpwe23())
973            .field("gpwe24", &self.gpwe24())
974            .field("gpwe25", &self.gpwe25())
975            .field("gpwe26", &self.gpwe26())
976            .field("gpwe27", &self.gpwe27())
977            .field("gpwe28", &self.gpwe28())
978            .field("gpwe29", &self.gpwe29())
979            .field("gpwe30", &self.gpwe30())
980            .field("gpwe31", &self.gpwe31())
981            .finish()
982    }
983}
984impl W {
985    #[doc = "Bits 0:15 - Global Pin Write Data"]
986    #[inline(always)]
987    pub fn gpwd(&mut self) -> GpwdW<'_, GpchrSpec> {
988        GpwdW::new(self, 0)
989    }
990    #[doc = "Bit 16 - Global Pin Write Enable"]
991    #[inline(always)]
992    pub fn gpwe16(&mut self) -> Gpwe16W<'_, GpchrSpec> {
993        Gpwe16W::new(self, 16)
994    }
995    #[doc = "Bit 17 - Global Pin Write Enable"]
996    #[inline(always)]
997    pub fn gpwe17(&mut self) -> Gpwe17W<'_, GpchrSpec> {
998        Gpwe17W::new(self, 17)
999    }
1000    #[doc = "Bit 18 - Global Pin Write Enable"]
1001    #[inline(always)]
1002    pub fn gpwe18(&mut self) -> Gpwe18W<'_, GpchrSpec> {
1003        Gpwe18W::new(self, 18)
1004    }
1005    #[doc = "Bit 19 - Global Pin Write Enable"]
1006    #[inline(always)]
1007    pub fn gpwe19(&mut self) -> Gpwe19W<'_, GpchrSpec> {
1008        Gpwe19W::new(self, 19)
1009    }
1010    #[doc = "Bit 20 - Global Pin Write Enable"]
1011    #[inline(always)]
1012    pub fn gpwe20(&mut self) -> Gpwe20W<'_, GpchrSpec> {
1013        Gpwe20W::new(self, 20)
1014    }
1015    #[doc = "Bit 21 - Global Pin Write Enable"]
1016    #[inline(always)]
1017    pub fn gpwe21(&mut self) -> Gpwe21W<'_, GpchrSpec> {
1018        Gpwe21W::new(self, 21)
1019    }
1020    #[doc = "Bit 22 - Global Pin Write Enable"]
1021    #[inline(always)]
1022    pub fn gpwe22(&mut self) -> Gpwe22W<'_, GpchrSpec> {
1023        Gpwe22W::new(self, 22)
1024    }
1025    #[doc = "Bit 23 - Global Pin Write Enable"]
1026    #[inline(always)]
1027    pub fn gpwe23(&mut self) -> Gpwe23W<'_, GpchrSpec> {
1028        Gpwe23W::new(self, 23)
1029    }
1030    #[doc = "Bit 24 - Global Pin Write Enable"]
1031    #[inline(always)]
1032    pub fn gpwe24(&mut self) -> Gpwe24W<'_, GpchrSpec> {
1033        Gpwe24W::new(self, 24)
1034    }
1035    #[doc = "Bit 25 - Global Pin Write Enable"]
1036    #[inline(always)]
1037    pub fn gpwe25(&mut self) -> Gpwe25W<'_, GpchrSpec> {
1038        Gpwe25W::new(self, 25)
1039    }
1040    #[doc = "Bit 26 - Global Pin Write Enable"]
1041    #[inline(always)]
1042    pub fn gpwe26(&mut self) -> Gpwe26W<'_, GpchrSpec> {
1043        Gpwe26W::new(self, 26)
1044    }
1045    #[doc = "Bit 27 - Global Pin Write Enable"]
1046    #[inline(always)]
1047    pub fn gpwe27(&mut self) -> Gpwe27W<'_, GpchrSpec> {
1048        Gpwe27W::new(self, 27)
1049    }
1050    #[doc = "Bit 28 - Global Pin Write Enable"]
1051    #[inline(always)]
1052    pub fn gpwe28(&mut self) -> Gpwe28W<'_, GpchrSpec> {
1053        Gpwe28W::new(self, 28)
1054    }
1055    #[doc = "Bit 29 - Global Pin Write Enable"]
1056    #[inline(always)]
1057    pub fn gpwe29(&mut self) -> Gpwe29W<'_, GpchrSpec> {
1058        Gpwe29W::new(self, 29)
1059    }
1060    #[doc = "Bit 30 - Global Pin Write Enable"]
1061    #[inline(always)]
1062    pub fn gpwe30(&mut self) -> Gpwe30W<'_, GpchrSpec> {
1063        Gpwe30W::new(self, 30)
1064    }
1065    #[doc = "Bit 31 - Global Pin Write Enable"]
1066    #[inline(always)]
1067    pub fn gpwe31(&mut self) -> Gpwe31W<'_, GpchrSpec> {
1068        Gpwe31W::new(self, 31)
1069    }
1070}
1071#[doc = "Global Pin Control High\n\nYou can [`read`](crate::Reg::read) this register and get [`gpchr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gpchr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
1072pub struct GpchrSpec;
1073impl crate::RegisterSpec for GpchrSpec {
1074    type Ux = u32;
1075}
1076#[doc = "`read()` method returns [`gpchr::R`](R) reader structure"]
1077impl crate::Readable for GpchrSpec {}
1078#[doc = "`write(|w| ..)` method takes [`gpchr::W`](W) writer structure"]
1079impl crate::Writable for GpchrSpec {
1080    type Safety = crate::Unsafe;
1081}
1082#[doc = "`reset()` method sets GPCHR to value 0"]
1083impl crate::Resettable for GpchrSpec {}