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, 9, u16>;
impl R {
#[inline(always)]
pub fn div(&self) -> DivR {
DivR::new((self.bits & 0x01ff) 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, 0)
}
}
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 {}