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