pub type R = crate::R<WTCRrs>;
pub type W = crate::W<WTCRrs>;
pub type DCYC_R = crate::FieldReader;
pub type DCYC_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
impl R {
#[inline(always)]
pub fn dcyc(&self) -> DCYC_R {
DCYC_R::new((self.bits & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WTCR").field("dcyc", &self.dcyc()).finish()
}
}
impl W {
#[inline(always)]
pub fn dcyc(&mut self) -> DCYC_W<WTCRrs> {
DCYC_W::new(self, 0)
}
}
pub struct WTCRrs;
impl crate::RegisterSpec for WTCRrs {
type Ux = u32;
}
impl crate::Readable for WTCRrs {}
impl crate::Writable for WTCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WTCRrs {}