pub type R = crate::R<CLKDIVrs>;
pub type W = crate::W<CLKDIVrs>;
pub type DivR = crate::FieldReader<u16>;
pub type DivW<'a, REG> = crate::FieldWriter<'a, REG, 14, u16>;
impl R {
#[inline(always)]
pub fn div(&self) -> DivR {
DivR::new(((self.bits >> 3) & 0x3fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CLKDIV").field("div", &self.div()).finish()
}
}
impl W {
#[inline(always)]
pub fn div(&mut self) -> DivW<'_, CLKDIVrs> {
DivW::new(self, 3)
}
}
pub struct CLKDIVrs;
impl crate::RegisterSpec for CLKDIVrs {
type Ux = u32;
}
impl crate::Readable for CLKDIVrs {}
impl crate::Writable for CLKDIVrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CLKDIVrs {}