stm32f1_staging/stm32f101/sdio/dcount.rs
///Register `DCOUNT` reader
pub type R = crate::R<DCOUNTrs>;
///Field `DATACOUNT` reader - Data count value
pub type DATACOUNT_R = crate::FieldReader<u32>;
impl R {
///Bits 0:24 - Data count value
#[inline(always)]
pub fn datacount(&self) -> DATACOUNT_R {
DATACOUNT_R::new(self.bits & 0x01ff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DCOUNT")
.field("datacount", &self.datacount())
.finish()
}
}
/**Bits 24:0 = DATACOUNT: Data count value
You can [`read`](crate::Reg::read) this register and get [`dcount::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SDIO:DCOUNT)*/
pub struct DCOUNTrs;
impl crate::RegisterSpec for DCOUNTrs {
type Ux = u32;
}
///`read()` method returns [`dcount::R`](R) reader structure
impl crate::Readable for DCOUNTrs {}
///`reset()` method sets DCOUNT to value 0
impl crate::Resettable for DCOUNTrs {
const RESET_VALUE: u32 = 0;
}