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
#[doc = "Register `CONF` reader"]
pub type R = crate::R<CONF_SPEC>;
#[doc = "Register `CONF` writer"]
pub type W = crate::W<CONF_SPEC>;
#[doc = "Field `FRC_SDIO11` reader - *******Description***********"]
pub type FRC_SDIO11_R = crate::FieldReader;
#[doc = "Field `FRC_SDIO11` writer - *******Description***********"]
pub type FRC_SDIO11_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 5, O>;
#[doc = "Field `FRC_SDIO20` reader - *******Description***********"]
pub type FRC_SDIO20_R = crate::FieldReader;
#[doc = "Field `FRC_SDIO20` writer - *******Description***********"]
pub type FRC_SDIO20_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 5, O>;
#[doc = "Field `FRC_NEG_SAMP` reader - *******Description***********"]
pub type FRC_NEG_SAMP_R = crate::FieldReader;
#[doc = "Field `FRC_NEG_SAMP` writer - *******Description***********"]
pub type FRC_NEG_SAMP_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 5, O>;
#[doc = "Field `FRC_POS_SAMP` reader - *******Description***********"]
pub type FRC_POS_SAMP_R = crate::FieldReader;
#[doc = "Field `FRC_POS_SAMP` writer - *******Description***********"]
pub type FRC_POS_SAMP_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 5, O>;
#[doc = "Field `FRC_QUICK_IN` reader - *******Description***********"]
pub type FRC_QUICK_IN_R = crate::FieldReader;
#[doc = "Field `FRC_QUICK_IN` writer - *******Description***********"]
pub type FRC_QUICK_IN_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 5, O>;
#[doc = "Field `SDIO20_INT_DELAY` reader - *******Description***********"]
pub type SDIO20_INT_DELAY_R = crate::BitReader;
#[doc = "Field `SDIO20_INT_DELAY` writer - *******Description***********"]
pub type SDIO20_INT_DELAY_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `SDIO_PAD_PULLUP` reader - *******Description***********"]
pub type SDIO_PAD_PULLUP_R = crate::BitReader;
#[doc = "Field `SDIO_PAD_PULLUP` writer - *******Description***********"]
pub type SDIO_PAD_PULLUP_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `HSPEED_CON_EN` reader - *******Description***********"]
pub type HSPEED_CON_EN_R = crate::BitReader;
#[doc = "Field `HSPEED_CON_EN` writer - *******Description***********"]
pub type HSPEED_CON_EN_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl R {
    #[doc = "Bits 0:4 - *******Description***********"]
    #[inline(always)]
    pub fn frc_sdio11(&self) -> FRC_SDIO11_R {
        FRC_SDIO11_R::new((self.bits & 0x1f) as u8)
    }
    #[doc = "Bits 5:9 - *******Description***********"]
    #[inline(always)]
    pub fn frc_sdio20(&self) -> FRC_SDIO20_R {
        FRC_SDIO20_R::new(((self.bits >> 5) & 0x1f) as u8)
    }
    #[doc = "Bits 10:14 - *******Description***********"]
    #[inline(always)]
    pub fn frc_neg_samp(&self) -> FRC_NEG_SAMP_R {
        FRC_NEG_SAMP_R::new(((self.bits >> 10) & 0x1f) as u8)
    }
    #[doc = "Bits 15:19 - *******Description***********"]
    #[inline(always)]
    pub fn frc_pos_samp(&self) -> FRC_POS_SAMP_R {
        FRC_POS_SAMP_R::new(((self.bits >> 15) & 0x1f) as u8)
    }
    #[doc = "Bits 20:24 - *******Description***********"]
    #[inline(always)]
    pub fn frc_quick_in(&self) -> FRC_QUICK_IN_R {
        FRC_QUICK_IN_R::new(((self.bits >> 20) & 0x1f) as u8)
    }
    #[doc = "Bit 25 - *******Description***********"]
    #[inline(always)]
    pub fn sdio20_int_delay(&self) -> SDIO20_INT_DELAY_R {
        SDIO20_INT_DELAY_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - *******Description***********"]
    #[inline(always)]
    pub fn sdio_pad_pullup(&self) -> SDIO_PAD_PULLUP_R {
        SDIO_PAD_PULLUP_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - *******Description***********"]
    #[inline(always)]
    pub fn hspeed_con_en(&self) -> HSPEED_CON_EN_R {
        HSPEED_CON_EN_R::new(((self.bits >> 27) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CONF")
            .field("frc_sdio11", &format_args!("{}", self.frc_sdio11().bits()))
            .field("frc_sdio20", &format_args!("{}", self.frc_sdio20().bits()))
            .field(
                "frc_neg_samp",
                &format_args!("{}", self.frc_neg_samp().bits()),
            )
            .field(
                "frc_pos_samp",
                &format_args!("{}", self.frc_pos_samp().bits()),
            )
            .field(
                "frc_quick_in",
                &format_args!("{}", self.frc_quick_in().bits()),
            )
            .field(
                "sdio20_int_delay",
                &format_args!("{}", self.sdio20_int_delay().bit()),
            )
            .field(
                "sdio_pad_pullup",
                &format_args!("{}", self.sdio_pad_pullup().bit()),
            )
            .field(
                "hspeed_con_en",
                &format_args!("{}", self.hspeed_con_en().bit()),
            )
            .finish()
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CONF_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        self.read().fmt(f)
    }
}
impl W {
    #[doc = "Bits 0:4 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn frc_sdio11(&mut self) -> FRC_SDIO11_W<CONF_SPEC, 0> {
        FRC_SDIO11_W::new(self)
    }
    #[doc = "Bits 5:9 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn frc_sdio20(&mut self) -> FRC_SDIO20_W<CONF_SPEC, 5> {
        FRC_SDIO20_W::new(self)
    }
    #[doc = "Bits 10:14 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn frc_neg_samp(&mut self) -> FRC_NEG_SAMP_W<CONF_SPEC, 10> {
        FRC_NEG_SAMP_W::new(self)
    }
    #[doc = "Bits 15:19 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn frc_pos_samp(&mut self) -> FRC_POS_SAMP_W<CONF_SPEC, 15> {
        FRC_POS_SAMP_W::new(self)
    }
    #[doc = "Bits 20:24 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn frc_quick_in(&mut self) -> FRC_QUICK_IN_W<CONF_SPEC, 20> {
        FRC_QUICK_IN_W::new(self)
    }
    #[doc = "Bit 25 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn sdio20_int_delay(&mut self) -> SDIO20_INT_DELAY_W<CONF_SPEC, 25> {
        SDIO20_INT_DELAY_W::new(self)
    }
    #[doc = "Bit 26 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn sdio_pad_pullup(&mut self) -> SDIO_PAD_PULLUP_W<CONF_SPEC, 26> {
        SDIO_PAD_PULLUP_W::new(self)
    }
    #[doc = "Bit 27 - *******Description***********"]
    #[inline(always)]
    #[must_use]
    pub fn hspeed_con_en(&mut self) -> HSPEED_CON_EN_W<CONF_SPEC, 27> {
        HSPEED_CON_EN_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 = "*******Description***********\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`conf::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 [`conf::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CONF_SPEC;
impl crate::RegisterSpec for CONF_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`conf::R`](R) reader structure"]
impl crate::Readable for CONF_SPEC {}
#[doc = "`write(|w| ..)` method takes [`conf::W`](W) writer structure"]
impl crate::Writable for CONF_SPEC {
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets CONF to value 0"]
impl crate::Resettable for CONF_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}