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
#[doc = "Register `ROUTEPEN` reader"]
pub struct R(crate::R<ROUTEPEN_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<ROUTEPEN_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<ROUTEPEN_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<ROUTEPEN_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `ROUTEPEN` writer"]
pub struct W(crate::W<ROUTEPEN_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<ROUTEPEN_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<ROUTEPEN_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<ROUTEPEN_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `EBIPEN` reader - EBI Pin Enable"]
pub type EBIPEN_R = crate::BitReader<bool>;
#[doc = "Field `EBIPEN` writer - EBI Pin Enable"]
pub type EBIPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `CS0PEN` reader - EBI_CS0 Pin Enable"]
pub type CS0PEN_R = crate::BitReader<bool>;
#[doc = "Field `CS0PEN` writer - EBI_CS0 Pin Enable"]
pub type CS0PEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `CS1PEN` reader - EBI_CS1 Pin Enable"]
pub type CS1PEN_R = crate::BitReader<bool>;
#[doc = "Field `CS1PEN` writer - EBI_CS1 Pin Enable"]
pub type CS1PEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `CS2PEN` reader - EBI_CS2 Pin Enable"]
pub type CS2PEN_R = crate::BitReader<bool>;
#[doc = "Field `CS2PEN` writer - EBI_CS2 Pin Enable"]
pub type CS2PEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `CS3PEN` reader - EBI_CS3 Pin Enable"]
pub type CS3PEN_R = crate::BitReader<bool>;
#[doc = "Field `CS3PEN` writer - EBI_CS3 Pin Enable"]
pub type CS3PEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `ALEPEN` reader - EBI_ALE Pin Enable"]
pub type ALEPEN_R = crate::BitReader<bool>;
#[doc = "Field `ALEPEN` writer - EBI_ALE Pin Enable"]
pub type ALEPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `ARDYPEN` reader - EBI_ARDY Pin Enable"]
pub type ARDYPEN_R = crate::BitReader<bool>;
#[doc = "Field `ARDYPEN` writer - EBI_ARDY Pin Enable"]
pub type ARDYPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `BLPEN` reader - EBI_BL\\[1:0\\]
Pin Enable"]
pub type BLPEN_R = crate::BitReader<bool>;
#[doc = "Field `BLPEN` writer - EBI_BL\\[1:0\\]
Pin Enable"]
pub type BLPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `NANDPEN` reader - NANDRE and NANDWE Pin Enable"]
pub type NANDPEN_R = crate::BitReader<bool>;
#[doc = "Field `NANDPEN` writer - NANDRE and NANDWE Pin Enable"]
pub type NANDPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `ALB` reader - Sets the Lower Bound for EBI_A Enabling"]
pub type ALB_R = crate::FieldReader<u8, ALB_A>;
#[doc = "Sets the Lower Bound for EBI_A Enabling\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ALB_A {
    #[doc = "0: Address lines from EBI_A\\[0\\]
and upwards can be enabled via APEN."]
    A0 = 0,
    #[doc = "1: Address lines from EBI_A\\[8\\]
and upwards can be enabled via APEN."]
    A8 = 1,
    #[doc = "2: Address lines from EBI_A\\[16\\]
and upwards can be enabled via APEN."]
    A16 = 2,
    #[doc = "3: Address lines from EBI_A\\[24\\]
and upwards can be enabled via APEN."]
    A24 = 3,
}
impl From<ALB_A> for u8 {
    #[inline(always)]
    fn from(variant: ALB_A) -> Self {
        variant as _
    }
}
impl ALB_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ALB_A {
        match self.bits {
            0 => ALB_A::A0,
            1 => ALB_A::A8,
            2 => ALB_A::A16,
            3 => ALB_A::A24,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `A0`"]
    #[inline(always)]
    pub fn is_a0(&self) -> bool {
        *self == ALB_A::A0
    }
    #[doc = "Checks if the value of the field is `A8`"]
    #[inline(always)]
    pub fn is_a8(&self) -> bool {
        *self == ALB_A::A8
    }
    #[doc = "Checks if the value of the field is `A16`"]
    #[inline(always)]
    pub fn is_a16(&self) -> bool {
        *self == ALB_A::A16
    }
    #[doc = "Checks if the value of the field is `A24`"]
    #[inline(always)]
    pub fn is_a24(&self) -> bool {
        *self == ALB_A::A24
    }
}
#[doc = "Field `ALB` writer - Sets the Lower Bound for EBI_A Enabling"]
pub type ALB_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, ROUTEPEN_SPEC, u8, ALB_A, 2, O>;
impl<'a, const O: u8> ALB_W<'a, O> {
    #[doc = "Address lines from EBI_A\\[0\\]
and upwards can be enabled via APEN."]
    #[inline(always)]
    pub fn a0(self) -> &'a mut W {
        self.variant(ALB_A::A0)
    }
    #[doc = "Address lines from EBI_A\\[8\\]
and upwards can be enabled via APEN."]
    #[inline(always)]
    pub fn a8(self) -> &'a mut W {
        self.variant(ALB_A::A8)
    }
    #[doc = "Address lines from EBI_A\\[16\\]
and upwards can be enabled via APEN."]
    #[inline(always)]
    pub fn a16(self) -> &'a mut W {
        self.variant(ALB_A::A16)
    }
    #[doc = "Address lines from EBI_A\\[24\\]
