esp32/slchost/
host_slchost_inf_st.rs1#[doc = "Register `HOST_SLCHOST_INF_ST` reader"]
2pub type R = crate::R<HOST_SLCHOST_INF_ST_SPEC>;
3#[doc = "Field `HOST_SDIO20_MODE` reader - "]
4pub type HOST_SDIO20_MODE_R = crate::FieldReader;
5#[doc = "Field `HOST_SDIO_NEG_SAMP` reader - "]
6pub type HOST_SDIO_NEG_SAMP_R = crate::FieldReader;
7#[doc = "Field `HOST_SDIO_QUICK_IN` reader - "]
8pub type HOST_SDIO_QUICK_IN_R = crate::FieldReader;
9impl R {
10 #[doc = "Bits 0:4"]
11 #[inline(always)]
12 pub fn host_sdio20_mode(&self) -> HOST_SDIO20_MODE_R {
13 HOST_SDIO20_MODE_R::new((self.bits & 0x1f) as u8)
14 }
15 #[doc = "Bits 5:9"]
16 #[inline(always)]
17 pub fn host_sdio_neg_samp(&self) -> HOST_SDIO_NEG_SAMP_R {
18 HOST_SDIO_NEG_SAMP_R::new(((self.bits >> 5) & 0x1f) as u8)
19 }
20 #[doc = "Bits 10:14"]
21 #[inline(always)]
22 pub fn host_sdio_quick_in(&self) -> HOST_SDIO_QUICK_IN_R {
23 HOST_SDIO_QUICK_IN_R::new(((self.bits >> 10) & 0x1f) as u8)
24 }
25}
26#[cfg(feature = "impl-register-debug")]
27impl core::fmt::Debug for R {
28 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29 f.debug_struct("HOST_SLCHOST_INF_ST")
30 .field("host_sdio20_mode", &self.host_sdio20_mode())
31 .field("host_sdio_neg_samp", &self.host_sdio_neg_samp())
32 .field("host_sdio_quick_in", &self.host_sdio_quick_in())
33 .finish()
34 }
35}
36#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slchost_inf_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
37pub struct HOST_SLCHOST_INF_ST_SPEC;
38impl crate::RegisterSpec for HOST_SLCHOST_INF_ST_SPEC {
39 type Ux = u32;
40}
41#[doc = "`read()` method returns [`host_slchost_inf_st::R`](R) reader structure"]
42impl crate::Readable for HOST_SLCHOST_INF_ST_SPEC {}
43#[doc = "`reset()` method sets HOST_SLCHOST_INF_ST to value 0"]
44impl crate::Resettable for HOST_SLCHOST_INF_ST_SPEC {
45 const RESET_VALUE: u32 = 0;
46}