stm32f1_staging/stm32f102/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").field("datacount", &self.datacount()).finish()
15    }
16}
17/**data counter register
18
19You can [`read`](crate::Reg::read) this register and get [`dcount::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#SDIO:DCOUNT)*/
22pub struct DCOUNTrs;
23impl crate::RegisterSpec for DCOUNTrs {
24    type Ux = u32;
25}
26///`read()` method returns [`dcount::R`](R) reader structure
27impl crate::Readable for DCOUNTrs {}
28///`reset()` method sets DCOUNT to value 0
29impl crate::Resettable for DCOUNTrs {}