esp32p4/sdhost/
dscaddr.rs1#[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", &format_args!("{}", self.dscaddr().bits()))
17 .finish()
18 }
19}
20#[cfg(feature = "impl-register-debug")]
21impl core::fmt::Debug for crate::generic::Reg<DSCADDR_SPEC> {
22 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
23 core::fmt::Debug::fmt(&self.read(), f)
24 }
25}
26#[doc = "Host descriptor address pointer\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dscaddr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct DSCADDR_SPEC;
28impl crate::RegisterSpec for DSCADDR_SPEC {
29 type Ux = u32;
30}
31#[doc = "`read()` method returns [`dscaddr::R`](R) reader structure"]
32impl crate::Readable for DSCADDR_SPEC {}
33#[doc = "`reset()` method sets DSCADDR to value 0"]
34impl crate::Resettable for DSCADDR_SPEC {
35 const RESET_VALUE: u32 = 0;
36}