stm32f4/stm32f413/sdio/
dcount.rs

1///Register `DCOUNT` reader
2pub type R = crate::R<DCOUNTrs>;
3///Field `DATACOUNT` reader - Data count value
4pub type DATACOUNT_R = crate::FieldReader<u32>;
5impl R {
6    ///Bits 0:24 - Data count value
7    #[inline(always)]
8    pub fn datacount(&self) -> DATACOUNT_R {
9        DATACOUNT_R::new(self.bits & 0x01ff_ffff)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("DCOUNT")
15            .field("datacount", &self.datacount())
16            .finish()
17    }
18}
19/**data counter register
20
21You can [`read`](crate::Reg::read) this register and get [`dcount::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
22
23See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#SDIO:DCOUNT)*/
24pub struct DCOUNTrs;
25impl crate::RegisterSpec for DCOUNTrs {
26    type Ux = u32;
27}
28///`read()` method returns [`dcount::R`](R) reader structure
29impl crate::Readable for DCOUNTrs {}
30///`reset()` method sets DCOUNT to value 0
31impl crate::Resettable for DCOUNTrs {}