1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
#[doc = "Register `EXTIPINSELL` reader"]
pub struct R(crate::R<EXTIPINSELL_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<EXTIPINSELL_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<EXTIPINSELL_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<EXTIPINSELL_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `EXTIPINSELL` writer"]
pub struct W(crate::W<EXTIPINSELL_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<EXTIPINSELL_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<EXTIPINSELL_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<EXTIPINSELL_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `EXTIPINSEL0` reader - External Interrupt 0 Pin Select"]
pub type EXTIPINSEL0_R = crate::FieldReader<u8, EXTIPINSEL0_A>;
#[doc = "External Interrupt 0 Pin Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL0_A {
    #[doc = "0: Pin 0"]
    PIN0 = 0,
    #[doc = "1: Pin 1"]
    PIN1 = 1,
    #[doc = "2: Pin 2"]
    PIN2 = 2,
    #[doc = "3: Pin 3"]
    PIN3 = 3,
}
impl From<EXTIPINSEL0_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL0_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL0_A {
        match self.bits {
            0 => EXTIPINSEL0_A::PIN0,
            1 => EXTIPINSEL0_A::PIN1,
            2 => EXTIPINSEL0_A::PIN2,
            3 => EXTIPINSEL0_A::PIN3,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN0`"]
    #[inline(always)]
    pub fn is_pin0(&self) -> bool {
        *self == EXTIPINSEL0_A::PIN0
    }
    #[doc = "Checks if the value of the field is `PIN1`"]
    #[inline(always)]
    pub fn is_pin1(&self) -> bool {
        *self == EXTIPINSEL0_A::PIN1
    }
    #[doc = "Checks if the value of the field is `PIN2`"]
    #[inline(always)]
    pub fn is_pin2(&self) -> bool {
        *self == EXTIPINSEL0_A::PIN2
    }
    #[doc = "Checks if the value of the field is `PIN3`"]
    #[inline(always)]
    pub fn is_pin3(&self) -> bool {
        *self == EXTIPINSEL0_A::PIN3
    }
}
#[doc = "Field `EXTIPINSEL0` writer - External Interrupt 0 Pin Select"]
pub type EXTIPINSEL0_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL0_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL0_W<'a, O> {
    #[doc = "Pin 0"]
    #[inline(always)]
    pub fn pin0(self) -> &'a mut W {
        self.variant(EXTIPINSEL0_A::PIN0)
    }
    #[doc = "Pin 1"]
    #[inline(always)]
    pub fn pin1(self) -> &'a mut W {
        self.variant(EXTIPINSEL0_A::PIN1)
    }
    #[doc = "Pin 2"]
    #[inline(always)]
    pub fn pin2(self) -> &'a mut W {
        self.variant(EXTIPINSEL0_A::PIN2)
    }
    #[doc = "Pin 3"]
    #[inline(always)]
    pub fn pin3(self) -> &'a mut W {
        self.variant(EXTIPINSEL0_A::PIN3)
    }
}
#[doc = "Field `EXTIPINSEL1` reader - External Interrupt 1 Pin Select"]
pub type EXTIPINSEL1_R = crate::FieldReader<u8, EXTIPINSEL1_A>;
#[doc = "External Interrupt 1 Pin Select\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL1_A {
    #[doc = "0: Pin 0"]
    PIN0 = 0,
    #[doc = "1: Pin 1"]
    PIN1 = 1,
    #[doc = "2: Pin 2"]
    PIN2 = 2,
    #[doc = "3: Pin 3"]
    PIN3 = 3,
}
impl From<EXTIPINSEL1_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL1_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL1_A {
        match self.bits {
            0 => EXTIPINSEL1_A::PIN0,
            1 => EXTIPINSEL1_A::PIN1,
            2 => EXTIPINSEL1_A::PIN2,
            3 => EXTIPINSEL1_A::PIN3,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN0`"]
    #[inline(always)]
    pub fn is_pin0(&self) -> bool {
        *self == EXTIPINSEL1_A::PIN0
    }
    #[doc = "Checks if the value of the field is `PIN1`"]
    #[inline(always)]
    pub fn is_pin1(&self) -> bool {
        *self == EXTIPINSEL1_A::PIN1
    }
    #[doc = "Checks if the value of the field is `PIN2`"]
    #[inline(always)]
    pub fn is_pin2(&self) -> bool {
        *self == EXTIPINSEL1_A::PIN2
    }
    #[doc = "Checks if the value of the field is `PIN3`"]
    #[inline(always)]
    pub fn is_pin3(&self) -> bool {
        *self == EXTIPINSEL1_A::PIN3
    }
}
#[doc = "Field `EXTIPINSEL1` writer - External Interrupt 1 Pin Select"]
pub type EXTIPINSEL1_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL1_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL1_W<'a, O> {
    #[doc = "Pin 0"]
    #[inline(always)]
    pub fn pin0(self) -> &'a mut W {
        self.variant(EXTIPINSEL1_A::PIN0)
    }
    #[doc = "Pin 1"]
    #[inline(always)]
    pub fn pin1(self) -> &'a mut W {
        self.variant(EXTIPINSEL1_A::PIN1)
    }
    #[doc = "Pin 2"]
    #[inline(always)]
    pub fn pin2(self) -> &'a mut W {
        self.variant(EXTIPINSEL1_A::PIN2)
    }
    #[doc = "Pin 3"]
    #[inline(always)]
    pub fn pin3(self) -> &'a mut W {
        self.variant(EXTIPINSEL1_A::PIN3)
    }
}
#[doc = "Field `EXTIPINSEL2` reader - External Interrupt 2 Pin Select"]
pub type EXTIPINSEL2_R = crate::FieldReader<u8, EXTIPINSEL2_A>;
#[doc = "External Interrupt 2 Pin Select\n\nValue on reset: 2"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL2_A {
    #[doc = "0: Pin 0"]
    PIN0 = 0,
    #[doc = "1: Pin 1"]
    PIN1 = 1,
    #[doc = "2: Pin 2"]
    PIN2 = 2,
    #[doc = "3: Pin 3"]
    PIN3 = 3,
}
impl From<EXTIPINSEL2_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL2_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL2_A {
        match self.bits {
            0 => EXTIPINSEL2_A::PIN0,
            1 => EXTIPINSEL2_A::PIN1,
            2 => EXTIPINSEL2_A::PIN2,
            3 => EXTIPINSEL2_A::PIN3,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN0`"]
    #[inline(always)]
    pub fn is_pin0(&self) -> bool {
        *self == EXTIPINSEL2_A::PIN0
    }
    #[doc = "Checks if the value of the field is `PIN1`"]
    #[inline(always)]
    pub fn is_pin1(&self) -> bool {
        *self == EXTIPINSEL2_A::PIN1
    }
    #[doc = "Checks if the value of the field is `PIN2`"]
    #[inline(always)]
    pub fn is_pin2(&self) -> bool {
        *self == EXTIPINSEL2_A::PIN2
    }
    #[doc = "Checks if the value of the field is `PIN3`"]
    #[inline(always)]
    pub fn is_pin3(&self) -> bool {
        *self == EXTIPINSEL2_A::PIN3
    }
}
#[doc = "Field `EXTIPINSEL2` writer - External Interrupt 2 Pin Select"]
pub type EXTIPINSEL2_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL2_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL2_W<'a, O> {
    #[doc = "Pin 0"]
    #[inline(always)]
    pub fn pin0(self) -> &'a mut W {
        self.variant(EXTIPINSEL2_A::PIN0)
    }
    #[doc = "Pin 1"]
    #[inline(always)]
    pub fn pin1(self) -> &'a mut W {
        self.variant(EXTIPINSEL2_A::PIN1)
    }
    #[doc = "Pin 2"]
    #[inline(always)]
    pub fn pin2(self) -> &'a mut W {
        self.variant(EXTIPINSEL2_A::PIN2)
    }
    #[doc = "Pin 3"]
    #[inline(always)]
    pub fn pin3(self) -> &'a mut W {
        self.variant(EXTIPINSEL2_A::PIN3)
    }
}
#[doc = "Field `EXTIPINSEL3` reader - External Interrupt 3 Pin Select"]
pub type EXTIPINSEL3_R = crate::FieldReader<u8, EXTIPINSEL3_A>;
#[doc = "External Interrupt 3 Pin Select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL3_A {
    #[doc = "0: Pin 0"]
    PIN0 = 0,
    #[doc = "1: Pin 1"]
    PIN1 = 1,
    #[doc = "2: Pin 2"]
    PIN2 = 2,
    #[doc = "3: Pin 3"]
    PIN3 = 3,
}
impl From<EXTIPINSEL3_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL3_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL3_A {
        match self.bits {
            0 => EXTIPINSEL3_A::PIN0,
            1 => EXTIPINSEL3_A::PIN1,
            2 => EXTIPINSEL3_A::PIN2,
            3 => EXTIPINSEL3_A::PIN3,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN0`"]
    #[inline(always)]
    pub fn is_pin0(&self) -> bool {
        *self == EXTIPINSEL3_A::PIN0
    }
    #[doc = "Checks if the value of the field is `PIN1`"]
    #[inline(always)]
    pub fn is_pin1(&self) -> bool {
        *self == EXTIPINSEL3_A::PIN1
    }
    #[doc = "Checks if the value of the field is `PIN2`"]
    #[inline(always)]
    pub fn is_pin2(&self) -> bool {
        *self == EXTIPINSEL3_A::PIN2
    }
    #[doc = "Checks if the value of the field is `PIN3`"]
    #[inline(always)]
    pub fn is_pin3(&self) -> bool {
        *self == EXTIPINSEL3_A::PIN3
    }
}
#[doc = "Field `EXTIPINSEL3` writer - External Interrupt 3 Pin Select"]
pub type EXTIPINSEL3_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL3_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL3_W<'a, O> {
    #[doc = "Pin 0"]
    #[inline(always)]
    pub fn pin0(self) -> &'a mut W {
        self.variant(EXTIPINSEL3_A::PIN0)
    }
    #[doc = "Pin 1"]
    #[inline(always)]
    pub fn pin1(self) -> &'a mut W {
        self.variant(EXTIPINSEL3_A::PIN1)
    }
    #[doc = "Pin 2"]
    #[inline(always)]
    pub fn pin2(self) -> &'a mut W {
        self.variant(EXTIPINSEL3_A::PIN2)
    }
    #[doc = "Pin 3"]
    #[inline(always)]
    pub fn pin3(self) -> &'a mut W {
        self.variant(EXTIPINSEL3_A::PIN3)
    }
}
#[doc = "Field `EXTIPINSEL4` reader - External Interrupt 4 Pin Select"]
pub type EXTIPINSEL4_R = crate::FieldReader<u8, EXTIPINSEL4_A>;
#[doc = "External Interrupt 4 Pin Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL4_A {
    #[doc = "0: Pin 4"]
    PIN4 = 0,
    #[doc = "1: Pin 5"]
    PIN5 = 1,
    #[doc = "2: Pin 6"]
    PIN6 = 2,
    #[doc = "3: Pin 7"]
    PIN7 = 3,
}
impl From<EXTIPINSEL4_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL4_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL4_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL4_A {
        match self.bits {
            0 => EXTIPINSEL4_A::PIN4,
            1 => EXTIPINSEL4_A::PIN5,
            2 => EXTIPINSEL4_A::PIN6,
            3 => EXTIPINSEL4_A::PIN7,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN4`"]
    #[inline(always)]
    pub fn is_pin4(&self) -> bool {
        *self == EXTIPINSEL4_A::PIN4
    }
    #[doc = "Checks if the value of the field is `PIN5`"]
    #[inline(always)]
    pub fn is_pin5(&self) -> bool {
        *self == EXTIPINSEL4_A::PIN5
    }
    #[doc = "Checks if the value of the field is `PIN6`"]
    #[inline(always)]
    pub fn is_pin6(&self) -> bool {
        *self == EXTIPINSEL4_A::PIN6
    }
    #[doc = "Checks if the value of the field is `PIN7`"]
    #[inline(always)]
    pub fn is_pin7(&self) -> bool {
        *self == EXTIPINSEL4_A::PIN7
    }
}
#[doc = "Field `EXTIPINSEL4` writer - External Interrupt 4 Pin Select"]
pub type EXTIPINSEL4_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL4_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL4_W<'a, O> {
    #[doc = "Pin 4"]
    #[inline(always)]
    pub fn pin4(self) -> &'a mut W {
        self.variant(EXTIPINSEL4_A::PIN4)
    }
    #[doc = "Pin 5"]
    #[inline(always)]
    pub fn pin5(self) -> &'a mut W {
        self.variant(EXTIPINSEL4_A::PIN5)
    }
    #[doc = "Pin 6"]
    #[inline(always)]
    pub fn pin6(self) -> &'a mut W {
        self.variant(EXTIPINSEL4_A::PIN6)
    }
    #[doc = "Pin 7"]
    #[inline(always)]
    pub fn pin7(self) -> &'a mut W {
        self.variant(EXTIPINSEL4_A::PIN7)
    }
}
#[doc = "Field `EXTIPINSEL5` reader - External Interrupt 5 Pin Select"]
pub type EXTIPINSEL5_R = crate::FieldReader<u8, EXTIPINSEL5_A>;
#[doc = "External Interrupt 5 Pin Select\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL5_A {
    #[doc = "0: Pin 4"]
    PIN4 = 0,
    #[doc = "1: Pin 5"]
    PIN5 = 1,
    #[doc = "2: Pin 6"]
    PIN6 = 2,
    #[doc = "3: Pin 7"]
    PIN7 = 3,
}
impl From<EXTIPINSEL5_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL5_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL5_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL5_A {
        match self.bits {
            0 => EXTIPINSEL5_A::PIN4,
            1 => EXTIPINSEL5_A::PIN5,
            2 => EXTIPINSEL5_A::PIN6,
            3 => EXTIPINSEL5_A::PIN7,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN4`"]
    #[inline(always)]
    pub fn is_pin4(&self) -> bool {
        *self == EXTIPINSEL5_A::PIN4
    }
    #[doc = "Checks if the value of the field is `PIN5`"]
    #[inline(always)]
    pub fn is_pin5(&self) -> bool {
        *self == EXTIPINSEL5_A::PIN5
    }
    #[doc = "Checks if the value of the field is `PIN6`"]
    #[inline(always)]
    pub fn is_pin6(&self) -> bool {
        *self == EXTIPINSEL5_A::PIN6
    }
    #[doc = "Checks if the value of the field is `PIN7`"]
    #[inline(always)]
    pub fn is_pin7(&self) -> bool {
        *self == EXTIPINSEL5_A::PIN7
    }
}
#[doc = "Field `EXTIPINSEL5` writer - External Interrupt 5 Pin Select"]
pub type EXTIPINSEL5_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL5_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL5_W<'a, O> {
    #[doc = "Pin 4"]
    #[inline(always)]
    pub fn pin4(self) -> &'a mut W {
        self.variant(EXTIPINSEL5_A::PIN4)
    }
    #[doc = "Pin 5"]
    #[inline(always)]
    pub fn pin5(self) -> &'a mut W {
        self.variant(EXTIPINSEL5_A::PIN5)
    }
    #[doc = "Pin 6"]
    #[inline(always)]
    pub fn pin6(self) -> &'a mut W {
        self.variant(EXTIPINSEL5_A::PIN6)
    }
    #[doc = "Pin 7"]
    #[inline(always)]
    pub fn pin7(self) -> &'a mut W {
        self.variant(EXTIPINSEL5_A::PIN7)
    }
}
#[doc = "Field `EXTIPINSEL6` reader - External Interrupt 6 Pin Select"]
pub type EXTIPINSEL6_R = crate::FieldReader<u8, EXTIPINSEL6_A>;
#[doc = "External Interrupt 6 Pin Select\n\nValue on reset: 2"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL6_A {
    #[doc = "0: Pin 4"]
    PIN4 = 0,
    #[doc = "1: Pin 5"]
    PIN5 = 1,
    #[doc = "2: Pin 6"]
    PIN6 = 2,
    #[doc = "3: Pin 7"]
    PIN7 = 3,
}
impl From<EXTIPINSEL6_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL6_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL6_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL6_A {
        match self.bits {
            0 => EXTIPINSEL6_A::PIN4,
            1 => EXTIPINSEL6_A::PIN5,
            2 => EXTIPINSEL6_A::PIN6,
            3 => EXTIPINSEL6_A::PIN7,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN4`"]
    #[inline(always)]
    pub fn is_pin4(&self) -> bool {
        *self == EXTIPINSEL6_A::PIN4
    }
    #[doc = "Checks if the value of the field is `PIN5`"]
    #[inline(always)]
    pub fn is_pin5(&self) -> bool {
        *self == EXTIPINSEL6_A::PIN5
    }
    #[doc = "Checks if the value of the field is `PIN6`"]
    #[inline(always)]
    pub fn is_pin6(&self) -> bool {
        *self == EXTIPINSEL6_A::PIN6
    }
    #[doc = "Checks if the value of the field is `PIN7`"]
    #[inline(always)]
    pub fn is_pin7(&self) -> bool {
        *self == EXTIPINSEL6_A::PIN7
    }
}
#[doc = "Field `EXTIPINSEL6` writer - External Interrupt 6 Pin Select"]
pub type EXTIPINSEL6_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL6_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL6_W<'a, O> {
    #[doc = "Pin 4"]
    #[inline(always)]
    pub fn pin4(self) -> &'a mut W {
        self.variant(EXTIPINSEL6_A::PIN4)
    }
    #[doc = "Pin 5"]
    #[inline(always)]
    pub fn pin5(self) -> &'a mut W {
        self.variant(EXTIPINSEL6_A::PIN5)
    }
    #[doc = "Pin 6"]
    #[inline(always)]
    pub fn pin6(self) -> &'a mut W {
        self.variant(EXTIPINSEL6_A::PIN6)
    }
    #[doc = "Pin 7"]
    #[inline(always)]
    pub fn pin7(self) -> &'a mut W {
        self.variant(EXTIPINSEL6_A::PIN7)
    }
}
#[doc = "Field `EXTIPINSEL7` reader - External Interrupt 7 Pin Select"]
pub type EXTIPINSEL7_R = crate::FieldReader<u8, EXTIPINSEL7_A>;
#[doc = "External Interrupt 7 Pin Select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXTIPINSEL7_A {
    #[doc = "0: Pin 4"]
    PIN4 = 0,
    #[doc = "1: Pin 5"]
    PIN5 = 1,
    #[doc = "2: Pin 6"]
    PIN6 = 2,
    #[doc = "3: Pin 7"]
    PIN7 = 3,
}
impl From<EXTIPINSEL7_A> for u8 {
    #[inline(always)]
    fn from(variant: EXTIPINSEL7_A) -> Self {
        variant as _
    }
}
impl EXTIPINSEL7_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EXTIPINSEL7_A {
        match self.bits {
            0 => EXTIPINSEL7_A::PIN4,
            1 => EXTIPINSEL7_A::PIN5,
            2 => EXTIPINSEL7_A::PIN6,
            3 => EXTIPINSEL7_A::PIN7,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `PIN4`"]
    #[inline(always)]
    pub fn is_pin4(&self) -> bool {
        *self == EXTIPINSEL7_A::PIN4
    }
    #[doc = "Checks if the value of the field is `PIN5`"]
    #[inline(always)]
    pub fn is_pin5(&self) -> bool {
        *self == EXTIPINSEL7_A::PIN5
    }
    #[doc = "Checks if the value of the field is `PIN6`"]
    #[inline(always)]
    pub fn is_pin6(&self) -> bool {
        *self == EXTIPINSEL7_A::PIN6
    }
    #[doc = "Checks if the value of the field is `PIN7`"]
    #[inline(always)]
    pub fn is_pin7(&self) -> bool {
        *self == EXTIPINSEL7_A::PIN7
    }
}
#[doc = "Field `EXTIPINSEL7` writer - External Interrupt 7 Pin Select"]
pub type EXTIPINSEL7_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, EXTIPINSELL_SPEC, u8, EXTIPINSEL7_A, 2, O>;
impl<'a, const O: u8> EXTIPINSEL7_W<'a, O> {
    #[doc = "Pin 4"]
    #[inline(always)]
    pub fn pin4(self) -> &'a mut W {
        self.variant(EXTIPINSEL7_A::PIN4)
    }
    #[doc = "Pin 5"]
    #[inline(always)]
    pub fn pin5(self) -> &'a mut W {
        self.variant(EXTIPINSEL7_A::PIN5)
    }
    #[doc = "Pin 6"]
    #[inline(always)]
    pub fn pin6(self) -> &'a mut W {
        self.variant(EXTIPINSEL7_A::PIN6)
    }
    #[doc = "Pin 7"]
    #[inline(always)]
    pub fn pin7(self) -> &'a mut W {
        self.variant(EXTIPINSEL7_A::PIN7)
    }
}
impl R {
    #[doc = "Bits 0:1 - External Interrupt 0 Pin Select"]
    #[inline(always)]
    pub fn extipinsel0(&self) -> EXTIPINSEL0_R {
        EXTIPINSEL0_R::new((self.bits & 3) as u8)
    }
    #[doc = "Bits 4:5 - External Interrupt 1 Pin Select"]
    #[inline(always)]
    pub fn extipinsel1(&self) -> EXTIPINSEL1_R {
        EXTIPINSEL1_R::new(((self.bits >> 4) & 3) as u8)
    }
    #[doc = "Bits 8:9 - External Interrupt 2 Pin Select"]
    #[inline(always)]
    pub fn extipinsel2(&self) -> EXTIPINSEL2_R {
        EXTIPINSEL2_R::new(((self.bits >> 8) & 3) as u8)
    }
    #[doc = "Bits 12:13 - External Interrupt 3 Pin Select"]
    #[inline(always)]
    pub fn extipinsel3(&self) -> EXTIPINSEL3_R {
        EXTIPINSEL3_R::new(((self.bits >> 12) & 3) as u8)
    }
    #[doc = "Bits 16:17 - External Interrupt 4 Pin Select"]
    #[inline(always)]
    pub fn extipinsel4(&self) -> EXTIPINSEL4_R {
        EXTIPINSEL4_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 20:21 - External Interrupt 5 Pin Select"]
    #[inline(always)]
    pub fn extipinsel5(&self) -> EXTIPINSEL5_R {
        EXTIPINSEL5_R::new(((self.bits >> 20) & 3) as u8)
    }
    #[doc = "Bits 24:25 - External Interrupt 6 Pin Select"]
    #[inline(always)]
    pub fn extipinsel6(&self) -> EXTIPINSEL6_R {
        EXTIPINSEL6_R::new(((self.bits >> 24) & 3) as u8)
    }
    #[doc = "Bits 28:29 - External Interrupt 7 Pin Select"]
    #[inline(always)]
    pub fn extipinsel7(&self) -> EXTIPINSEL7_R {
        EXTIPINSEL7_R::new(((self.bits >> 28) & 3) as u8)
    }
}
impl W {
    #[doc = "Bits 0:1 - External Interrupt 0 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel0(&mut self) -> EXTIPINSEL0_W<0> {
        EXTIPINSEL0_W::new(self)
    }
    #[doc = "Bits 4:5 - External Interrupt 1 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel1(&mut self) -> EXTIPINSEL1_W<4> {
        EXTIPINSEL1_W::new(self)
    }
    #[doc = "Bits 8:9 - External Interrupt 2 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel2(&mut self) -> EXTIPINSEL2_W<8> {
        EXTIPINSEL2_W::new(self)
    }
    #[doc = "Bits 12:13 - External Interrupt 3 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel3(&mut self) -> EXTIPINSEL3_W<12> {
        EXTIPINSEL3_W::new(self)
    }
    #[doc = "Bits 16:17 - External Interrupt 4 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel4(&mut self) -> EXTIPINSEL4_W<16> {
        EXTIPINSEL4_W::new(self)
    }
    #[doc = "Bits 20:21 - External Interrupt 5 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel5(&mut self) -> EXTIPINSEL5_W<20> {
        EXTIPINSEL5_W::new(self)
    }
    #[doc = "Bits 24:25 - External Interrupt 6 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel6(&mut self) -> EXTIPINSEL6_W<24> {
        EXTIPINSEL6_W::new(self)
    }
    #[doc = "Bits 28:29 - External Interrupt 7 Pin Select"]
    #[inline(always)]
    #[must_use]
    pub fn extipinsel7(&mut self) -> EXTIPINSEL7_W<28> {
        EXTIPINSEL7_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "External Interrupt Pin Select Low Register\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 [extipinsell](index.html) module"]
pub struct EXTIPINSELL_SPEC;
impl crate::RegisterSpec for EXTIPINSELL_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [extipinsell::R](R) reader structure"]
impl crate::Readable for EXTIPINSELL_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [extipinsell::W](W) writer structure"]
impl crate::Writable for EXTIPINSELL_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets EXTIPINSELL to value 0x3210_3210"]
impl crate::Resettable for EXTIPINSELL_SPEC {
    const RESET_VALUE: Self::Ux = 0x3210_3210;
}