#[doc = "Register `DFSDM0_CNVTIMR` reader"]
pub struct R(crate::R<DFSDM0_CNVTIMR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<DFSDM0_CNVTIMR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<DFSDM0_CNVTIMR_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<DFSDM0_CNVTIMR_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `CNVCNT` reader - 28-bit timer counting conversion time"]
pub type CNVCNT_R = crate::FieldReader<u32, u32>;
impl R {
#[doc = "Bits 4:31 - 28-bit timer counting conversion time"]
#[inline(always)]
pub fn cnvcnt(&self) -> CNVCNT_R {
CNVCNT_R::new(((self.bits >> 4) & 0x0fff_ffff) as u32)
}
}
#[doc = "DFSDM conversion timer register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dfsdm0_cnvtimr](index.html) module"]
pub struct DFSDM0_CNVTIMR_SPEC;
impl crate::RegisterSpec for DFSDM0_CNVTIMR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [dfsdm0_cnvtimr::R](R) reader structure"]
impl crate::Readable for DFSDM0_CNVTIMR_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets DFSDM0_CNVTIMR to value 0"]
impl crate::Resettable for DFSDM0_CNVTIMR_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}