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
#[doc = "Register `WRCONFIG` writer"]
pub type W = crate::W<WRCONFIG_SPEC>;
#[doc = "Field `PINMASK` writer - Pin Mask for Multiple Pin Configuration"]
pub type PINMASK_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 16, O, u16>;
#[doc = "Field `PMUXEN` writer - Peripheral Multiplexer Enable"]
pub type PMUXEN_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `INEN` writer - Input Enable"]
pub type INEN_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `PULLEN` writer - Pull Enable"]
pub type PULLEN_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `DRVSTR` writer - Output Driver Strength Selection"]
pub type DRVSTR_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `PMUX` writer - Peripheral Multiplexing"]
pub type PMUX_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 4, O>;
#[doc = "Field `WRPMUX` writer - Write PMUX"]
pub type WRPMUX_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `WRPINCFG` writer - Write PINCFG"]
pub type WRPINCFG_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `HWSEL` writer - Half-Word Select"]
pub type HWSEL_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl W {
    #[doc = "Bits 0:15 - Pin Mask for Multiple Pin Configuration"]
    #[inline(always)]
    #[must_use]
    pub fn pinmask(&mut self) -> PINMASK_W<WRCONFIG_SPEC, 0> {
        PINMASK_W::new(self)
    }
    #[doc = "Bit 16 - Peripheral Multiplexer Enable"]
    #[inline(always)]
    #[must_use]
    pub fn pmuxen(&mut self) -> PMUXEN_W<WRCONFIG_SPEC, 16> {
        PMUXEN_W::new(self)
    }
    #[doc = "Bit 17 - Input Enable"]
    #[inline(always)]
    #[must_use]
    pub fn inen(&mut self) -> INEN_W<WRCONFIG_SPEC, 17> {
        INEN_W::new(self)
    }
    #[doc = "Bit 18 - Pull Enable"]
    #[inline(always)]
    #[must_use]
    pub fn pullen(&mut self) -> PULLEN_W<WRCONFIG_SPEC, 18> {
        PULLEN_W::new(self)
    }
    #[doc = "Bit 22 - Output Driver Strength Selection"]
    #[inline(always)]
    #[must_use]
    pub fn drvstr(&mut self) -> DRVSTR_W<WRCONFIG_SPEC, 22> {
        DRVSTR_W::new(self)
    }
    #[doc = "Bits 24:27 - Peripheral Multiplexing"]
    #[inline(always)]
    #[must_use]
    pub fn pmux(&mut self) -> PMUX_W<WRCONFIG_SPEC, 24> {
        PMUX_W::new(self)
    }
    #[doc = "Bit 28 - Write PMUX"]
    #[inline(always)]
    #[must_use]
    pub fn wrpmux(&mut self) -> WRPMUX_W<WRCONFIG_SPEC, 28> {
        WRPMUX_W::new(self)
    }
    #[doc = "Bit 30 - Write PINCFG"]
    #[inline(always)]
    #[must_use]
    pub fn wrpincfg(&mut self) -> WRPINCFG_W<WRCONFIG_SPEC, 30> {
        WRPINCFG_W::new(self)
    }
    #[doc = "Bit 31 - Half-Word Select"]
    #[inline(always)]
    #[must_use]
    pub fn hwsel(&mut self) -> HWSEL_W<WRCONFIG_SPEC, 31> {
        HWSEL_W::new(self)
    }
    #[doc = r" Writes raw bits to the register."]
    #[doc = r""]
    #[doc = r" # Safety"]
    #[doc = r""]
    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.bits = bits;
        self
    }
}
#[doc = "Write Configuration\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wrconfig::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WRCONFIG_SPEC;
impl crate::RegisterSpec for WRCONFIG_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`wrconfig::W`](W) writer structure"]
impl crate::Writable for WRCONFIG_SPEC {
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets WRCONFIG to value 0"]
impl crate::Resettable for WRCONFIG_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}