d1_pac/gpio/
pd_cfg1.rs

1#[doc = "Register `pd_cfg1` reader"]
2pub type R = crate::R<PD_CFG1_SPEC>;
3#[doc = "Register `pd_cfg1` writer"]
4pub type W = crate::W<PD_CFG1_SPEC>;
5#[doc = "Field `pd8_select` reader - PD8 Select"]
6pub type PD8_SELECT_R = crate::FieldReader<PD8_SELECT_A>;
7#[doc = "PD8 Select\n\nValue on reset: 0"]
8#[derive(Clone, Copy, Debug, PartialEq, Eq)]
9#[repr(u8)]
10pub enum PD8_SELECT_A {
11    #[doc = "0: `0`"]
12    INPUT = 0,
13    #[doc = "2: `10`"]
14    LCD0_D12 = 2,
15    #[doc = "4: `100`"]
16    DSI_D3P = 4,
17    #[doc = "14: `1110`"]
18    PD_EINT8 = 14,
19    #[doc = "1: `1`"]
20    OUTPUT = 1,
21    #[doc = "3: `11`"]
22    LVDS0_V3P = 3,
23    #[doc = "5: `101`"]
24    UART4_RX = 5,
25    #[doc = "15: `1111`"]
26    IO_DISABLE = 15,
27}
28impl From<PD8_SELECT_A> for u8 {
29    #[inline(always)]
30    fn from(variant: PD8_SELECT_A) -> Self {
31        variant as _
32    }
33}
34impl crate::FieldSpec for PD8_SELECT_A {
35    type Ux = u8;
36}
37impl PD8_SELECT_R {
38    #[doc = "Get enumerated values variant"]
39    #[inline(always)]
40    pub const fn variant(&self) -> Option<PD8_SELECT_A> {
41        match self.bits {
42            0 => Some(PD8_SELECT_A::INPUT),
43            2 => Some(PD8_SELECT_A::LCD0_D12),
44            4 => Some(PD8_SELECT_A::DSI_D3P),
45            14 => Some(PD8_SELECT_A::PD_EINT8),
46            1 => Some(PD8_SELECT_A::OUTPUT),
47            3 => Some(PD8_SELECT_A::LVDS0_V3P),
48            5 => Some(PD8_SELECT_A::UART4_RX),
49            15 => Some(PD8_SELECT_A::IO_DISABLE),
50            _ => None,
51        }
52    }
53    #[doc = "`0`"]
54    #[inline(always)]
55    pub fn is_input(&self) -> bool {
56        *self == PD8_SELECT_A::INPUT
57    }
58    #[doc = "`10`"]
59    #[inline(always)]
60    pub fn is_lcd0_d12(&self) -> bool {
61        *self == PD8_SELECT_A::LCD0_D12
62    }
63    #[doc = "`100`"]
64    #[inline(always)]
65    pub fn is_dsi_d3p(&self) -> bool {
66        *self == PD8_SELECT_A::DSI_D3P
67    }
68    #[doc = "`1110`"]
69    #[inline(always)]
70    pub fn is_pd_eint8(&self) -> bool {
71        *self == PD8_SELECT_A::PD_EINT8
72    }
73    #[doc = "`1`"]
74    #[inline(always)]
75    pub fn is_output(&self) -> bool {
76        *self == PD8_SELECT_A::OUTPUT
77    }
78    #[doc = "`11`"]
79    #[inline(always)]
80    pub fn is_lvds0_v3p(&self) -> bool {
81        *self == PD8_SELECT_A::LVDS0_V3P
82    }
83    #[doc = "`101`"]
84    #[inline(always)]
85    pub fn is_uart4_rx(&self) -> bool {
86        *self == PD8_SELECT_A::UART4_RX
87    }
88    #[doc = "`1111`"]
89    #[inline(always)]
90    pub fn is_io_disable(&self) -> bool {
91        *self == PD8_SELECT_A::IO_DISABLE
92    }
93}
94#[doc = "Field `pd8_select` writer - PD8 Select"]
95pub type PD8_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD8_SELECT_A>;
96impl<'a, REG> PD8_SELECT_W<'a, REG>
97where
98    REG: crate::Writable + crate::RegisterSpec,
99    REG::Ux: From<u8>,
100{
101    #[doc = "`0`"]
102    #[inline(always)]
103    pub fn input(self) -> &'a mut crate::W<REG> {
104        self.variant(PD8_SELECT_A::INPUT)
105    }
106    #[doc = "`10`"]
107    #[inline(always)]
108    pub fn lcd0_d12(self) -> &'a mut crate::W<REG> {
109        self.variant(PD8_SELECT_A::LCD0_D12)
110    }
111    #[doc = "`100`"]
112    #[inline(always)]
113    pub fn dsi_d3p(self) -> &'a mut crate::W<REG> {
114        self.variant(PD8_SELECT_A::DSI_D3P)
115    }
116    #[doc = "`1110`"]
117    #[inline(always)]
118    pub fn pd_eint8(self) -> &'a mut crate::W<REG> {
119        self.variant(PD8_SELECT_A::PD_EINT8)
120    }
121    #[doc = "`1`"]
122    #[inline(always)]
123    pub fn output(self) -> &'a mut crate::W<REG> {
124        self.variant(PD8_SELECT_A::OUTPUT)
125    }
126    #[doc = "`11`"]
127    #[inline(always)]
128    pub fn lvds0_v3p(self) -> &'a mut crate::W<REG> {
129        self.variant(PD8_SELECT_A::LVDS0_V3P)
130    }
131    #[doc = "`101`"]
132    #[inline(always)]
133    pub fn uart4_rx(self) -> &'a mut crate::W<REG> {
134        self.variant(PD8_SELECT_A::UART4_RX)
135    }
136    #[doc = "`1111`"]
137    #[inline(always)]
138    pub fn io_disable(self) -> &'a mut crate::W<REG> {
139        self.variant(PD8_SELECT_A::IO_DISABLE)
140    }
141}
142#[doc = "Field `pd9_select` reader - PD9 Select"]
143pub type PD9_SELECT_R = crate::FieldReader<PD9_SELECT_A>;
144#[doc = "PD9 Select\n\nValue on reset: 0"]
145#[derive(Clone, Copy, Debug, PartialEq, Eq)]
146#[repr(u8)]
147pub enum PD9_SELECT_A {
148    #[doc = "0: `0`"]
149    INPUT = 0,
150    #[doc = "2: `10`"]
151    LCD0_D13 = 2,
152    #[doc = "4: `100`"]
153    DSI_D3N = 4,
154    #[doc = "14: `1110`"]
155    PD_EINT9 = 14,
156    #[doc = "1: `1`"]
157    OUTPUT = 1,
158    #[doc = "3: `11`"]
159    LVDS0_V3N = 3,
160    #[doc = "5: `101`"]
161    PWM6 = 5,
162    #[doc = "15: `1111`"]
163    IO_DISABLE = 15,
164}
165impl From<PD9_SELECT_A> for u8 {
166    #[inline(always)]
167    fn from(variant: PD9_SELECT_A) -> Self {
168        variant as _
169    }
170}
171impl crate::FieldSpec for PD9_SELECT_A {
172    type Ux = u8;
173}
174impl PD9_SELECT_R {
175    #[doc = "Get enumerated values variant"]
176    #[inline(always)]
177    pub const fn variant(&self) -> Option<PD9_SELECT_A> {
178        match self.bits {
179            0 => Some(PD9_SELECT_A::INPUT),
180            2 => Some(PD9_SELECT_A::LCD0_D13),
181            4 => Some(PD9_SELECT_A::DSI_D3N),
182            14 => Some(PD9_SELECT_A::PD_EINT9),
183            1 => Some(PD9_SELECT_A::OUTPUT),
184            3 => Some(PD9_SELECT_A::LVDS0_V3N),
185            5 => Some(PD9_SELECT_A::PWM6),
186            15 => Some(PD9_SELECT_A::IO_DISABLE),
187            _ => None,
188        }
189    }
190    #[doc = "`0`"]
191    #[inline(always)]
192    pub fn is_input(&self) -> bool {
193        *self == PD9_SELECT_A::INPUT
194    }
195    #[doc = "`10`"]
196    #[inline(always)]
197    pub fn is_lcd0_d13(&self) -> bool {
198        *self == PD9_SELECT_A::LCD0_D13
199    }
200    #[doc = "`100`"]
201    #[inline(always)]
202    pub fn is_dsi_d3n(&self) -> bool {
203        *self == PD9_SELECT_A::DSI_D3N
204    }
205    #[doc = "`1110`"]
206    #[inline(always)]
207    pub fn is_pd_eint9(&self) -> bool {
208        *self == PD9_SELECT_A::PD_EINT9
209    }
210    #[doc = "`1`"]
211    #[inline(always)]
212    pub fn is_output(&self) -> bool {
213        *self == PD9_SELECT_A::OUTPUT
214    }
215    #[doc = "`11`"]
216    #[inline(always)]
217    pub fn is_lvds0_v3n(&self) -> bool {
218        *self == PD9_SELECT_A::LVDS0_V3N
219    }
220    #[doc = "`101`"]
221    #[inline(always)]
222    pub fn is_pwm6(&self) -> bool {
223        *self == PD9_SELECT_A::PWM6
224    }
225    #[doc = "`1111`"]
226    #[inline(always)]
227    pub fn is_io_disable(&self) -> bool {
228        *self == PD9_SELECT_A::IO_DISABLE
229    }
230}
231#[doc = "Field `pd9_select` writer - PD9 Select"]
232pub type PD9_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD9_SELECT_A>;
233impl<'a, REG> PD9_SELECT_W<'a, REG>
234where
235    REG: crate::Writable + crate::RegisterSpec,
236    REG::Ux: From<u8>,
237{
238    #[doc = "`0`"]
239    #[inline(always)]
240    pub fn input(self) -> &'a mut crate::W<REG> {
241        self.variant(PD9_SELECT_A::INPUT)
242    }
243    #[doc = "`10`"]
244    #[inline(always)]
245    pub fn lcd0_d13(self) -> &'a mut crate::W<REG> {
246        self.variant(PD9_SELECT_A::LCD0_D13)
247    }
248    #[doc = "`100`"]
249    #[inline(always)]
250    pub fn dsi_d3n(self) -> &'a mut crate::W<REG> {
251        self.variant(PD9_SELECT_A::DSI_D3N)
252    }
253    #[doc = "`1110`"]
254    #[inline(always)]
255    pub fn pd_eint9(self) -> &'a mut crate::W<REG> {
256        self.variant(PD9_SELECT_A::PD_EINT9)
257    }
258    #[doc = "`1`"]
259    #[inline(always)]
260    pub fn output(self) -> &'a mut crate::W<REG> {
261        self.variant(PD9_SELECT_A::OUTPUT)
262    }
263    #[doc = "`11`"]
264    #[inline(always)]
265    pub fn lvds0_v3n(self) -> &'a mut crate::W<REG> {
266        self.variant(PD9_SELECT_A::LVDS0_V3N)
267    }
268    #[doc = "`101`"]
269    #[inline(always)]
270    pub fn pwm6(self) -> &'a mut crate::W<REG> {
271        self.variant(PD9_SELECT_A::PWM6)
272    }
273    #[doc = "`1111`"]
274    #[inline(always)]
275    pub fn io_disable(self) -> &'a mut crate::W<REG> {
276        self.variant(PD9_SELECT_A::IO_DISABLE)
277    }
278}
279#[doc = "Field `pd10_select` reader - PD10 Select"]
280pub type PD10_SELECT_R = crate::FieldReader<PD10_SELECT_A>;
281#[doc = "PD10 Select\n\nValue on reset: 0"]
282#[derive(Clone, Copy, Debug, PartialEq, Eq)]
283#[repr(u8)]
284pub enum PD10_SELECT_A {
285    #[doc = "0: `0`"]
286    INPUT = 0,
287    #[doc = "2: `10`"]
288    LCD0_D14 = 2,
289    #[doc = "4: `100`"]
290    SPI1_CS_DBI_CSX = 4,
291    #[doc = "14: `1110`"]
292    PD_EINT10 = 14,
293    #[doc = "1: `1`"]
294    OUTPUT = 1,
295    #[doc = "3: `11`"]
296    LVDS1_V0P = 3,
297    #[doc = "5: `101`"]
298    UART3_TX = 5,
299    #[doc = "15: `1111`"]
300    IO_DISABLE = 15,
301}
302impl From<PD10_SELECT_A> for u8 {
303    #[inline(always)]
304    fn from(variant: PD10_SELECT_A) -> Self {
305        variant as _
306    }
307}
308impl crate::FieldSpec for PD10_SELECT_A {
309    type Ux = u8;
310}
311impl PD10_SELECT_R {
312    #[doc = "Get enumerated values variant"]
313    #[inline(always)]
314    pub const fn variant(&self) -> Option<PD10_SELECT_A> {
315        match self.bits {
316            0 => Some(PD10_SELECT_A::INPUT),
317            2 => Some(PD10_SELECT_A::LCD0_D14),
318            4 => Some(PD10_SELECT_A::SPI1_CS_DBI_CSX),
319            14 => Some(PD10_SELECT_A::PD_EINT10),
320            1 => Some(PD10_SELECT_A::OUTPUT),
321            3 => Some(PD10_SELECT_A::LVDS1_V0P),
322            5 => Some(PD10_SELECT_A::UART3_TX),
323            15 => Some(PD10_SELECT_A::IO_DISABLE),
324            _ => None,
325        }
326    }
327    #[doc = "`0`"]
328    #[inline(always)]
329    pub fn is_input(&self) -> bool {
330        *self == PD10_SELECT_A::INPUT
331    }
332    #[doc = "`10`"]
333    #[inline(always)]
334    pub fn is_lcd0_d14(&self) -> bool {
335        *self == PD10_SELECT_A::LCD0_D14
336    }
337    #[doc = "`100`"]
338    #[inline(always)]
339    pub fn is_spi1_cs_dbi_csx(&self) -> bool {
340        *self == PD10_SELECT_A::SPI1_CS_DBI_CSX
341    }
342    #[doc = "`1110`"]
343    #[inline(always)]
344    pub fn is_pd_eint10(&self) -> bool {
345        *self == PD10_SELECT_A::PD_EINT10
346    }
347    #[doc = "`1`"]
348    #[inline(always)]
349    pub fn is_output(&self) -> bool {
350        *self == PD10_SELECT_A::OUTPUT
351    }
352    #[doc = "`11`"]
353    #[inline(always)]
354    pub fn is_lvds1_v0p(&self) -> bool {
355        *self == PD10_SELECT_A::LVDS1_V0P
356    }
357    #[doc = "`101`"]
358    #[inline(always)]
359    pub fn is_uart3_tx(&self) -> bool {
360        *self == PD10_SELECT_A::UART3_TX
361    }
362    #[doc = "`1111`"]
363    #[inline(always)]
364    pub fn is_io_disable(&self) -> bool {
365        *self == PD10_SELECT_A::IO_DISABLE
366    }
367}
368#[doc = "Field `pd10_select` writer - PD10 Select"]
369pub type PD10_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD10_SELECT_A>;
370impl<'a, REG> PD10_SELECT_W<'a, REG>
371where
372    REG: crate::Writable + crate::RegisterSpec,
373    REG::Ux: From<u8>,
374{
375    #[doc = "`0`"]
376    #[inline(always)]
377    pub fn input(self) -> &'a mut crate::W<REG> {
378        self.variant(PD10_SELECT_A::INPUT)
379    }
380    #[doc = "`10`"]
381    #[inline(always)]
382    pub fn lcd0_d14(self) -> &'a mut crate::W<REG> {
383        self.variant(PD10_SELECT_A::LCD0_D14)
384    }
385    #[doc = "`100`"]
386    #[inline(always)]
387    pub fn spi1_cs_dbi_csx(self) -> &'a mut crate::W<REG> {
388        self.variant(PD10_SELECT_A::SPI1_CS_DBI_CSX)
389    }
390    #[doc = "`1110`"]
391    #[inline(always)]
392    pub fn pd_eint10(self) -> &'a mut crate::W<REG> {
393        self.variant(PD10_SELECT_A::PD_EINT10)
394    }
395    #[doc = "`1`"]
396    #[inline(always)]
397    pub fn output(self) -> &'a mut crate::W<REG> {
398        self.variant(PD10_SELECT_A::OUTPUT)
399    }
400    #[doc = "`11`"]
401    #[inline(always)]
402    pub fn lvds1_v0p(self) -> &'a mut crate::W<REG> {
403        self.variant(PD10_SELECT_A::LVDS1_V0P)
404    }
405    #[doc = "`101`"]
406    #[inline(always)]
407    pub fn uart3_tx(self) -> &'a mut crate::W<REG> {
408        self.variant(PD10_SELECT_A::UART3_TX)
409    }
410    #[doc = "`1111`"]
411    #[inline(always)]
412    pub fn io_disable(self) -> &'a mut crate::W<REG> {
413        self.variant(PD10_SELECT_A::IO_DISABLE)
414    }
415}
416#[doc = "Field `pd11_select` reader - PD11 Select"]
417pub type PD11_SELECT_R = crate::FieldReader<PD11_SELECT_A>;
418#[doc = "PD11 Select\n\nValue on reset: 0"]
419#[derive(Clone, Copy, Debug, PartialEq, Eq)]
420#[repr(u8)]
421pub enum PD11_SELECT_A {
422    #[doc = "0: `0`"]
423    INPUT = 0,
424    #[doc = "2: `10`"]
425    LCD0_D15 = 2,
426    #[doc = "4: `100`"]
427    SPI1_CLK_DBI_SCLK = 4,
428    #[doc = "14: `1110`"]
429    PD_EINT11 = 14,
430    #[doc = "1: `1`"]
431    OUTPUT = 1,
432    #[doc = "3: `11`"]
433    LVDS1_V0N = 3,
434    #[doc = "5: `101`"]
435    UART3_RX = 5,
436    #[doc = "15: `1111`"]
437    IO_DISABLE = 15,
438}
439impl From<PD11_SELECT_A> for u8 {
440    #[inline(always)]
441    fn from(variant: PD11_SELECT_A) -> Self {
442        variant as _
443    }
444}
445impl crate::FieldSpec for PD11_SELECT_A {
446    type Ux = u8;
447}
448impl PD11_SELECT_R {
449    #[doc = "Get enumerated values variant"]
450    #[inline(always)]
451    pub const fn variant(&self) -> Option<PD11_SELECT_A> {
452        match self.bits {
453            0 => Some(PD11_SELECT_A::INPUT),
454            2 => Some(PD11_SELECT_A::LCD0_D15),
455            4 => Some(PD11_SELECT_A::SPI1_CLK_DBI_SCLK),
456            14 => Some(PD11_SELECT_A::PD_EINT11),
457            1 => Some(PD11_SELECT_A::OUTPUT),
458            3 => Some(PD11_SELECT_A::LVDS1_V0N),
459            5 => Some(PD11_SELECT_A::UART3_RX),
460            15 => Some(PD11_SELECT_A::IO_DISABLE),
461            _ => None,
462        }
463    }
464    #[doc = "`0`"]
465    #[inline(always)]
466    pub fn is_input(&self) -> bool {
467        *self == PD11_SELECT_A::INPUT
468    }
469    #[doc = "`10`"]
470    #[inline(always)]
471    pub fn is_lcd0_d15(&self) -> bool {
472        *self == PD11_SELECT_A::LCD0_D15
473    }
474    #[doc = "`100`"]
475    #[inline(always)]
476    pub fn is_spi1_clk_dbi_sclk(&self) -> bool {
477        *self == PD11_SELECT_A::SPI1_CLK_DBI_SCLK
478    }
479    #[doc = "`1110`"]
480    #[inline(always)]
481    pub fn is_pd_eint11(&self) -> bool {
482        *self == PD11_SELECT_A::PD_EINT11
483    }
484    #[doc = "`1`"]
485    #[inline(always)]
486    pub fn is_output(&self) -> bool {
487        *self == PD11_SELECT_A::OUTPUT
488    }
489    #[doc = "`11`"]
490    #[inline(always)]
491    pub fn is_lvds1_v0n(&self) -> bool {
492        *self == PD11_SELECT_A::LVDS1_V0N
493    }
494    #[doc = "`101`"]
495    #[inline(always)]
496    pub fn is_uart3_rx(&self) -> bool {
497        *self == PD11_SELECT_A::UART3_RX
498    }
499    #[doc = "`1111`"]
500    #[inline(always)]
501    pub fn is_io_disable(&self) -> bool {
502        *self == PD11_SELECT_A::IO_DISABLE
503    }
504}
505#[doc = "Field `pd11_select` writer - PD11 Select"]
506pub type PD11_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD11_SELECT_A>;
507impl<'a, REG> PD11_SELECT_W<'a, REG>
508where
509    REG: crate::Writable + crate::RegisterSpec,
510    REG::Ux: From<u8>,
511{
512    #[doc = "`0`"]
513    #[inline(always)]
514    pub fn input(self) -> &'a mut crate::W<REG> {
515        self.variant(PD11_SELECT_A::INPUT)
516    }
517    #[doc = "`10`"]
518    #[inline(always)]
519    pub fn lcd0_d15(self) -> &'a mut crate::W<REG> {
520        self.variant(PD11_SELECT_A::LCD0_D15)
521    }
522    #[doc = "`100`"]
523    #[inline(always)]
524    pub fn spi1_clk_dbi_sclk(self) -> &'a mut crate::W<REG> {
525        self.variant(PD11_SELECT_A::SPI1_CLK_DBI_SCLK)
526    }
527    #[doc = "`1110`"]
528    #[inline(always)]
529    pub fn pd_eint11(self) -> &'a mut crate::W<REG> {
530        self.variant(PD11_SELECT_A::PD_EINT11)
531    }
532    #[doc = "`1`"]
533    #[inline(always)]
534    pub fn output(self) -> &'a mut crate::W<REG> {
535        self.variant(PD11_SELECT_A::OUTPUT)
536    }
537    #[doc = "`11`"]
538    #[inline(always)]
539    pub fn lvds1_v0n(self) -> &'a mut crate::W<REG> {
540        self.variant(PD11_SELECT_A::LVDS1_V0N)
541    }
542    #[doc = "`101`"]
543    #[inline(always)]
544    pub fn uart3_rx(self) -> &'a mut crate::W<REG> {
545        self.variant(PD11_SELECT_A::UART3_RX)
546    }
547    #[doc = "`1111`"]
548    #[inline(always)]
549    pub fn io_disable(self) -> &'a mut crate::W<REG> {
550        self.variant(PD11_SELECT_A::IO_DISABLE)
551    }
552}
553#[doc = "Field `pd12_select` reader - PD12 Select"]
554pub type PD12_SELECT_R = crate::FieldReader<PD12_SELECT_A>;
555#[doc = "PD12 Select\n\nValue on reset: 0"]
556#[derive(Clone, Copy, Debug, PartialEq, Eq)]
557#[repr(u8)]
558pub enum PD12_SELECT_A {
559    #[doc = "0: `0`"]
560    INPUT = 0,
561    #[doc = "2: `10`"]
562    LCD0_D18 = 2,
563    #[doc = "4: `100`"]
564    SPI1_MOSI_DBI_SDO = 4,
565    #[doc = "14: `1110`"]
566    PD_EINT12 = 14,
567    #[doc = "1: `1`"]
568    OUTPUT = 1,
569    #[doc = "3: `11`"]
570    LVDS1_V1P = 3,
571    #[doc = "5: `101`"]
572    TWI0_SDA = 5,
573    #[doc = "15: `1111`"]
574    IO_DISABLE = 15,
575}
576impl From<PD12_SELECT_A> for u8 {
577    #[inline(always)]
578    fn from(variant: PD12_SELECT_A) -> Self {
579        variant as _
580    }
581}
582impl crate::FieldSpec for PD12_SELECT_A {
583    type Ux = u8;
584}
585impl PD12_SELECT_R {
586    #[doc = "Get enumerated values variant"]
587    #[inline(always)]
588    pub const fn variant(&self) -> Option<PD12_SELECT_A> {
589        match self.bits {
590            0 => Some(PD12_SELECT_A::INPUT),
591            2 => Some(PD12_SELECT_A::LCD0_D18),
592            4 => Some(PD12_SELECT_A::SPI1_MOSI_DBI_SDO),
593            14 => Some(PD12_SELECT_A::PD_EINT12),
594            1 => Some(PD12_SELECT_A::OUTPUT),
595            3 => Some(PD12_SELECT_A::LVDS1_V1P),
596            5 => Some(PD12_SELECT_A::TWI0_SDA),
597            15 => Some(PD12_SELECT_A::IO_DISABLE),
598            _ => None,
599        }
600    }
601    #[doc = "`0`"]
602    #[inline(always)]
603    pub fn is_input(&self) -> bool {
604        *self == PD12_SELECT_A::INPUT
605    }
606    #[doc = "`10`"]
607    #[inline(always)]
608    pub fn is_lcd0_d18(&self) -> bool {
609        *self == PD12_SELECT_A::LCD0_D18
610    }
611    #[doc = "`100`"]
612    #[inline(always)]
613    pub fn is_spi1_mosi_dbi_sdo(&self) -> bool {
614        *self == PD12_SELECT_A::SPI1_MOSI_DBI_SDO
615    }
616    #[doc = "`1110`"]
617    #[inline(always)]
618    pub fn is_pd_eint12(&self) -> bool {
619        *self == PD12_SELECT_A::PD_EINT12
620    }
621    #[doc = "`1`"]
622    #[inline(always)]
623    pub fn is_output(&self) -> bool {
624        *self == PD12_SELECT_A::OUTPUT
625    }
626    #[doc = "`11`"]
627    #[inline(always)]
628    pub fn is_lvds1_v1p(&self) -> bool {
629        *self == PD12_SELECT_A::LVDS1_V1P
630    }
631    #[doc = "`101`"]
632    #[inline(always)]
633    pub fn is_twi0_sda(&self) -> bool {
634        *self == PD12_SELECT_A::TWI0_SDA
635    }
636    #[doc = "`1111`"]
637    #[inline(always)]
638    pub fn is_io_disable(&self) -> bool {
639        *self == PD12_SELECT_A::IO_DISABLE
640    }
641}
642#[doc = "Field `pd12_select` writer - PD12 Select"]
643pub type PD12_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD12_SELECT_A>;
644impl<'a, REG> PD12_SELECT_W<'a, REG>
645where
646    REG: crate::Writable + crate::RegisterSpec,
647    REG::Ux: From<u8>,
648{
649    #[doc = "`0`"]
650    #[inline(always)]
651    pub fn input(self) -> &'a mut crate::W<REG> {
652        self.variant(PD12_SELECT_A::INPUT)
653    }
654    #[doc = "`10`"]
655    #[inline(always)]
656    pub fn lcd0_d18(self) -> &'a mut crate::W<REG> {
657        self.variant(PD12_SELECT_A::LCD0_D18)
658    }
659    #[doc = "`100`"]
660    #[inline(always)]
661    pub fn spi1_mosi_dbi_sdo(self) -> &'a mut crate::W<REG> {
662        self.variant(PD12_SELECT_A::SPI1_MOSI_DBI_SDO)
663    }
664    #[doc = "`1110`"]
665    #[inline(always)]
666    pub fn pd_eint12(self) -> &'a mut crate::W<REG> {
667        self.variant(PD12_SELECT_A::PD_EINT12)
668    }
669    #[doc = "`1`"]
670    #[inline(always)]
671    pub fn output(self) -> &'a mut crate::W<REG> {
672        self.variant(PD12_SELECT_A::OUTPUT)
673    }
674    #[doc = "`11`"]
675    #[inline(always)]
676    pub fn lvds1_v1p(self) -> &'a mut crate::W<REG> {
677        self.variant(PD12_SELECT_A::LVDS1_V1P)
678    }
679    #[doc = "`101`"]
680    #[inline(always)]
681    pub fn twi0_sda(self) -> &'a mut crate::W<REG> {
682        self.variant(PD12_SELECT_A::TWI0_SDA)
683    }
684    #[doc = "`1111`"]
685    #[inline(always)]
686    pub fn io_disable(self) -> &'a mut crate::W<REG> {
687        self.variant(PD12_SELECT_A::IO_DISABLE)
688    }
689}
690#[doc = "Field `pd13_select` reader - PD13 Select"]
691pub type PD13_SELECT_R = crate::FieldReader<PD13_SELECT_A>;
692#[doc = "PD13 Select\n\nValue on reset: 0"]
693#[derive(Clone, Copy, Debug, PartialEq, Eq)]
694#[repr(u8)]
695pub enum PD13_SELECT_A {
696    #[doc = "0: `0`"]
697    INPUT = 0,
698    #[doc = "1: `1`"]
699    OUTPUT = 1,
700    #[doc = "2: `10`"]
701    LCD0_D19 = 2,
702    #[doc = "3: `11`"]
703    LVDS1_V1N = 3,
704    #[doc = "4: `100`"]
705    SPI1_MISO_DBI_SDI_DBI_TE_DBI_DCX = 4,
706    #[doc = "5: `101`"]
707    UART3_RTS = 5,
708    #[doc = "14: `1110`"]
709    PD_EINT13 = 14,
710    #[doc = "15: `1111`"]
711    IO_DISABLE = 15,
712}
713impl From<PD13_SELECT_A> for u8 {
714    #[inline(always)]
715    fn from(variant: PD13_SELECT_A) -> Self {
716        variant as _
717    }
718}
719impl crate::FieldSpec for PD13_SELECT_A {
720    type Ux = u8;
721}
722impl PD13_SELECT_R {
723    #[doc = "Get enumerated values variant"]
724    #[inline(always)]
725    pub const fn variant(&self) -> Option<PD13_SELECT_A> {
726        match self.bits {
727            0 => Some(PD13_SELECT_A::INPUT),
728            1 => Some(PD13_SELECT_A::OUTPUT),
729            2 => Some(PD13_SELECT_A::LCD0_D19),
730            3 => Some(PD13_SELECT_A::LVDS1_V1N),
731            4 => Some(PD13_SELECT_A::SPI1_MISO_DBI_SDI_DBI_TE_DBI_DCX),
732            5 => Some(PD13_SELECT_A::UART3_RTS),
733            14 => Some(PD13_SELECT_A::PD_EINT13),
734            15 => Some(PD13_SELECT_A::IO_DISABLE),
735            _ => None,
736        }
737    }
738    #[doc = "`0`"]
739    #[inline(always)]
740    pub fn is_input(&self) -> bool {
741        *self == PD13_SELECT_A::INPUT
742    }
743    #[doc = "`1`"]
744    #[inline(always)]
745    pub fn is_output(&self) -> bool {
746        *self == PD13_SELECT_A::OUTPUT
747    }
748    #[doc = "`10`"]
749    #[inline(always)]
750    pub fn is_lcd0_d19(&self) -> bool {
751        *self == PD13_SELECT_A::LCD0_D19
752    }
753    #[doc = "`11`"]
754    #[inline(always)]
755    pub fn is_lvds1_v1n(&self) -> bool {
756        *self == PD13_SELECT_A::LVDS1_V1N
757    }
758    #[doc = "`100`"]
759    #[inline(always)]
760    pub fn is_spi1_miso_dbi_sdi_dbi_te_dbi_dcx(&self) -> bool {
761        *self == PD13_SELECT_A::SPI1_MISO_DBI_SDI_DBI_TE_DBI_DCX
762    }
763    #[doc = "`101`"]
764    #[inline(always)]
765    pub fn is_uart3_rts(&self) -> bool {
766        *self == PD13_SELECT_A::UART3_RTS
767    }
768    #[doc = "`1110`"]
769    #[inline(always)]
770    pub fn is_pd_eint13(&self) -> bool {
771        *self == PD13_SELECT_A::PD_EINT13
772    }
773    #[doc = "`1111`"]
774    #[inline(always)]
775    pub fn is_io_disable(&self) -> bool {
776        *self == PD13_SELECT_A::IO_DISABLE
777    }
778}
779#[doc = "Field `pd13_select` writer - PD13 Select"]
780pub type PD13_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD13_SELECT_A>;
781impl<'a, REG> PD13_SELECT_W<'a, REG>
782where
783    REG: crate::Writable + crate::RegisterSpec,
784    REG::Ux: From<u8>,
785{
786    #[doc = "`0`"]
787    #[inline(always)]
788    pub fn input(self) -> &'a mut crate::W<REG> {
789        self.variant(PD13_SELECT_A::INPUT)
790    }
791    #[doc = "`1`"]
792    #[inline(always)]
793    pub fn output(self) -> &'a mut crate::W<REG> {
794        self.variant(PD13_SELECT_A::OUTPUT)
795    }
796    #[doc = "`10`"]
797    #[inline(always)]
798    pub fn lcd0_d19(self) -> &'a mut crate::W<REG> {
799        self.variant(PD13_SELECT_A::LCD0_D19)
800    }
801    #[doc = "`11`"]
802    #[inline(always)]
803    pub fn lvds1_v1n(self) -> &'a mut crate::W<REG> {
804        self.variant(PD13_SELECT_A::LVDS1_V1N)
805    }
806    #[doc = "`100`"]
807    #[inline(always)]
808    pub fn spi1_miso_dbi_sdi_dbi_te_dbi_dcx(self) -> &'a mut crate::W<REG> {
809        self.variant(PD13_SELECT_A::SPI1_MISO_DBI_SDI_DBI_TE_DBI_DCX)
810    }
811    #[doc = "`101`"]
812    #[inline(always)]
813    pub fn uart3_rts(self) -> &'a mut crate::W<REG> {
814        self.variant(PD13_SELECT_A::UART3_RTS)
815    }
816    #[doc = "`1110`"]
817    #[inline(always)]
818    pub fn pd_eint13(self) -> &'a mut crate::W<REG> {
819        self.variant(PD13_SELECT_A::PD_EINT13)
820    }
821    #[doc = "`1111`"]
822    #[inline(always)]
823    pub fn io_disable(self) -> &'a mut crate::W<REG> {
824        self.variant(PD13_SELECT_A::IO_DISABLE)
825    }
826}
827#[doc = "Field `pd14_select` reader - PD14 Select"]
828pub type PD14_SELECT_R = crate::FieldReader<PD14_SELECT_A>;
829#[doc = "PD14 Select\n\nValue on reset: 0"]
830#[derive(Clone, Copy, Debug, PartialEq, Eq)]
831#[repr(u8)]
832pub enum PD14_SELECT_A {
833    #[doc = "0: `0`"]
834    INPUT = 0,
835    #[doc = "2: `10`"]
836    LCD0_D20 = 2,
837    #[doc = "4: `100`"]
838    SPI1_HOLD_DBI_DCX_DBI_WRX = 4,
839    #[doc = "14: `1110`"]
840    PD_EINT14 = 14,
841    #[doc = "1: `1`"]
842    OUTPUT = 1,
843    #[doc = "3: `11`"]
844    LVDS1_V2P = 3,
845    #[doc = "5: `101`"]
846    UART3_CTS = 5,
847    #[doc = "15: `1111`"]
848    IO_DISABLE = 15,
849}
850impl From<PD14_SELECT_A> for u8 {
851    #[inline(always)]
852    fn from(variant: PD14_SELECT_A) -> Self {
853        variant as _
854    }
855}
856impl crate::FieldSpec for PD14_SELECT_A {
857    type Ux = u8;
858}
859impl PD14_SELECT_R {
860    #[doc = "Get enumerated values variant"]
861    #[inline(always)]
862    pub const fn variant(&self) -> Option<PD14_SELECT_A> {
863        match self.bits {
864            0 => Some(PD14_SELECT_A::INPUT),
865            2 => Some(PD14_SELECT_A::LCD0_D20),
866            4 => Some(PD14_SELECT_A::SPI1_HOLD_DBI_DCX_DBI_WRX),
867            14 => Some(PD14_SELECT_A::PD_EINT14),
868            1 => Some(PD14_SELECT_A::OUTPUT),
869            3 => Some(PD14_SELECT_A::LVDS1_V2P),
870            5 => Some(PD14_SELECT_A::UART3_CTS),
871            15 => Some(PD14_SELECT_A::IO_DISABLE),
872            _ => None,
873        }
874    }
875    #[doc = "`0`"]
876    #[inline(always)]
877    pub fn is_input(&self) -> bool {
878        *self == PD14_SELECT_A::INPUT
879    }
880    #[doc = "`10`"]
881    #[inline(always)]
882    pub fn is_lcd0_d20(&self) -> bool {
883        *self == PD14_SELECT_A::LCD0_D20
884    }
885    #[doc = "`100`"]
886    #[inline(always)]
887    pub fn is_spi1_hold_dbi_dcx_dbi_wrx(&self) -> bool {
888        *self == PD14_SELECT_A::SPI1_HOLD_DBI_DCX_DBI_WRX
889    }
890    #[doc = "`1110`"]
891    #[inline(always)]
892    pub fn is_pd_eint14(&self) -> bool {
893        *self == PD14_SELECT_A::PD_EINT14
894    }
895    #[doc = "`1`"]
896    #[inline(always)]
897    pub fn is_output(&self) -> bool {
898        *self == PD14_SELECT_A::OUTPUT
899    }
900    #[doc = "`11`"]
901    #[inline(always)]
902    pub fn is_lvds1_v2p(&self) -> bool {
903        *self == PD14_SELECT_A::LVDS1_V2P
904    }
905    #[doc = "`101`"]
906    #[inline(always)]
907    pub fn is_uart3_cts(&self) -> bool {
908        *self == PD14_SELECT_A::UART3_CTS
909    }
910    #[doc = "`1111`"]
911    #[inline(always)]
912    pub fn is_io_disable(&self) -> bool {
913        *self == PD14_SELECT_A::IO_DISABLE
914    }
915}
916#[doc = "Field `pd14_select` writer - PD14 Select"]
917pub type PD14_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD14_SELECT_A>;
918impl<'a, REG> PD14_SELECT_W<'a, REG>
919where
920    REG: crate::Writable + crate::RegisterSpec,
921    REG::Ux: From<u8>,
922{
923    #[doc = "`0`"]
924    #[inline(always)]
925    pub fn input(self) -> &'a mut crate::W<REG> {
926        self.variant(PD14_SELECT_A::INPUT)
927    }
928    #[doc = "`10`"]
929    #[inline(always)]
930    pub fn lcd0_d20(self) -> &'a mut crate::W<REG> {
931        self.variant(PD14_SELECT_A::LCD0_D20)
932    }
933    #[doc = "`100`"]
934    #[inline(always)]
935    pub fn spi1_hold_dbi_dcx_dbi_wrx(self) -> &'a mut crate::W<REG> {
936        self.variant(PD14_SELECT_A::SPI1_HOLD_DBI_DCX_DBI_WRX)
937    }
938    #[doc = "`1110`"]
939    #[inline(always)]
940    pub fn pd_eint14(self) -> &'a mut crate::W<REG> {
941        self.variant(PD14_SELECT_A::PD_EINT14)
942    }
943    #[doc = "`1`"]
944    #[inline(always)]
945    pub fn output(self) -> &'a mut crate::W<REG> {
946        self.variant(PD14_SELECT_A::OUTPUT)
947    }
948    #[doc = "`11`"]
949    #[inline(always)]
950    pub fn lvds1_v2p(self) -> &'a mut crate::W<REG> {
951        self.variant(PD14_SELECT_A::LVDS1_V2P)
952    }
953    #[doc = "`101`"]
954    #[inline(always)]
955    pub fn uart3_cts(self) -> &'a mut crate::W<REG> {
956        self.variant(PD14_SELECT_A::UART3_CTS)
957    }
958    #[doc = "`1111`"]
959    #[inline(always)]
960    pub fn io_disable(self) -> &'a mut crate::W<REG> {
961        self.variant(PD14_SELECT_A::IO_DISABLE)
962    }
963}
964#[doc = "Field `pd15_select` reader - PD15 Select"]
965pub type PD15_SELECT_R = crate::FieldReader<PD15_SELECT_A>;
966#[doc = "PD15 Select\n\nValue on reset: 0"]
967#[derive(Clone, Copy, Debug, PartialEq, Eq)]
968#[repr(u8)]
969pub enum PD15_SELECT_A {
970    #[doc = "0: `0`"]
971    INPUT = 0,
972    #[doc = "2: `10`"]
973    LCD0_D21 = 2,
974    #[doc = "4: `100`"]
975    SPI1_WP_DBI_TE = 4,
976    #[doc = "14: `1110`"]
977    PD_EINT15 = 14,
978    #[doc = "1: `1`"]
979    OUTPUT = 1,
980    #[doc = "3: `11`"]
981    LVDS1_V2N = 3,
982    #[doc = "5: `101`"]
983    IR_RX = 5,
984    #[doc = "15: `1111`"]
985    IO_DISABLE = 15,
986}
987impl From<PD15_SELECT_A> for u8 {
988    #[inline(always)]
989    fn from(variant: PD15_SELECT_A) -> Self {
990        variant as _
991    }
992}
993impl crate::FieldSpec for PD15_SELECT_A {
994    type Ux = u8;
995}
996impl PD15_SELECT_R {
997    #[doc = "Get enumerated values variant"]
998    #[inline(always)]
999    pub const fn variant(&self) -> Option<PD15_SELECT_A> {
1000        match self.bits {
1001            0 => Some(PD15_SELECT_A::INPUT),
1002            2 => Some(PD15_SELECT_A::LCD0_D21),
1003            4 => Some(PD15_SELECT_A::SPI1_WP_DBI_TE),
1004            14 => Some(PD15_SELECT_A::PD_EINT15),
1005            1 => Some(PD15_SELECT_A::OUTPUT),
1006            3 => Some(PD15_SELECT_A::LVDS1_V2N),
1007            5 => Some(PD15_SELECT_A::IR_RX),
1008            15 => Some(PD15_SELECT_A::IO_DISABLE),
1009            _ => None,
1010        }
1011    }
1012    #[doc = "`0`"]
1013    #[inline(always)]
1014    pub fn is_input(&self) -> bool {
1015        *self == PD15_SELECT_A::INPUT
1016    }
1017    #[doc = "`10`"]
1018    #[inline(always)]
1019    pub fn is_lcd0_d21(&self) -> bool {
1020        *self == PD15_SELECT_A::LCD0_D21
1021    }
1022    #[doc = "`100`"]
1023    #[inline(always)]
1024    pub fn is_spi1_wp_dbi_te(&self) -> bool {
1025        *self == PD15_SELECT_A::SPI1_WP_DBI_TE
1026    }
1027    #[doc = "`1110`"]
1028    #[inline(always)]
1029    pub fn is_pd_eint15(&self) -> bool {
1030        *self == PD15_SELECT_A::PD_EINT15
1031    }
1032    #[doc = "`1`"]
1033    #[inline(always)]
1034    pub fn is_output(&self) -> bool {
1035        *self == PD15_SELECT_A::OUTPUT
1036    }
1037    #[doc = "`11`"]
1038    #[inline(always)]
1039    pub fn is_lvds1_v2n(&self) -> bool {
1040        *self == PD15_SELECT_A::LVDS1_V2N
1041    }
1042    #[doc = "`101`"]
1043    #[inline(always)]
1044    pub fn is_ir_rx(&self) -> bool {
1045        *self == PD15_SELECT_A::IR_RX
1046    }
1047    #[doc = "`1111`"]
1048    #[inline(always)]
1049    pub fn is_io_disable(&self) -> bool {
1050        *self == PD15_SELECT_A::IO_DISABLE
1051    }
1052}
1053#[doc = "Field `pd15_select` writer - PD15 Select"]
1054pub type PD15_SELECT_W<'a, REG> = crate::FieldWriter<'a, REG, 4, PD15_SELECT_A>;
1055impl<'a, REG> PD15_SELECT_W<'a, REG>
1056where
1057    REG: crate::Writable + crate::RegisterSpec,
1058    REG::Ux: From<u8>,
1059{
1060    #[doc = "`0`"]
1061    #[inline(always)]
1062    pub fn input(self) -> &'a mut crate::W<REG> {
1063        self.variant(PD15_SELECT_A::INPUT)
1064    }
1065    #[doc = "`10`"]
1066    #[inline(always)]
1067    pub fn lcd0_d21(self) -> &'a mut crate::W<REG> {
1068        self.variant(PD15_SELECT_A::LCD0_D21)
1069    }
1070    #[doc = "`100`"]
1071    #[inline(always)]
1072    pub fn spi1_wp_dbi_te(self) -> &'a mut crate::W<REG> {
1073        self.variant(PD15_SELECT_A::SPI1_WP_DBI_TE)
1074    }
1075    #[doc = "`1110`"]
1076    #[inline(always)]
1077    pub fn pd_eint15(self) -> &'a mut crate::W<REG> {
1078        self.variant(PD15_SELECT_A::PD_EINT15)
1079    }
1080    #[doc = "`1`"]
1081    #[inline(always)]
1082    pub fn output(self) -> &'a mut crate::W<REG> {
1083        self.variant(PD15_SELECT_A::OUTPUT)
1084    }
1085    #[doc = "`11`"]
1086    #[inline(always)]
1087    pub fn lvds1_v2n(self) -> &'a mut crate::W<REG> {
1088        self.variant(PD15_SELECT_A::LVDS1_V2N)
1089    }
1090    #[doc = "`101`"]
1091    #[inline(always)]
1092    pub fn ir_rx(self) -> &'a mut crate::W<REG> {
1093        self.variant(PD15_SELECT_A::IR_RX)
1094    }
1095    #[doc = "`1111`"]
1096    #[inline(always)]
1097    pub fn io_disable(self) -> &'a mut crate::W<REG> {
1098        self.variant(PD15_SELECT_A::IO_DISABLE)
1099    }
1100}
1101impl R {
1102    #[doc = "Bits 0:3 - PD8 Select"]
1103    #[inline(always)]
1104    pub fn pd8_select(&self) -> PD8_SELECT_R {
1105        PD8_SELECT_R::new((self.bits & 0x0f) as u8)
1106    }
1107    #[doc = "Bits 4:7 - PD9 Select"]
1108    #[inline(always)]
1109    pub fn pd9_select(&self) -> PD9_SELECT_R {
1110        PD9_SELECT_R::new(((self.bits >> 4) & 0x0f) as u8)
1111    }
1112    #[doc = "Bits 8:11 - PD10 Select"]
1113    #[inline(always)]
1114    pub fn pd10_select(&self) -> PD10_SELECT_R {
1115        PD10_SELECT_R::new(((self.bits >> 8) & 0x0f) as u8)
1116    }
1117    #[doc = "Bits 12:15 - PD11 Select"]
1118    #[inline(always)]
1119    pub fn pd11_select(&self) -> PD11_SELECT_R {
1120        PD11_SELECT_R::new(((self.bits >> 12) & 0x0f) as u8)
1121    }
1122    #[doc = "Bits 16:19 - PD12 Select"]
1123    #[inline(always)]
1124    pub fn pd12_select(&self) -> PD12_SELECT_R {
1125        PD12_SELECT_R::new(((self.bits >> 16) & 0x0f) as u8)
1126    }
1127    #[doc = "Bits 20:23 - PD13 Select"]
1128    #[inline(always)]
1129    pub fn pd13_select(&self) -> PD13_SELECT_R {
1130        PD13_SELECT_R::new(((self.bits >> 20) & 0x0f) as u8)
1131    }
1132    #[doc = "Bits 24:27 - PD14 Select"]
1133    #[inline(always)]
1134    pub fn pd14_select(&self) -> PD14_SELECT_R {
1135        PD14_SELECT_R::new(((self.bits >> 24) & 0x0f) as u8)
1136    }
1137    #[doc = "Bits 28:31 - PD15 Select"]
1138    #[inline(always)]
1139    pub fn pd15_select(&self) -> PD15_SELECT_R {
1140        PD15_SELECT_R::new(((self.bits >> 28) & 0x0f) as u8)
1141    }
1142}
1143impl W {
1144    #[doc = "Bits 0:3 - PD8 Select"]
1145    #[inline(always)]
1146    #[must_use]
1147    pub fn pd8_select(&mut self) -> PD8_SELECT_W<PD_CFG1_SPEC> {
1148        PD8_SELECT_W::new(self, 0)
1149    }
1150    #[doc = "Bits 4:7 - PD9 Select"]
1151    #[inline(always)]
1152    #[must_use]
1153    pub fn pd9_select(&mut self) -> PD9_SELECT_W<PD_CFG1_SPEC> {
1154        PD9_SELECT_W::new(self, 4)
1155    }
1156    #[doc = "Bits 8:11 - PD10 Select"]
1157    #[inline(always)]
1158    #[must_use]
1159    pub fn pd10_select(&mut self) -> PD10_SELECT_W<PD_CFG1_SPEC> {
1160        PD10_SELECT_W::new(self, 8)
1161    }
1162    #[doc = "Bits 12:15 - PD11 Select"]
1163    #[inline(always)]
1164    #[must_use]
1165    pub fn pd11_select(&mut self) -> PD11_SELECT_W<PD_CFG1_SPEC> {
1166        PD11_SELECT_W::new(self, 12)
1167    }
1168    #[doc = "Bits 16:19 - PD12 Select"]
1169    #[inline(always)]
1170    #[must_use]
1171    pub fn pd12_select(&mut self) -> PD12_SELECT_W<PD_CFG1_SPEC> {
1172        PD12_SELECT_W::new(self, 16)
1173    }
1174    #[doc = "Bits 20:23 - PD13 Select"]
1175    #[inline(always)]
1176    #[must_use]
1177    pub fn pd13_select(&mut self) -> PD13_SELECT_W<PD_CFG1_SPEC> {
1178        PD13_SELECT_W::new(self, 20)
1179    }
1180    #[doc = "Bits 24:27 - PD14 Select"]
1181    #[inline(always)]
1182    #[must_use]
1183    pub fn pd14_select(&mut self) -> PD14_SELECT_W<PD_CFG1_SPEC> {
1184        PD14_SELECT_W::new(self, 24)
1185    }
1186    #[doc = "Bits 28:31 - PD15 Select"]
1187    #[inline(always)]
1188    #[must_use]
1189    pub fn pd15_select(&mut self) -> PD15_SELECT_W<PD_CFG1_SPEC> {
1190        PD15_SELECT_W::new(self, 28)
1191    }
1192    #[doc = r" Writes raw bits to the register."]
1193    #[doc = r""]
1194    #[doc = r" # Safety"]
1195    #[doc = r""]
1196    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
1197    #[inline(always)]
1198    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1199        self.bits = bits;
1200        self
1201    }
1202}
1203#[doc = "PD Configure Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pd_cfg1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pd_cfg1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
1204pub struct PD_CFG1_SPEC;
1205impl crate::RegisterSpec for PD_CFG1_SPEC {
1206    type Ux = u32;
1207}
1208#[doc = "`read()` method returns [`pd_cfg1::R`](R) reader structure"]
1209impl crate::Readable for PD_CFG1_SPEC {}
1210#[doc = "`write(|w| ..)` method takes [`pd_cfg1::W`](W) writer structure"]
1211impl crate::Writable for PD_CFG1_SPEC {
1212    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1213    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1214}
1215#[doc = "`reset()` method sets pd_cfg1 to value 0"]
1216impl crate::Resettable for PD_CFG1_SPEC {
1217    const RESET_VALUE: Self::Ux = 0;
1218}