esp32c6/slchost/
conf.rs

1#[doc = "Register `CONF` reader"]
2pub type R = crate::R<CONF_SPEC>;
3#[doc = "Register `CONF` writer"]
4pub type W = crate::W<CONF_SPEC>;
5#[doc = "Field `FRC_SDIO11` reader - *******Description***********"]
6pub type FRC_SDIO11_R = crate::FieldReader;
7#[doc = "Field `FRC_SDIO11` writer - *******Description***********"]
8pub type FRC_SDIO11_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
9#[doc = "Field `FRC_SDIO20` reader - *******Description***********"]
10pub type FRC_SDIO20_R = crate::FieldReader;
11#[doc = "Field `FRC_SDIO20` writer - *******Description***********"]
12pub type FRC_SDIO20_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
13#[doc = "Field `FRC_NEG_SAMP` reader - *******Description***********"]
14pub type FRC_NEG_SAMP_R = crate::FieldReader;
15#[doc = "Field `FRC_NEG_SAMP` writer - *******Description***********"]
16pub type FRC_NEG_SAMP_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
17#[doc = "Field `FRC_POS_SAMP` reader - *******Description***********"]
18pub type FRC_POS_SAMP_R = crate::FieldReader;
19#[doc = "Field `FRC_POS_SAMP` writer - *******Description***********"]
20pub type FRC_POS_SAMP_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
21#[doc = "Field `FRC_QUICK_IN` reader - *******Description***********"]
22pub type FRC_QUICK_IN_R = crate::FieldReader;
23#[doc = "Field `FRC_QUICK_IN` writer - *******Description***********"]
24pub type FRC_QUICK_IN_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
25#[doc = "Field `SDIO20_INT_DELAY` reader - *******Description***********"]
26pub type SDIO20_INT_DELAY_R = crate::BitReader;
27#[doc = "Field `SDIO20_INT_DELAY` writer - *******Description***********"]
28pub type SDIO20_INT_DELAY_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `SDIO_PAD_PULLUP` reader - *******Description***********"]
30pub type SDIO_PAD_PULLUP_R = crate::BitReader;
31#[doc = "Field `SDIO_PAD_PULLUP` writer - *******Description***********"]
32pub type SDIO_PAD_PULLUP_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `HSPEED_CON_EN` reader - *******Description***********"]
34pub type HSPEED_CON_EN_R = crate::BitReader;
35#[doc = "Field `HSPEED_CON_EN` writer - *******Description***********"]
36pub type HSPEED_CON_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
37impl R {
38    #[doc = "Bits 0:4 - *******Description***********"]
39    #[inline(always)]
40    pub fn frc_sdio11(&self) -> FRC_SDIO11_R {
41        FRC_SDIO11_R::new((self.bits & 0x1f) as u8)
42    }
43    #[doc = "Bits 5:9 - *******Description***********"]
44    #[inline(always)]
45    pub fn frc_sdio20(&self) -> FRC_SDIO20_R {
46        FRC_SDIO20_R::new(((self.bits >> 5) & 0x1f) as u8)
47    }
48    #[doc = "Bits 10:14 - *******Description***********"]
49    #[inline(always)]
50    pub fn frc_neg_samp(&self) -> FRC_NEG_SAMP_R {
51        FRC_NEG_SAMP_R::new(((self.bits >> 10) & 0x1f) as u8)
52    }
53    #[doc = "Bits 15:19 - *******Description***********"]
54    #[inline(always)]
55    pub fn frc_pos_samp(&self) -> FRC_POS_SAMP_R {
56        FRC_POS_SAMP_R::new(((self.bits >> 15) & 0x1f) as u8)
57    }
58    #[doc = "Bits 20:24 - *******Description***********"]
59    #[inline(always)]
60    pub fn frc_quick_in(&self) -> FRC_QUICK_IN_R {
61        FRC_QUICK_IN_R::new(((self.bits >> 20) & 0x1f) as u8)
62    }
63    #[doc = "Bit 25 - *******Description***********"]
64    #[inline(always)]
65    pub fn sdio20_int_delay(&self) -> SDIO20_INT_DELAY_R {
66        SDIO20_INT_DELAY_R::new(((self.bits >> 25) & 1) != 0)
67    }
68    #[doc = "Bit 26 - *******Description***********"]
69    #[inline(always)]
70    pub fn sdio_pad_pullup(&self) -> SDIO_PAD_PULLUP_R {
71        SDIO_PAD_PULLUP_R::new(((self.bits >> 26) & 1) != 0)
72    }
73    #[doc = "Bit 27 - *******Description***********"]
74    #[inline(always)]
75    pub fn hspeed_con_en(&self) -> HSPEED_CON_EN_R {
76        HSPEED_CON_EN_R::new(((self.bits >> 27) & 1) != 0)
77    }
78}
79#[cfg(feature = "impl-register-debug")]
80impl core::fmt::Debug for R {
81    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
82        f.debug_struct("CONF")
83            .field("frc_sdio11", &self.frc_sdio11())
84            .field("frc_sdio20", &self.frc_sdio20())
85            .field("frc_neg_samp", &self.frc_neg_samp())
86            .field("frc_pos_samp", &self.frc_pos_samp())
87            .field("frc_quick_in", &self.frc_quick_in())
88            .field("sdio20_int_delay", &self.sdio20_int_delay())
89            .field("sdio_pad_pullup", &self.sdio_pad_pullup())
90            .field("hspeed_con_en", &self.hspeed_con_en())
91            .finish()
92    }
93}
94impl W {
95    #[doc = "Bits 0:4 - *******Description***********"]
96    #[inline(always)]
97    pub fn frc_sdio11(&mut self) -> FRC_SDIO11_W<CONF_SPEC> {
98        FRC_SDIO11_W::new(self, 0)
99    }
100    #[doc = "Bits 5:9 - *******Description***********"]
101    #[inline(always)]
102    pub fn frc_sdio20(&mut self) -> FRC_SDIO20_W<CONF_SPEC> {
103        FRC_SDIO20_W::new(self, 5)
104    }
105    #[doc = "Bits 10:14 - *******Description***********"]
106    #[inline(always)]
107    pub fn frc_neg_samp(&mut self) -> FRC_NEG_SAMP_W<CONF_SPEC> {
108        FRC_NEG_SAMP_W::new(self, 10)
109    }
110    #[doc = "Bits 15:19 - *******Description***********"]
111    #[inline(always)]
112    pub fn frc_pos_samp(&mut self) -> FRC_POS_SAMP_W<CONF_SPEC> {
113        FRC_POS_SAMP_W::new(self, 15)
114    }
115    #[doc = "Bits 20:24 - *******Description***********"]
116    #[inline(always)]
117    pub fn frc_quick_in(&mut self) -> FRC_QUICK_IN_W<CONF_SPEC> {
118        FRC_QUICK_IN_W::new(self, 20)
119    }
120    #[doc = "Bit 25 - *******Description***********"]
121    #[inline(always)]
122    pub fn sdio20_int_delay(&mut self) -> SDIO20_INT_DELAY_W<CONF_SPEC> {
123        SDIO20_INT_DELAY_W::new(self, 25)
124    }
125    #[doc = "Bit 26 - *******Description***********"]
126    #[inline(always)]
127    pub fn sdio_pad_pullup(&mut self) -> SDIO_PAD_PULLUP_W<CONF_SPEC> {
128        SDIO_PAD_PULLUP_W::new(self, 26)
129    }
130    #[doc = "Bit 27 - *******Description***********"]
131    #[inline(always)]
132    pub fn hspeed_con_en(&mut self) -> HSPEED_CON_EN_W<CONF_SPEC> {
133        HSPEED_CON_EN_W::new(self, 27)
134    }
135}
136#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`conf::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
137pub struct CONF_SPEC;
138impl crate::RegisterSpec for CONF_SPEC {
139    type Ux = u32;
140}
141#[doc = "`read()` method returns [`conf::R`](R) reader structure"]
142impl crate::Readable for CONF_SPEC {}
143#[doc = "`write(|w| ..)` method takes [`conf::W`](W) writer structure"]
144impl crate::Writable for CONF_SPEC {
145    type Safety = crate::Unsafe;
146    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
147    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
148}
149#[doc = "`reset()` method sets CONF to value 0"]
150impl crate::Resettable for CONF_SPEC {
151    const RESET_VALUE: u32 = 0;
152}