pub type R = crate::R<CNTrs>;
pub type W = crate::W<CNTrs>;
pub type CntR = crate::FieldReader<u16>;
pub type CntW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn cnt(&self) -> CntR {
CntR::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CNT").field("cnt", &self.cnt()).finish()
}
}
impl W {
#[inline(always)]
pub fn cnt(&mut self) -> CntW<'_, CNTrs> {
CntW::new(self, 0)
}
}
pub struct CNTrs;
impl crate::RegisterSpec for CNTrs {
type Ux = u32;
}
impl crate::Readable for CNTrs {}
impl crate::Writable for CNTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CNTrs {}