pub type R = crate::R<CNTRrs>;
pub type W = crate::W<CNTRrs>;
pub type CNT_R = crate::FieldReader<u16>;
pub type CNT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn cnt(&self) -> CNT_R {
CNT_R::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("CNTR").field("cnt", &self.cnt()).finish()
}
}
impl W {
#[inline(always)]
pub fn cnt(&mut self) -> CNT_W<CNTRrs> {
CNT_W::new(self, 0)
}
}
pub struct CNTRrs;
impl crate::RegisterSpec for CNTRrs {
type Ux = u32;
}
impl crate::Readable for CNTRrs {}
impl crate::Writable for CNTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CNTRrs {}