and upwards can be enabled via APEN."]
    #[inline(always)]
    pub fn a24(self) -> &'a mut W {
        self.variant(ALB_A::A24)
    }
}
#[doc = "Field `APEN` reader - EBI_A Pin Enable"]
pub type APEN_R = crate::FieldReader<u8, APEN_A>;
#[doc = "EBI_A Pin Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum APEN_A {
    #[doc = "0: All EBI_A pins are disabled."]
    A0 = 0,
    #[doc = "5: EBI_A\\[4:L\\]
pins enabled."]
    A5 = 5,
    #[doc = "6: EBI_A\\[5:L\\]
pins enabled."]
    A6 = 6,
    #[doc = "7: EBI_A\\[6:L\\]
pins enabled."]
    A7 = 7,
    #[doc = "8: EBI_A\\[7:L\\]
pins enabled."]
    A8 = 8,
    #[doc = "9: EBI_A\\[8:L\\]
pins enabled."]
    A9 = 9,
    #[doc = "10: EBI_A\\[9:L\\]
pins enabled."]
    A10 = 10,
    #[doc = "11: EBI_A\\[10:L\\]
pins enabled."]
    A11 = 11,
    #[doc = "12: EBI_A\\[11:L\\]
pins enabled."]
    A12 = 12,
    #[doc = "13: EBI_A\\[12:L\\]
pins enabled."]
    A13 = 13,
    #[doc = "14: EBI_A\\[13:L\\]
pins enabled."]
    A14 = 14,
    #[doc = "15: EBI_A\\[14:L\\]
pins enabled."]
    A15 = 15,
    #[doc = "16: EBI_A\\[15:L\\]
pins enabled."]
    A16 = 16,
    #[doc = "17: EBI_A\\[16:L\\]
pins enabled."]
    A17 = 17,
    #[doc = "18: EBI_A\\[17:L\\]
pins enabled."]
    A18 = 18,
    #[doc = "19: EBI_A\\[18:L\\]
pins enabled."]
    A19 = 19,
    #[doc = "20: EBI_A\\[19:L\\]
pins enabled."]
    A20 = 20,
    #[doc = "21: EBI_A\\[20:L\\]
pins enabled."]
    A21 = 21,
    #[doc = "22: EBI_A\\[21:L\\]
pins enabled."]
    A22 = 22,
    #[doc = "23: EBI_A\\[22:L\\]
pins enabled."]
    A23 = 23,
    #[doc = "24: EBI_A\\[23:L\\]
