1#[doc = "Register `GPCLR` reader"]
2pub type R = crate::R<GpclrSpec>;
3#[doc = "Register `GPCLR` writer"]
4pub type W = crate::W<GpclrSpec>;
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 Gpwe0 {
13 #[doc = "0: Not updated"]
14 Gpwe0 = 0,
15 #[doc = "1: Updated"]
16 Gpwe1 = 1,
17}
18impl From<Gpwe0> for bool {
19 #[inline(always)]
20 fn from(variant: Gpwe0) -> Self {
21 variant as u8 != 0
22 }
23}
24#[doc = "Field `GPWE0` reader - Global Pin Write Enable"]
25pub type Gpwe0R = crate::BitReader<Gpwe0>;
26impl Gpwe0R {
27 #[doc = "Get enumerated values variant"]
28 #[inline(always)]
29 pub const fn variant(&self) -> Gpwe0 {
30 match self.bits {
31 false => Gpwe0::Gpwe0,
32 true => Gpwe0::Gpwe1,
33 }
34 }
35 #[doc = "Not updated"]
36 #[inline(always)]
37 pub fn is_gpwe0(&self) -> bool {
38 *self == Gpwe0::Gpwe0
39 }
40 #[doc = "Updated"]
41 #[inline(always)]
42 pub fn is_gpwe1(&self) -> bool {
43 *self == Gpwe0::Gpwe1
44 }
45}
46#[doc = "Field `GPWE0` writer - Global Pin Write Enable"]
47pub type Gpwe0W<'a, REG> = crate::BitWriter<'a, REG, Gpwe0>;
48impl<'a, REG> Gpwe0W<'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(Gpwe0::Gpwe0)
56 }
57 #[doc = "Updated"]
58 #[inline(always)]
59 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
60 self.variant(Gpwe0::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 Gpwe1 {
67 #[doc = "0: Not updated"]
68 Gpwe0 = 0,
69 #[doc = "1: Updated"]
70 Gpwe1 = 1,
71}
72impl From<Gpwe1> for bool {
73 #[inline(always)]
74 fn from(variant: Gpwe1) -> Self {
75 variant as u8 != 0
76 }
77}
78#[doc = "Field `GPWE1` reader - Global Pin Write Enable"]
79pub type Gpwe1R = crate::BitReader<Gpwe1>;
80impl Gpwe1R {
81 #[doc = "Get enumerated values variant"]
82 #[inline(always)]
83 pub const fn variant(&self) -> Gpwe1 {
84 match self.bits {
85 false => Gpwe1::Gpwe0,
86 true => Gpwe1::Gpwe1,
87 }
88 }
89 #[doc = "Not updated"]
90 #[inline(always)]
91 pub fn is_gpwe0(&self) -> bool {
92 *self == Gpwe1::Gpwe0
93 }
94 #[doc = "Updated"]
95 #[inline(always)]
96 pub fn is_gpwe1(&self) -> bool {
97 *self == Gpwe1::Gpwe1
98 }
99}
100#[doc = "Field `GPWE1` writer - Global Pin Write Enable"]
101pub type Gpwe1W<'a, REG> = crate::BitWriter<'a, REG, Gpwe1>;
102impl<'a, REG> Gpwe1W<'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(Gpwe1::Gpwe0)
110 }
111 #[doc = "Updated"]
112 #[inline(always)]
113 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
114 self.variant(Gpwe1::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 Gpwe2 {
121 #[doc = "0: Not updated"]
122 Gpwe0 = 0,
123 #[doc = "1: Updated"]
124 Gpwe1 = 1,
125}
126impl From<Gpwe2> for bool {
127 #[inline(always)]
128 fn from(variant: Gpwe2) -> Self {
129 variant as u8 != 0
130 }
131}
132#[doc = "Field `GPWE2` reader - Global Pin Write Enable"]
133pub type Gpwe2R = crate::BitReader<Gpwe2>;
134impl Gpwe2R {
135 #[doc = "Get enumerated values variant"]
136 #[inline(always)]
137 pub const fn variant(&self) -> Gpwe2 {
138 match self.bits {
139 false => Gpwe2::Gpwe0,
140 true => Gpwe2::Gpwe1,
141 }
142 }
143 #[doc = "Not updated"]
144 #[inline(always)]
145 pub fn is_gpwe0(&self) -> bool {
146 *self == Gpwe2::Gpwe0
147 }
148 #[doc = "Updated"]
149 #[inline(always)]
150 pub fn is_gpwe1(&self) -> bool {
151 *self == Gpwe2::Gpwe1
152 }
153}
154#[doc = "Field `GPWE2` writer - Global Pin Write Enable"]
155pub type Gpwe2W<'a, REG> = crate::BitWriter<'a, REG, Gpwe2>;
156impl<'a, REG> Gpwe2W<'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(Gpwe2::Gpwe0)
164 }
165 #[doc = "Updated"]
166 #[inline(always)]
167 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
168 self.variant(Gpwe2::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 Gpwe3 {
175 #[doc = "0: Not updated"]
176 Gpwe0 = 0,
177 #[doc = "1: Updated"]
178 Gpwe1 = 1,
179}
180impl From<Gpwe3> for bool {
181 #[inline(always)]
182 fn from(variant: Gpwe3) -> Self {
183 variant as u8 != 0
184 }
185}
186#[doc = "Field `GPWE3` reader - Global Pin Write Enable"]
187pub type Gpwe3R = crate::BitReader<Gpwe3>;
188impl Gpwe3R {
189 #[doc = "Get enumerated values variant"]
190 #[inline(always)]
191 pub const fn variant(&self) -> Gpwe3 {
192 match self.bits {
193 false => Gpwe3::Gpwe0,
194 true => Gpwe3::Gpwe1,
195 }
196 }
197 #[doc = "Not updated"]
198 #[inline(always)]
199 pub fn is_gpwe0(&self) -> bool {
200 *self == Gpwe3::Gpwe0
201 }
202 #[doc = "Updated"]
203 #[inline(always)]
204 pub fn is_gpwe1(&self) -> bool {
205 *self == Gpwe3::Gpwe1
206 }
207}
208#[doc = "Field `GPWE3` writer - Global Pin Write Enable"]
209pub type Gpwe3W<'a, REG> = crate::BitWriter<'a, REG, Gpwe3>;
210impl<'a, REG> Gpwe3W<'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(Gpwe3::Gpwe0)
218 }
219 #[doc = "Updated"]
220 #[inline(always)]
221 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
222 self.variant(Gpwe3::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 Gpwe4 {
229 #[doc = "0: Not updated"]
230 Gpwe0 = 0,
231 #[doc = "1: Updated"]
232 Gpwe1 = 1,
233}
234impl From<Gpwe4> for bool {
235 #[inline(always)]
236 fn from(variant: Gpwe4) -> Self {
237 variant as u8 != 0
238 }
239}
240#[doc = "Field `GPWE4` reader - Global Pin Write Enable"]
241pub type Gpwe4R = crate::BitReader<Gpwe4>;
242impl Gpwe4R {
243 #[doc = "Get enumerated values variant"]
244 #[inline(always)]
245 pub const fn variant(&self) -> Gpwe4 {
246 match self.bits {
247 false => Gpwe4::Gpwe0,
248 true => Gpwe4::Gpwe1,
249 }
250 }
251 #[doc = "Not updated"]
252 #[inline(always)]
253 pub fn is_gpwe0(&self) -> bool {
254 *self == Gpwe4::Gpwe0
255 }
256 #[doc = "Updated"]
257 #[inline(always)]
258 pub fn is_gpwe1(&self) -> bool {
259 *self == Gpwe4::Gpwe1
260 }
261}
262#[doc = "Field `GPWE4` writer - Global Pin Write Enable"]
263pub type Gpwe4W<'a, REG> = crate::BitWriter<'a, REG, Gpwe4>;
264impl<'a, REG> Gpwe4W<'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(Gpwe4::Gpwe0)
272 }
273 #[doc = "Updated"]
274 #[inline(always)]
275 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
276 self.variant(Gpwe4::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 Gpwe5 {
283 #[doc = "0: Not updated"]
284 Gpwe0 = 0,
285 #[doc = "1: Updated"]
286 Gpwe1 = 1,
287}
288impl From<Gpwe5> for bool {
289 #[inline(always)]
290 fn from(variant: Gpwe5) -> Self {
291 variant as u8 != 0
292 }
293}
294#[doc = "Field `GPWE5` reader - Global Pin Write Enable"]
295pub type Gpwe5R = crate::BitReader<Gpwe5>;
296impl Gpwe5R {
297 #[doc = "Get enumerated values variant"]
298 #[inline(always)]
299 pub const fn variant(&self) -> Gpwe5 {
300 match self.bits {
301 false => Gpwe5::Gpwe0,
302 true => Gpwe5::Gpwe1,
303 }
304 }
305 #[doc = "Not updated"]
306 #[inline(always)]
307 pub fn is_gpwe0(&self) -> bool {
308 *self == Gpwe5::Gpwe0
309 }
310 #[doc = "Updated"]
311 #[inline(always)]
312 pub fn is_gpwe1(&self) -> bool {
313 *self == Gpwe5::Gpwe1
314 }
315}
316#[doc = "Field `GPWE5` writer - Global Pin Write Enable"]
317pub type Gpwe5W<'a, REG> = crate::BitWriter<'a, REG, Gpwe5>;
318impl<'a, REG> Gpwe5W<'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(Gpwe5::Gpwe0)
326 }
327 #[doc = "Updated"]
328 #[inline(always)]
329 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
330 self.variant(Gpwe5::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 Gpwe6 {
337 #[doc = "0: Not updated"]
338 Gpwe0 = 0,
339 #[doc = "1: Updated"]
340 Gpwe1 = 1,
341}
342impl From<Gpwe6> for bool {
343 #[inline(always)]
344 fn from(variant: Gpwe6) -> Self {
345 variant as u8 != 0
346 }
347}
348#[doc = "Field `GPWE6` reader - Global Pin Write Enable"]
349pub type Gpwe6R = crate::BitReader<Gpwe6>;
350impl Gpwe6R {
351 #[doc = "Get enumerated values variant"]
352 #[inline(always)]
353 pub const fn variant(&self) -> Gpwe6 {
354 match self.bits {
355 false => Gpwe6::Gpwe0,
356 true => Gpwe6::Gpwe1,
357 }
358 }
359 #[doc = "Not updated"]
360 #[inline(always)]
361 pub fn is_gpwe0(&self) -> bool {
362 *self == Gpwe6::Gpwe0
363 }
364 #[doc = "Updated"]
365 #[inline(always)]
366 pub fn is_gpwe1(&self) -> bool {
367 *self == Gpwe6::Gpwe1
368 }
369}
370#[doc = "Field `GPWE6` writer - Global Pin Write Enable"]
371pub type Gpwe6W<'a, REG> = crate::BitWriter<'a, REG, Gpwe6>;
372impl<'a, REG> Gpwe6W<'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(Gpwe6::Gpwe0)
380 }
381 #[doc = "Updated"]
382 #[inline(always)]
383 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
384 self.variant(Gpwe6::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 Gpwe7 {
391 #[doc = "0: Not updated"]
392 Gpwe0 = 0,
393 #[doc = "1: Updated"]
394 Gpwe1 = 1,
395}
396impl From<Gpwe7> for bool {
397 #[inline(always)]
398 fn from(variant: Gpwe7) -> Self {
399 variant as u8 != 0
400 }
401}
402#[doc = "Field `GPWE7` reader - Global Pin Write Enable"]
403pub type Gpwe7R = crate::BitReader<Gpwe7>;
404impl Gpwe7R {
405 #[doc = "Get enumerated values variant"]
406 #[inline(always)]
407 pub const fn variant(&self) -> Gpwe7 {
408 match self.bits {
409 false => Gpwe7::Gpwe0,
410 true => Gpwe7::Gpwe1,
411 }
412 }
413 #[doc = "Not updated"]
414 #[inline(always)]
415 pub fn is_gpwe0(&self) -> bool {
416 *self == Gpwe7::Gpwe0
417 }
418 #[doc = "Updated"]
419 #[inline(always)]
420 pub fn is_gpwe1(&self) -> bool {
421 *self == Gpwe7::Gpwe1
422 }
423}
424#[doc = "Field `GPWE7` writer - Global Pin Write Enable"]
425pub type Gpwe7W<'a, REG> = crate::BitWriter<'a, REG, Gpwe7>;
426impl<'a, REG> Gpwe7W<'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(Gpwe7::Gpwe0)
434 }
435 #[doc = "Updated"]
436 #[inline(always)]
437 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
438 self.variant(Gpwe7::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 Gpwe8 {
445 #[doc = "0: Not updated"]
446 Gpwe0 = 0,
447 #[doc = "1: Updated"]
448 Gpwe1 = 1,
449}
450impl From<Gpwe8> for bool {
451 #[inline(always)]
452 fn from(variant: Gpwe8) -> Self {
453 variant as u8 != 0
454 }
455}
456#[doc = "Field `GPWE8` reader - Global Pin Write Enable"]
457pub type Gpwe8R = crate::BitReader<Gpwe8>;
458impl Gpwe8R {
459 #[doc = "Get enumerated values variant"]
460 #[inline(always)]
461 pub const fn variant(&self) -> Gpwe8 {
462 match self.bits {
463 false => Gpwe8::Gpwe0,
464 true => Gpwe8::Gpwe1,
465 }
466 }
467 #[doc = "Not updated"]
468 #[inline(always)]
469 pub fn is_gpwe0(&self) -> bool {
470 *self == Gpwe8::Gpwe0
471 }
472 #[doc = "Updated"]
473 #[inline(always)]
474 pub fn is_gpwe1(&self) -> bool {
475 *self == Gpwe8::Gpwe1
476 }
477}
478#[doc = "Field `GPWE8` writer - Global Pin Write Enable"]
479pub type Gpwe8W<'a, REG> = crate::BitWriter<'a, REG, Gpwe8>;
480impl<'a, REG> Gpwe8W<'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(Gpwe8::Gpwe0)
488 }
489 #[doc = "Updated"]
490 #[inline(always)]
491 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
492 self.variant(Gpwe8::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 Gpwe9 {
499 #[doc = "0: Not updated"]
500 Gpwe0 = 0,
501 #[doc = "1: Updated"]
502 Gpwe1 = 1,
503}
504impl From<Gpwe9> for bool {
505 #[inline(always)]
506 fn from(variant: Gpwe9) -> Self {
507 variant as u8 != 0
508 }
509}
510#[doc = "Field `GPWE9` reader - Global Pin Write Enable"]
511pub type Gpwe9R = crate::BitReader<Gpwe9>;
512impl Gpwe9R {
513 #[doc = "Get enumerated values variant"]
514 #[inline(always)]
515 pub const fn variant(&self) -> Gpwe9 {
516 match self.bits {
517 false => Gpwe9::Gpwe0,
518 true => Gpwe9::Gpwe1,
519 }
520 }
521 #[doc = "Not updated"]
522 #[inline(always)]
523 pub fn is_gpwe0(&self) -> bool {
524 *self == Gpwe9::Gpwe0
525 }
526 #[doc = "Updated"]
527 #[inline(always)]
528 pub fn is_gpwe1(&self) -> bool {
529 *self == Gpwe9::Gpwe1
530 }
531}
532#[doc = "Field `GPWE9` writer - Global Pin Write Enable"]
533pub type Gpwe9W<'a, REG> = crate::BitWriter<'a, REG, Gpwe9>;
534impl<'a, REG> Gpwe9W<'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(Gpwe9::Gpwe0)
542 }
543 #[doc = "Updated"]
544 #[inline(always)]
545 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
546 self.variant(Gpwe9::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 Gpwe10 {
553 #[doc = "0: Not updated"]
554 Gpwe0 = 0,
555 #[doc = "1: Updated"]
556 Gpwe1 = 1,
557}
558impl From<Gpwe10> for bool {
559 #[inline(always)]
560 fn from(variant: Gpwe10) -> Self {
561 variant as u8 != 0
562 }
563}
564#[doc = "Field `GPWE10` reader - Global Pin Write Enable"]
565pub type Gpwe10R = crate::BitReader<Gpwe10>;
566impl Gpwe10R {
567 #[doc = "Get enumerated values variant"]
568 #[inline(always)]
569 pub const fn variant(&self) -> Gpwe10 {
570 match self.bits {
571 false => Gpwe10::Gpwe0,
572 true => Gpwe10::Gpwe1,
573 }
574 }
575 #[doc = "Not updated"]
576 #[inline(always)]
577 pub fn is_gpwe0(&self) -> bool {
578 *self == Gpwe10::Gpwe0
579 }
580 #[doc = "Updated"]
581 #[inline(always)]
582 pub fn is_gpwe1(&self) -> bool {
583 *self == Gpwe10::Gpwe1
584 }
585}
586#[doc = "Field `GPWE10` writer - Global Pin Write Enable"]
587pub type Gpwe10W<'a, REG> = crate::BitWriter<'a, REG, Gpwe10>;
588impl<'a, REG> Gpwe10W<'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(Gpwe10::Gpwe0)
596 }
597 #[doc = "Updated"]
598 #[inline(always)]
599 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
600 self.variant(Gpwe10::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 Gpwe11 {
607 #[doc = "0: Not updated"]
608 Gpwe0 = 0,
609 #[doc = "1: Updated"]
610 Gpwe1 = 1,
611}
612impl From<Gpwe11> for bool {
613 #[inline(always)]
614 fn from(variant: Gpwe11) -> Self {
615 variant as u8 != 0
616 }
617}
618#[doc = "Field `GPWE11` reader - Global Pin Write Enable"]
619pub type Gpwe11R = crate::BitReader<Gpwe11>;
620impl Gpwe11R {
621 #[doc = "Get enumerated values variant"]
622 #[inline(always)]
623 pub const fn variant(&self) -> Gpwe11 {
624 match self.bits {
625 false => Gpwe11::Gpwe0,
626 true => Gpwe11::Gpwe1,
627 }
628 }
629 #[doc = "Not updated"]
630 #[inline(always)]
631 pub fn is_gpwe0(&self) -> bool {
632 *self == Gpwe11::Gpwe0
633 }
634 #[doc = "Updated"]
635 #[inline(always)]
636 pub fn is_gpwe1(&self) -> bool {
637 *self == Gpwe11::Gpwe1
638 }
639}
640#[doc = "Field `GPWE11` writer - Global Pin Write Enable"]
641pub type Gpwe11W<'a, REG> = crate::BitWriter<'a, REG, Gpwe11>;
642impl<'a, REG> Gpwe11W<'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(Gpwe11::Gpwe0)
650 }
651 #[doc = "Updated"]
652 #[inline(always)]
653 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
654 self.variant(Gpwe11::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 Gpwe12 {
661 #[doc = "0: Not updated"]
662 Gpwe0 = 0,
663 #[doc = "1: Updated"]
664 Gpwe1 = 1,
665}
666impl From<Gpwe12> for bool {
667 #[inline(always)]
668 fn from(variant: Gpwe12) -> Self {
669 variant as u8 != 0
670 }
671}
672#[doc = "Field `GPWE12` reader - Global Pin Write Enable"]
673pub type Gpwe12R = crate::BitReader<Gpwe12>;
674impl Gpwe12R {
675 #[doc = "Get enumerated values variant"]
676 #[inline(always)]
677 pub const fn variant(&self) -> Gpwe12 {
678 match self.bits {
679 false => Gpwe12::Gpwe0,
680 true => Gpwe12::Gpwe1,
681 }
682 }
683 #[doc = "Not updated"]
684 #[inline(always)]
685 pub fn is_gpwe0(&self) -> bool {
686 *self == Gpwe12::Gpwe0
687 }
688 #[doc = "Updated"]
689 #[inline(always)]
690 pub fn is_gpwe1(&self) -> bool {
691 *self == Gpwe12::Gpwe1
692 }
693}
694#[doc = "Field `GPWE12` writer - Global Pin Write Enable"]
695pub type Gpwe12W<'a, REG> = crate::BitWriter<'a, REG, Gpwe12>;
696impl<'a, REG> Gpwe12W<'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(Gpwe12::Gpwe0)
704 }
705 #[doc = "Updated"]
706 #[inline(always)]
707 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
708 self.variant(Gpwe12::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 Gpwe13 {
715 #[doc = "0: Not updated"]
716 Gpwe0 = 0,
717 #[doc = "1: Updated"]
718 Gpwe1 = 1,
719}
720impl From<Gpwe13> for bool {
721 #[inline(always)]
722 fn from(variant: Gpwe13) -> Self {
723 variant as u8 != 0
724 }
725}
726#[doc = "Field `GPWE13` reader - Global Pin Write Enable"]
727pub type Gpwe13R = crate::BitReader<Gpwe13>;
728impl Gpwe13R {
729 #[doc = "Get enumerated values variant"]
730 #[inline(always)]
731 pub const fn variant(&self) -> Gpwe13 {
732 match self.bits {
733 false => Gpwe13::Gpwe0,
734 true => Gpwe13::Gpwe1,
735 }
736 }
737 #[doc = "Not updated"]
738 #[inline(always)]
739 pub fn is_gpwe0(&self) -> bool {
740 *self == Gpwe13::Gpwe0
741 }
742 #[doc = "Updated"]
743 #[inline(always)]
744 pub fn is_gpwe1(&self) -> bool {
745 *self == Gpwe13::Gpwe1
746 }
747}
748#[doc = "Field `GPWE13` writer - Global Pin Write Enable"]
749pub type Gpwe13W<'a, REG> = crate::BitWriter<'a, REG, Gpwe13>;
750impl<'a, REG> Gpwe13W<'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(Gpwe13::Gpwe0)
758 }
759 #[doc = "Updated"]
760 #[inline(always)]
761 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
762 self.variant(Gpwe13::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 Gpwe14 {
769 #[doc = "0: Not updated"]
770 Gpwe0 = 0,
771 #[doc = "1: Updated"]
772 Gpwe1 = 1,
773}
774impl From<Gpwe14> for bool {
775 #[inline(always)]
776 fn from(variant: Gpwe14) -> Self {
777 variant as u8 != 0
778 }
779}
780#[doc = "Field `GPWE14` reader - Global Pin Write Enable"]
781pub type Gpwe14R = crate::BitReader<Gpwe14>;
782impl Gpwe14R {
783 #[doc = "Get enumerated values variant"]
784 #[inline(always)]
785 pub const fn variant(&self) -> Gpwe14 {
786 match self.bits {
787 false => Gpwe14::Gpwe0,
788 true => Gpwe14::Gpwe1,
789 }
790 }
791 #[doc = "Not updated"]
792 #[inline(always)]
793 pub fn is_gpwe0(&self) -> bool {
794 *self == Gpwe14::Gpwe0
795 }
796 #[doc = "Updated"]
797 #[inline(always)]
798 pub fn is_gpwe1(&self) -> bool {
799 *self == Gpwe14::Gpwe1
800 }
801}
802#[doc = "Field `GPWE14` writer - Global Pin Write Enable"]
803pub type Gpwe14W<'a, REG> = crate::BitWriter<'a, REG, Gpwe14>;
804impl<'a, REG> Gpwe14W<'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(Gpwe14::Gpwe0)
812 }
813 #[doc = "Updated"]
814 #[inline(always)]
815 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
816 self.variant(Gpwe14::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 Gpwe15 {
823 #[doc = "0: Not updated"]
824 Gpwe0 = 0,
825 #[doc = "1: Updated"]
826 Gpwe1 = 1,
827}
828impl From<Gpwe15> for bool {
829 #[inline(always)]
830 fn from(variant: Gpwe15) -> Self {
831 variant as u8 != 0
832 }
833}
834#[doc = "Field `GPWE15` reader - Global Pin Write Enable"]
835pub type Gpwe15R = crate::BitReader<Gpwe15>;
836impl Gpwe15R {
837 #[doc = "Get enumerated values variant"]
838 #[inline(always)]
839 pub const fn variant(&self) -> Gpwe15 {
840 match self.bits {
841 false => Gpwe15::Gpwe0,
842 true => Gpwe15::Gpwe1,
843 }
844 }
845 #[doc = "Not updated"]
846 #[inline(always)]
847 pub fn is_gpwe0(&self) -> bool {
848 *self == Gpwe15::Gpwe0
849 }
850 #[doc = "Updated"]
851 #[inline(always)]
852 pub fn is_gpwe1(&self) -> bool {
853 *self == Gpwe15::Gpwe1
854 }
855}
856#[doc = "Field `GPWE15` writer - Global Pin Write Enable"]
857pub type Gpwe15W<'a, REG> = crate::BitWriter<'a, REG, Gpwe15>;
858impl<'a, REG> Gpwe15W<'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(Gpwe15::Gpwe0)
866 }
867 #[doc = "Updated"]
868 #[inline(always)]
869 pub fn gpwe1(self) -> &'a mut crate::W<REG> {
870 self.variant(Gpwe15::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 gpwe0(&self) -> Gpwe0R {
882 Gpwe0R::new(((self.bits >> 16) & 1) != 0)
883 }
884 #[doc = "Bit 17 - Global Pin Write Enable"]
885 #[inline(always)]
886 pub fn gpwe1(&self) -> Gpwe1R {
887 Gpwe1R::new(((self.bits >> 17) & 1) != 0)
888 }
889 #[doc = "Bit 18 - Global Pin Write Enable"]
890 #[inline(always)]
891 pub fn gpwe2(&self) -> Gpwe2R {
892 Gpwe2R::new(((self.bits >> 18) & 1) != 0)
893 }
894 #[doc = "Bit 19 - Global Pin Write Enable"]
895 #[inline(always)]
896 pub fn gpwe3(&self) -> Gpwe3R {
897 Gpwe3R::new(((self.bits >> 19) & 1) != 0)
898 }
899 #[doc = "Bit 20 - Global Pin Write Enable"]
900 #[inline(always)]
901 pub fn gpwe4(&self) -> Gpwe4R {
902 Gpwe4R::new(((self.bits >> 20) & 1) != 0)
903 }
904 #[doc = "Bit 21 - Global Pin Write Enable"]
905 #[inline(always)]
906 pub fn gpwe5(&self) -> Gpwe5R {
907 Gpwe5R::new(((self.bits >> 21) & 1) != 0)
908 }
909 #[doc = "Bit 22 - Global Pin Write Enable"]
910 #[inline(always)]
911 pub fn gpwe6(&self) -> Gpwe6R {
912 Gpwe6R::new(((self.bits >> 22) & 1) != 0)
913 }
914 #[doc = "Bit 23 - Global Pin Write Enable"]
915 #[inline(always)]
916 pub fn gpwe7(&self) -> Gpwe7R {
917 Gpwe7R::new(((self.bits >> 23) & 1) != 0)
918 }
919 #[doc = "Bit 24 - Global Pin Write Enable"]
920 #[inline(always)]
921 pub fn gpwe8(&self) -> Gpwe8R {
922 Gpwe8R::new(((self.bits >> 24) & 1) != 0)
923 }
924 #[doc = "Bit 25 - Global Pin Write Enable"]
925 #[inline(always)]
926 pub fn gpwe9(&self) -> Gpwe9R {
927 Gpwe9R::new(((self.bits >> 25) & 1) != 0)
928 }
929 #[doc = "Bit 26 - Global Pin Write Enable"]
930 #[inline(always)]
931 pub fn gpwe10(&self) -> Gpwe10R {
932 Gpwe10R::new(((self.bits >> 26) & 1) != 0)
933 }
934 #[doc = "Bit 27 - Global Pin Write Enable"]
935 #[inline(always)]
936 pub fn gpwe11(&self) -> Gpwe11R {
937 Gpwe11R::new(((self.bits >> 27) & 1) != 0)
938 }
939 #[doc = "Bit 28 - Global Pin Write Enable"]
940 #[inline(always)]
941 pub fn gpwe12(&self) -> Gpwe12R {
942 Gpwe12R::new(((self.bits >> 28) & 1) != 0)
943 }
944 #[doc = "Bit 29 - Global Pin Write Enable"]
945 #[inline(always)]
946 pub fn gpwe13(&self) -> Gpwe13R {
947 Gpwe13R::new(((self.bits >> 29) & 1) != 0)
948 }
949 #[doc = "Bit 30 - Global Pin Write Enable"]
950 #[inline(always)]
951 pub fn gpwe14(&self) -> Gpwe14R {
952 Gpwe14R::new(((self.bits >> 30) & 1) != 0)
953 }
954 #[doc = "Bit 31 - Global Pin Write Enable"]
955 #[inline(always)]
956 pub fn gpwe15(&self) -> Gpwe15R {
957 Gpwe15R::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("GPCLR")
964 .field("gpwd", &self.gpwd())
965 .field("gpwe0", &self.gpwe0())
966 .field("gpwe1", &self.gpwe1())
967 .field("gpwe2", &self.gpwe2())
968 .field("gpwe3", &self.gpwe3())
969 .field("gpwe4", &self.gpwe4())
970 .field("gpwe5", &self.gpwe5())
971 .field("gpwe6", &self.gpwe6())
972 .field("gpwe7", &self.gpwe7())
973 .field("gpwe8", &self.gpwe8())
974 .field("gpwe9", &self.gpwe9())
975 .field("gpwe10", &self.gpwe10())
976 .field("gpwe11", &self.gpwe11())
977 .field("gpwe12", &self.gpwe12())
978 .field("gpwe13", &self.gpwe13())
979 .field("gpwe14", &self.gpwe14())
980 .field("gpwe15", &self.gpwe15())
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<'_, GpclrSpec> {
988 GpwdW::new(self, 0)
989 }
990 #[doc = "Bit 16 - Global Pin Write Enable"]
991 #[inline(always)]
992 pub fn gpwe0(&mut self) -> Gpwe0W<'_, GpclrSpec> {
993 Gpwe0W::new(self, 16)
994 }
995 #[doc = "Bit 17 - Global Pin Write Enable"]
996 #[inline(always)]
997 pub fn gpwe1(&mut self) -> Gpwe1W<'_, GpclrSpec> {
998 Gpwe1W::new(self, 17)
999 }
1000 #[doc = "Bit 18 - Global Pin Write Enable"]
1001 #[inline(always)]
1002 pub fn gpwe2(&mut self) -> Gpwe2W<'_, GpclrSpec> {
1003 Gpwe2W::new(self, 18)
1004 }
1005 #[doc = "Bit 19 - Global Pin Write Enable"]
1006 #[inline(always)]
1007 pub fn gpwe3(&mut self) -> Gpwe3W<'_, GpclrSpec> {
1008 Gpwe3W::new(self, 19)
1009 }
1010 #[doc = "Bit 20 - Global Pin Write Enable"]
1011 #[inline(always)]
1012 pub fn gpwe4(&mut self) -> Gpwe4W<'_, GpclrSpec> {
1013 Gpwe4W::new(self, 20)
1014 }
1015 #[doc = "Bit 21 - Global Pin Write Enable"]
1016 #[inline(always)]
1017 pub fn gpwe5(&mut self) -> Gpwe5W<'_, GpclrSpec> {
1018 Gpwe5W::new(self, 21)
1019 }
1020 #[doc = "Bit 22 - Global Pin Write Enable"]
1021 #[inline(always)]
1022 pub fn gpwe6(&mut self) -> Gpwe6W<'_, GpclrSpec> {
1023 Gpwe6W::new(self, 22)
1024 }
1025 #[doc = "Bit 23 - Global Pin Write Enable"]
1026 #[inline(always)]
1027 pub fn gpwe7(&mut self) -> Gpwe7W<'_, GpclrSpec> {
1028 Gpwe7W::new(self, 23)
1029 }
1030 #[doc = "Bit 24 - Global Pin Write Enable"]
1031 #[inline(always)]
1032 pub fn gpwe8(&mut self) -> Gpwe8W<'_, GpclrSpec> {
1033 Gpwe8W::new(self, 24)
1034 }
1035 #[doc = "Bit 25 - Global Pin Write Enable"]
1036 #[inline(always)]
1037 pub fn gpwe9(&mut self) -> Gpwe9W<'_, GpclrSpec> {
1038 Gpwe9W::new(self, 25)
1039 }
1040 #[doc = "Bit 26 - Global Pin Write Enable"]
1041 #[inline(always)]
1042 pub fn gpwe10(&mut self) -> Gpwe10W<'_, GpclrSpec> {
1043 Gpwe10W::new(self, 26)
1044 }
1045 #[doc = "Bit 27 - Global Pin Write Enable"]
1046 #[inline(always)]
1047 pub fn gpwe11(&mut self) -> Gpwe11W<'_, GpclrSpec> {
1048 Gpwe11W::new(self, 27)
1049 }
1050 #[doc = "Bit 28 - Global Pin Write Enable"]
1051 #[inline(always)]
1052 pub fn gpwe12(&mut self) -> Gpwe12W<'_, GpclrSpec> {
1053 Gpwe12W::new(self, 28)
1054 }
1055 #[doc = "Bit 29 - Global Pin Write Enable"]
1056 #[inline(always)]
1057 pub fn gpwe13(&mut self) -> Gpwe13W<'_, GpclrSpec> {
1058 Gpwe13W::new(self, 29)
1059 }
1060 #[doc = "Bit 30 - Global Pin Write Enable"]
1061 #[inline(always)]
1062 pub fn gpwe14(&mut self) -> Gpwe14W<'_, GpclrSpec> {
1063 Gpwe14W::new(self, 30)
1064 }
1065 #[doc = "Bit 31 - Global Pin Write Enable"]
1066 #[inline(always)]
1067 pub fn gpwe15(&mut self) -> Gpwe15W<'_, GpclrSpec> {
1068 Gpwe15W::new(self, 31)
1069 }
1070}
1071#[doc = "Global Pin Control Low\n\nYou can [`read`](crate::Reg::read) this register and get [`gpclr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gpclr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
1072pub struct GpclrSpec;
1073impl crate::RegisterSpec for GpclrSpec {
1074 type Ux = u32;
1075}
1076#[doc = "`read()` method returns [`gpclr::R`](R) reader structure"]
1077impl crate::Readable for GpclrSpec {}
1078#[doc = "`write(|w| ..)` method takes [`gpclr::W`](W) writer structure"]
1079impl crate::Writable for GpclrSpec {
1080 type Safety = crate::Unsafe;
1081}
1082#[doc = "`reset()` method sets GPCLR to value 0"]
1083impl crate::Resettable for GpclrSpec {}