bl602-pac 0.0.0

Embedded Rust's Peripheral Access Crate for BL602 RISC-V WiFi microcontroller
Documentation
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
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
#[doc = "Register `GPIO_CFGCTL30` reader"]
pub struct R(crate::R<GPIO_CFGCTL30_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<GPIO_CFGCTL30_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<GPIO_CFGCTL30_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<GPIO_CFGCTL30_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `reg_gpio_0_i` reader - "]
pub type REG_GPIO_0_I_R = crate::BitReader<bool>;
#[doc = "Field `reg_gpio_1_i` reader - Input register for GPIO1."]
pub type REG_GPIO_1_I_R = crate::BitReader<GPIO1INPUT_A>;
#[doc = "Input register for GPIO1.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO1INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO1INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO1INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_1_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO1INPUT_A {
        match self.bits {
            false => GPIO1INPUT_A::DISABLED,
            true => GPIO1INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO1INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO1INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_2_i` reader - Input register for GPIO2."]
pub type REG_GPIO_2_I_R = crate::BitReader<GPIO2INPUT_A>;
#[doc = "Input register for GPIO2.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO2INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO2INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO2INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_2_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO2INPUT_A {
        match self.bits {
            false => GPIO2INPUT_A::DISABLED,
            true => GPIO2INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO2INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO2INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_3_i` reader - Input register for GPIO3."]
pub type REG_GPIO_3_I_R = crate::BitReader<GPIO3INPUT_A>;
#[doc = "Input register for GPIO3.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO3INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO3INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO3INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_3_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO3INPUT_A {
        match self.bits {
            false => GPIO3INPUT_A::DISABLED,
            true => GPIO3INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO3INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO3INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_4_i` reader - Input register for GPIO4."]
pub type REG_GPIO_4_I_R = crate::BitReader<GPIO4INPUT_A>;
#[doc = "Input register for GPIO4.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO4INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO4INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO4INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_4_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO4INPUT_A {
        match self.bits {
            false => GPIO4INPUT_A::DISABLED,
            true => GPIO4INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO4INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO4INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_5_i` reader - Input register for GPIO5."]
pub type REG_GPIO_5_I_R = crate::BitReader<GPIO5INPUT_A>;
#[doc = "Input register for GPIO5.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO5INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO5INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO5INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_5_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO5INPUT_A {
        match self.bits {
            false => GPIO5INPUT_A::DISABLED,
            true => GPIO5INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO5INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO5INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_6_i` reader - Input register for GPIO6."]
pub type REG_GPIO_6_I_R = crate::BitReader<GPIO6INPUT_A>;
#[doc = "Input register for GPIO6.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO6INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO6INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO6INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_6_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO6INPUT_A {
        match self.bits {
            false => GPIO6INPUT_A::DISABLED,
            true => GPIO6INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO6INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO6INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_7_i` reader - Input register for GPIO7."]
pub type REG_GPIO_7_I_R = crate::BitReader<GPIO7INPUT_A>;
#[doc = "Input register for GPIO7.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO7INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO7INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO7INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_7_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO7INPUT_A {
        match self.bits {
            false => GPIO7INPUT_A::DISABLED,
            true => GPIO7INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO7INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO7INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_8_i` reader - Input register for GPIO8."]
pub type REG_GPIO_8_I_R = crate::BitReader<GPIO8INPUT_A>;
#[doc = "Input register for GPIO8.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO8INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO8INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO8INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_8_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO8INPUT_A {
        match self.bits {
            false => GPIO8INPUT_A::DISABLED,
            true => GPIO8INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO8INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO8INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_9_i` reader - Input register for GPIO9."]
pub type REG_GPIO_9_I_R = crate::BitReader<GPIO9INPUT_A>;
#[doc = "Input register for GPIO9.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO9INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO9INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO9INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_9_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO9INPUT_A {
        match self.bits {
            false => GPIO9INPUT_A::DISABLED,
            true => GPIO9INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO9INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO9INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_10_i` reader - Input register for GPIO10."]
pub type REG_GPIO_10_I_R = crate::BitReader<GPIO10INPUT_A>;
#[doc = "Input register for GPIO10.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO10INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO10INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO10INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_10_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO10INPUT_A {
        match self.bits {
            false => GPIO10INPUT_A::DISABLED,
            true => GPIO10INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO10INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO10INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_11_i` reader - Input register for GPIO11."]
pub type REG_GPIO_11_I_R = crate::BitReader<GPIO11INPUT_A>;
#[doc = "Input register for GPIO11.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO11INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO11INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO11INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_11_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO11INPUT_A {
        match self.bits {
            false => GPIO11INPUT_A::DISABLED,
            true => GPIO11INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO11INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO11INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_12_i` reader - Input register for GPIO12."]
pub type REG_GPIO_12_I_R = crate::BitReader<GPIO12INPUT_A>;
#[doc = "Input register for GPIO12.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO12INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO12INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO12INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_12_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO12INPUT_A {
        match self.bits {
            false => GPIO12INPUT_A::DISABLED,
            true => GPIO12INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO12INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO12INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_13_i` reader - Input register for GPIO13."]
pub type REG_GPIO_13_I_R = crate::BitReader<GPIO13INPUT_A>;
#[doc = "Input register for GPIO13.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO13INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO13INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO13INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_13_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO13INPUT_A {
        match self.bits {
            false => GPIO13INPUT_A::DISABLED,
            true => GPIO13INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO13INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO13INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_14_i` reader - Input register for GPIO14."]
pub type REG_GPIO_14_I_R = crate::BitReader<GPIO14INPUT_A>;
#[doc = "Input register for GPIO14.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO14INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO14INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO14INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_14_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO14INPUT_A {
        match self.bits {
            false => GPIO14INPUT_A::DISABLED,
            true => GPIO14INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO14INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO14INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_15_i` reader - Input register for GPIO15."]
pub type REG_GPIO_15_I_R = crate::BitReader<GPIO15INPUT_A>;
#[doc = "Input register for GPIO15.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO15INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO15INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO15INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_15_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO15INPUT_A {
        match self.bits {
            false => GPIO15INPUT_A::DISABLED,
            true => GPIO15INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO15INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO15INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_16_i` reader - Input register for GPIO16."]
pub type REG_GPIO_16_I_R = crate::BitReader<GPIO16INPUT_A>;
#[doc = "Input register for GPIO16.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO16INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO16INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO16INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_16_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO16INPUT_A {
        match self.bits {
            false => GPIO16INPUT_A::DISABLED,
            true => GPIO16INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO16INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO16INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_17_i` reader - Input register for GPIO17."]
pub type REG_GPIO_17_I_R = crate::BitReader<GPIO17INPUT_A>;
#[doc = "Input register for GPIO17.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO17INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO17INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO17INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_17_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO17INPUT_A {
        match self.bits {
            false => GPIO17INPUT_A::DISABLED,
            true => GPIO17INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO17INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO17INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_18_i` reader - Input register for GPIO18."]
pub type REG_GPIO_18_I_R = crate::BitReader<GPIO18INPUT_A>;
#[doc = "Input register for GPIO18.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO18INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO18INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO18INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_18_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO18INPUT_A {
        match self.bits {
            false => GPIO18INPUT_A::DISABLED,
            true => GPIO18INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO18INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO18INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_19_i` reader - Input register for GPIO19."]
pub type REG_GPIO_19_I_R = crate::BitReader<GPIO19INPUT_A>;
#[doc = "Input register for GPIO19.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO19INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO19INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO19INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_19_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO19INPUT_A {
        match self.bits {
            false => GPIO19INPUT_A::DISABLED,
            true => GPIO19INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO19INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO19INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_20_i` reader - Input register for GPIO20."]
pub type REG_GPIO_20_I_R = crate::BitReader<GPIO20INPUT_A>;
#[doc = "Input register for GPIO20.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO20INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO20INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO20INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_20_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO20INPUT_A {
        match self.bits {
            false => GPIO20INPUT_A::DISABLED,
            true => GPIO20INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO20INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO20INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_21_i` reader - Input register for GPIO21."]
pub type REG_GPIO_21_I_R = crate::BitReader<GPIO21INPUT_A>;
#[doc = "Input register for GPIO21.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO21INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO21INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO21INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_21_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO21INPUT_A {
        match self.bits {
            false => GPIO21INPUT_A::DISABLED,
            true => GPIO21INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO21INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO21INPUT_A::ENABLED
    }
}
#[doc = "Field `reg_gpio_22_i` reader - Input register for GPIO22."]
pub type REG_GPIO_22_I_R = crate::BitReader<GPIO22INPUT_A>;
#[doc = "Input register for GPIO22.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GPIO22INPUT_A {
    #[doc = "0: `0`"]
    DISABLED = 0,
    #[doc = "1: `1`"]
    ENABLED = 1,
}
impl From<GPIO22INPUT_A> for bool {
    #[inline(always)]
    fn from(variant: GPIO22INPUT_A) -> Self {
        variant as u8 != 0
    }
}
impl REG_GPIO_22_I_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GPIO22INPUT_A {
        match self.bits {
            false => GPIO22INPUT_A::DISABLED,
            true => GPIO22INPUT_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == GPIO22INPUT_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == GPIO22INPUT_A::ENABLED
    }
}
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn reg_gpio_0_i(&self) -> REG_GPIO_0_I_R {
        REG_GPIO_0_I_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Input register for GPIO1."]
    #[inline(always)]
    pub fn reg_gpio_1_i(&self) -> REG_GPIO_1_I_R {
        REG_GPIO_1_I_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Input register for GPIO2."]
    #[inline(always)]
    pub fn reg_gpio_2_i(&self) -> REG_GPIO_2_I_R {
        REG_GPIO_2_I_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Input register for GPIO3."]
    #[inline(always)]
    pub fn reg_gpio_3_i(&self) -> REG_GPIO_3_I_R {
        REG_GPIO_3_I_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Input register for GPIO4."]
    #[inline(always)]
    pub fn reg_gpio_4_i(&self) -> REG_GPIO_4_I_R {
        REG_GPIO_4_I_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Input register for GPIO5."]
    #[inline(always)]
    pub fn reg_gpio_5_i(&self) -> REG_GPIO_5_I_R {
        REG_GPIO_5_I_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Input register for GPIO6."]
    #[inline(always)]
    pub fn reg_gpio_6_i(&self) -> REG_GPIO_6_I_R {
        REG_GPIO_6_I_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Input register for GPIO7."]
    #[inline(always)]
    pub fn reg_gpio_7_i(&self) -> REG_GPIO_7_I_R {
        REG_GPIO_7_I_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Input register for GPIO8."]
    #[inline(always)]
    pub fn reg_gpio_8_i(&self) -> REG_GPIO_8_I_R {
        REG_GPIO_8_I_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Input register for GPIO9."]
    #[inline(always)]
    pub fn reg_gpio_9_i(&self) -> REG_GPIO_9_I_R {
        REG_GPIO_9_I_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Input register for GPIO10."]
    #[inline(always)]
    pub fn reg_gpio_10_i(&self) -> REG_GPIO_10_I_R {
        REG_GPIO_10_I_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Input register for GPIO11."]
    #[inline(always)]
    pub fn reg_gpio_11_i(&self) -> REG_GPIO_11_I_R {
        REG_GPIO_11_I_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Input register for GPIO12."]
    #[inline(always)]
    pub fn reg_gpio_12_i(&self) -> REG_GPIO_12_I_R {
        REG_GPIO_12_I_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Input register for GPIO13."]
    #[inline(always)]
    pub fn reg_gpio_13_i(&self) -> REG_GPIO_13_I_R {
        REG_GPIO_13_I_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Input register for GPIO14."]
    #[inline(always)]
    pub fn reg_gpio_14_i(&self) -> REG_GPIO_14_I_R {
        REG_GPIO_14_I_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Input register for GPIO15."]
    #[inline(always)]
    pub fn reg_gpio_15_i(&self) -> REG_GPIO_15_I_R {
        REG_GPIO_15_I_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Input register for GPIO16."]
    #[inline(always)]
    pub fn reg_gpio_16_i(&self) -> REG_GPIO_16_I_R {
        REG_GPIO_16_I_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Input register for GPIO17."]
    #[inline(always)]
    pub fn reg_gpio_17_i(&self) -> REG_GPIO_17_I_R {
        REG_GPIO_17_I_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Input register for GPIO18."]
    #[inline(always)]
    pub fn reg_gpio_18_i(&self) -> REG_GPIO_18_I_R {
        REG_GPIO_18_I_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Input register for GPIO19."]
    #[inline(always)]
    pub fn reg_gpio_19_i(&self) -> REG_GPIO_19_I_R {
        REG_GPIO_19_I_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Input register for GPIO20."]
    #[inline(always)]
    pub fn reg_gpio_20_i(&self) -> REG_GPIO_20_I_R {
        REG_GPIO_20_I_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Input register for GPIO21."]
    #[inline(always)]
    pub fn reg_gpio_21_i(&self) -> REG_GPIO_21_I_R {
        REG_GPIO_21_I_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Input register for GPIO22."]
    #[inline(always)]
    pub fn reg_gpio_22_i(&self) -> REG_GPIO_22_I_R {
        REG_GPIO_22_I_R::new(((self.bits >> 22) & 1) != 0)
    }
}
#[doc = "Input register for all GPIO pins. Input Enabled bit must be set in configuration register to work.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpio_cfgctl30](index.html) module"]
pub struct GPIO_CFGCTL30_SPEC;
impl crate::RegisterSpec for GPIO_CFGCTL30_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [gpio_cfgctl30::R](R) reader structure"]
impl crate::Readable for GPIO_CFGCTL30_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets GPIO_CFGCTL30 to value 0"]
impl crate::Resettable for GPIO_CFGCTL30_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}