esp32/sdhost/
dscaddr.rs

1#[doc = "Register `DSCADDR` reader"]
2pub type R = crate::R<DSCADDR_SPEC>;
3#[doc = "Field `DSCADDR` reader - Host Descriptor Address Pointer, updated by IDMAC during operation and cleared on reset. This register points to the start address of the current descriptor read by the IDMAC."]
4pub type DSCADDR_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - Host Descriptor Address Pointer, updated by IDMAC during operation and cleared on reset. This register points to the start address of the current descriptor read by the IDMAC."]
7    #[inline(always)]
8    pub fn dscaddr(&self) -> DSCADDR_R {
9        DSCADDR_R::new(self.bits)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("DSCADDR")
16            .field("dscaddr", &self.dscaddr())
17            .finish()
18    }
19}
20#[doc = "Host descriptor address pointer\n\nYou can [`read`](crate::Reg::read) this register and get [`dscaddr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct DSCADDR_SPEC;
22impl crate::RegisterSpec for DSCADDR_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`dscaddr::R`](R) reader structure"]
26impl crate::Readable for DSCADDR_SPEC {}
27#[doc = "`reset()` method sets DSCADDR to value 0"]
28impl crate::Resettable for DSCADDR_SPEC {
29    const RESET_VALUE: u32 = 0;
30}