pins enabled."]
    A24 = 24,
    #[doc = "25: EBI_A\\[24:L\\]
pins enabled."]
    A25 = 25,
    #[doc = "26: EBI_A\\[25:L\\]
pins enabled."]
    A26 = 26,
    #[doc = "27: EBI_A\\[26:L\\]
pins enabled."]
    A27 = 27,
    #[doc = "28: EBI_A\\[27:L\\]
pins enabled."]
    A28 = 28,
}
impl From<APEN_A> for u8 {
    #[inline(always)]
    fn from(variant: APEN_A) -> Self {
        variant as _
    }
}
impl APEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<APEN_A> {
        match self.bits {
            0 => Some(APEN_A::A0),
            5 => Some(APEN_A::A5),
            6 => Some(APEN_A::A6),
            7 => Some(APEN_A::A7),
            8 => Some(APEN_A::A8),
            9 => Some(APEN_A::A9),
            10 => Some(APEN_A::A10),
            11 => Some(APEN_A::A11),
            12 => Some(APEN_A::A12),
            13 => Some(APEN_A::A13),
            14 => Some(APEN_A::A14),
            15 => Some(APEN_A::A15),
            16 => Some(APEN_A::A16),
            17 => Some(APEN_A::A17),
            18 => Some(APEN_A::A18),
            19 => Some(APEN_A::A19),
            20 => Some(APEN_A::A20),
            21 => Some(APEN_A::A21),
            22 => Some(APEN_A::A22),
            23 => Some(APEN_A::A23),
            24 => Some(APEN_A::A24),
            25 => Some(APEN_A::A25),
            26 => Some(APEN_A::A26),
            27 => Some(APEN_A::A27),
            28 => Some(APEN_A::A28),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `A0`"]
    #[inline(always)]
    pub fn is_a0(&self) -> bool {
        *self == APEN_A::A0
    }
    #[doc = "Checks if the value of the field is `A5`"]
    #[inline(always)]
    pub fn is_a5(&self) -> bool {
        *self == APEN_A::A5
    }
    #[doc = "Checks if the value of the field is `A6`"]
    #[inline(always)]
    pub fn is_a6(&self) -> bool {
        *self == APEN_A::A6
    }
    #[doc = "Checks if the value of the field is `A7`"]
    #[inline(always)]
    pub fn is_a7(&self) -> bool {
        *self == APEN_A::A7
    }
    #[doc = "Checks if the value of the field is `A8`"]
    #[inline(always)]
    pub fn is_a8(&self) -> bool {
        *self == APEN_A::A8
    }
    #[doc = "Checks if the value of the field is `A9`"]
    #[inline(always)]
    pub fn is_a9(&self) -> bool {
        *self == APEN_A::A9
    }
    #[doc = "Checks if the value of the field is `A10`"]
    #[inline(always)]
    pub fn is_a10(&self) -> bool {
        *self == APEN_A::A10
    }
    #[doc = "Checks if the value of the field is `A11`"]
    #[inline(always)]
    pub fn is_a11(&self) -> bool {
        *self == APEN_A::A11
    }
    #[doc = "Checks if the value of the field is `A12`"]
    #[inline(always)]
    pub fn is_a12(&self) -> bool {
        *self == APEN_A::A12
    }
    #[doc = "Checks if the value of the field is `A13`"]
    #[inline(always)]
    pub fn is_a13(&self) -> bool {
        *self == APEN_A::A13
    }
    #[doc = "Checks if the value of the field is `A14`"]
    #[inline(always)]
    pub fn is_a14(&self) -> bool {
        *self == APEN_A::A14
    }
    #[doc = "Checks if the value of the field is `A15`"]
    #[inline(always)]
    pub fn is_a15(&self) -> bool {
        *self == APEN_A::A15
    }
    #[doc = "Checks if the value of the field is `A16`"]
    #[inline(always)]
    pub fn is_a16(&self) -> bool {
        *self == APEN_A::A16
    }
    #[doc = "Checks if the value of the field is `A17`"]
    #[inline(always)]
    pub fn is_a17(&self) -> bool {
        *self == APEN_A::A17
    }
    #[doc = "Checks if the value of the field is `A18`"]
    #[inline(always)]
    pub fn is_a18(&self) -> bool {
        *self == APEN_A::A18
    }
    #[doc = "Checks if the value of the field is `A19`"]
    #[inline(always)]
    pub fn is_a19(&self) -> bool {
        *self == APEN_A::A19
    }
    #[doc = "Checks if the value of the field is `A20`"]
    #[inline(always)]
    pub fn is_a20(&self) -> bool {
        *self == APEN_A::A20
    }
    #[doc = "Checks if the value of the field is `A21`"]
    #[inline(always)]
    pub fn is_a21(&self) -> bool {
        *self == APEN_A::A21
    }
    #[doc = "Checks if the value of the field is `A22`"]
    #[inline(always)]
    pub fn is_a22(&self) -> bool {
        *self == APEN_A::A22
    }
    #[doc = "Checks if the value of the field is `A23`"]
    #[inline(always)]
    pub fn is_a23(&self) -> bool {
        *self == APEN_A::A23
    }
    #[doc = "Checks if the value of the field is `A24`"]
    #[inline(always)]
    pub fn is_a24(&self) -> bool {
        *self == APEN_A::A24
    }
    #[doc = "Checks if the value of the field is `A25`"]
    #[inline(always)]
    pub fn is_a25(&self) -> bool {
        *self == APEN_A::A25
    }
    #[doc = "Checks if the value of the field is `A26`"]
    #[inline(always)]
    pub fn is_a26(&self) -> bool {
        *self == APEN_A::A26
    }
    #[doc = "Checks if the value of the field is `A27`"]
    #[inline(always)]
    pub fn is_a27(&self) -> bool {
        *self == APEN_A::A27
    }
    #[doc = "Checks if the value of the field is `A28`"]
    #[inline(always)]
    pub fn is_a28(&self) -> bool {
        *self == APEN_A::A28
    }
}
#[doc = "Field `APEN` writer - EBI_A Pin Enable"]
pub type APEN_W<'a, const O: u8> = crate::FieldWriter<'a, u32, ROUTEPEN_SPEC, u8, APEN_A, 5, O>;
impl<'a, const O: u8> APEN_W<'a, O> {
    #[doc = "All EBI_A pins are disabled."]
    #[inline(always)]
    pub fn a0(self) -> &'a mut W {
        self.variant(APEN_A::A0)
    }
    #[doc = "EBI_A\\[4:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a5(self) -> &'a mut W {
        self.variant(APEN_A::A5)
    }
    #[doc = "EBI_A\\[5:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a6(self) -> &'a mut W {
        self.variant(APEN_A::A6)
    }
    #[doc = "EBI_A\\[6:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a7(self) -> &'a mut W {
        self.variant(APEN_A::A7)
    }
    #[doc = "EBI_A\\[7:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a8(self) -> &'a mut W {
        self.variant(APEN_A::A8)
    }
    #[doc = "EBI_A\\[8:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a9(self) -> &'a mut W {
        self.variant(APEN_A::A9)
    }
    #[doc = "EBI_A\\[9:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a10(self) -> &'a mut W {
        self.variant(APEN_A::A10)
    }
    #[doc = "EBI_A\\[10:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a11(self) -> &'a mut W {
        self.variant(APEN_A::A11)
    }
    #[doc = "EBI_A\\[11:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a12(self) -> &'a mut W {
        self.variant(APEN_A::A12)
    }
    #[doc = "EBI_A\\[12:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a13(self) -> &'a mut W {
        self.variant(APEN_A::A13)
    }
    #[doc = "EBI_A\\[13:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a14(self) -> &'a mut W {
        self.variant(APEN_A::A14)
    }
    #[doc = "EBI_A\\[14:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a15(self) -> &'a mut W {
        self.variant(APEN_A::A15)
    }
    #[doc = "EBI_A\\[15:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a16(self) -> &'a mut W {
        self.variant(APEN_A::A16)
    }
    #[doc = "EBI_A\\[16:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a17(self) -> &'a mut W {
        self.variant(APEN_A::A17)
    }
    #[doc = "EBI_A\\[17:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a18(self) -> &'a mut W {
        self.variant(APEN_A::A18)
    }
    #[doc = "EBI_A\\[18:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a19(self) -> &'a mut W {
        self.variant(APEN_A::A19)
    }
    #[doc = "EBI_A\\[19:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a20(self) -> &'a mut W {
        self.variant(APEN_A::A20)
    }
    #[doc = "EBI_A\\[20:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a21(self) -> &'a mut W {
        self.variant(APEN_A::A21)
    }
    #[doc = "EBI_A\\[21:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a22(self) -> &'a mut W {
        self.variant(APEN_A::A22)
    }
    #[doc = "EBI_A\\[22:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a23(self) -> &'a mut W {
        self.variant(APEN_A::A23)
    }
    #[doc = "EBI_A\\[23:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a24(self) -> &'a mut W {
        self.variant(APEN_A::A24)
    }
    #[doc = "EBI_A\\[24:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a25(self) -> &'a mut W {
        self.variant(APEN_A::A25)
    }
    #[doc = "EBI_A\\[25:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a26(self) -> &'a mut W {
        self.variant(APEN_A::A26)
    }
    #[doc = "EBI_A\\[26:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a27(self) -> &'a mut W {
        self.variant(APEN_A::A27)
    }
    #[doc = "EBI_A\\[27:L\\]
