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