pins enabled."]
    #[inline(always)]
    pub fn a28(self) -> &'a mut W {
        self.variant(APEN_A::A28)
    }
}
#[doc = "Field `TFTPEN` reader - EBI_TFT Pin Enable"]
pub type TFTPEN_R = crate::BitReader<bool>;
#[doc = "Field `TFTPEN` writer - EBI_TFT Pin Enable"]
pub type TFTPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `DATAENPEN` reader - EBI_DATA Pin Enable"]
pub type DATAENPEN_R = crate::BitReader<bool>;
#[doc = "Field `DATAENPEN` writer - EBI_DATA Pin Enable"]
pub type DATAENPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
#[doc = "Field `CSTFTPEN` reader - EBI_CSTFT Pin Enable"]
pub type CSTFTPEN_R = crate::BitReader<bool>;
#[doc = "Field `CSTFTPEN` writer - EBI_CSTFT Pin Enable"]
pub type CSTFTPEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, ROUTEPEN_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0 - EBI Pin Enable"]
    #[inline(always)]
    pub fn ebipen(&self) -> EBIPEN_R {
        EBIPEN_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - EBI_CS0 Pin Enable"]
    #[inline(always)]
    pub fn cs0pen(&self) -> CS0PEN_R {
        CS0PEN_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - EBI_CS1 Pin Enable"]
    #[inline(always)]
    pub fn cs1pen(&self) -> CS1PEN_R {
        CS1PEN_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - EBI_CS2 Pin Enable"]
    #[inline(always)]
    pub fn cs2pen(&self) -> CS2PEN_R {
        CS2PEN_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - EBI_CS3 Pin Enable"]
    #[inline(always)]
    pub fn cs3pen(&self) -> CS3PEN_R {
        CS3PEN_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - EBI_ALE Pin Enable"]
    #[inline(always)]
    pub fn alepen(&self) -> ALEPEN_R {
        ALEPEN_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - EBI_ARDY Pin Enable"]
    #[inline(always)]
    pub fn ardypen(&self) -> ARDYPEN_R {
        ARDYPEN_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - EBI_BL\\[1:0\\]
Pin Enable"]
    #[inline(always)]
    pub fn blpen(&self) -> BLPEN_R {
        BLPEN_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 12 - NANDRE and NANDWE Pin Enable"]
    #[inline(always)]
    pub fn nandpen(&self) -> NANDPEN_R {
        NANDPEN_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bits 16:17 - Sets the Lower Bound for EBI_A Enabling"]
    #[inline(always)]
    pub fn alb(&self) -> ALB_R {
        ALB_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:22 - EBI_A Pin Enable"]
    #[inline(always)]
    pub fn apen(&self) -> APEN_R {
        APEN_R::new(((self.bits >> 18) & 0x1f) as u8)
    }
    #[doc = "Bit 24 - EBI_TFT Pin Enable"]
    #[inline(always)]
    pub fn tftpen(&self) -> TFTPEN_R {
        TFTPEN_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - EBI_DATA Pin Enable"]
    #[inline(always)]
    pub fn dataenpen(&self) -> DATAENPEN_R {
        DATAENPEN_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - EBI_CSTFT Pin Enable"]
    #[inline(always)]
    pub fn cstftpen(&self) -> CSTFTPEN_R {
        CSTFTPEN_R::new(((self.bits >> 26) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - EBI Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn ebipen(&mut self) -> EBIPEN_W<0> {
        EBIPEN_W::new(self)
    }
    #[doc = "Bit 1 - EBI_CS0 Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn cs0pen(&mut self) -> CS0PEN_W<1> {
        CS0PEN_W::new(self)
    }
    #[doc = "Bit 2 - EBI_CS1 Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn cs1pen(&mut self) -> CS1PEN_W<2> {
        CS1PEN_W::new(self)
    }
    #[doc = "Bit 3 - EBI_CS2 Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn cs2pen(&mut self) -> CS2PEN_W<3> {
        CS2PEN_W::new(self)
    }
    #[doc = "Bit 4 - EBI_CS3 Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn cs3pen(&mut self) -> CS3PEN_W<4> {
        CS3PEN_W::new(self)
    }
    #[doc = "Bit 5 - EBI_ALE Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn alepen(&mut self) -> ALEPEN_W<5> {
        ALEPEN_W::new(self)
    }
    #[doc = "Bit 6 - EBI_ARDY Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn ardypen(&mut self) -> ARDYPEN_W<6> {
        ARDYPEN_W::new(self)
    }
    #[doc = "Bit 7 - EBI_BL\\[1:0\\]
Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn blpen(&mut self) -> BLPEN_W<7> {
        BLPEN_W::new(self)
    }
    #[doc = "Bit 12 - NANDRE and NANDWE Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn nandpen(&mut self) -> NANDPEN_W<12> {
        NANDPEN_W::new(self)
    }
    #[doc = "Bits 16:17 - Sets the Lower Bound for EBI_A Enabling"]
    #[inline(always)]
    #[must_use]
    pub fn alb(&mut self) -> ALB_W<16> {
        ALB_W::new(self)
    }
    #[doc = "Bits 18:22 - EBI_A Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn apen(&mut self) -> APEN_W<18> {
        APEN_W::new(self)
    }
    #[doc = "Bit 24 - EBI_TFT Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn tftpen(&mut self) -> TFTPEN_W<24> {
        TFTPEN_W::new(self)
    }
    #[doc = "Bit 25 - EBI_DATA Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn dataenpen(&mut self) -> DATAENPEN_W<25> {
        DATAENPEN_W::new(self)
    }
    #[doc = "Bit 26 - EBI_CSTFT Pin Enable"]
    #[inline(always)]
    #[must_use]
    pub fn cstftpen(&mut self) -> CSTFTPEN_W<26> {
        CSTFTPEN_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 = "I/O Routing 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 [routepen](index.html) module"]
pub struct ROUTEPEN_SPEC;
impl crate::RegisterSpec for ROUTEPEN_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [routepen::R](R) reader structure"]
impl crate::Readable for ROUTEPEN_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [routepen::W](W) writer structure"]
impl crate::Writable for ROUTEPEN_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 ROUTEPEN to value 0"]
impl crate::Resettable for ROUTEPEN_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}