pub type R = crate::R<WDGTCRrs>;
pub type W = crate::W<WDGTCRrs>;
pub type WDGEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WDGDIS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WDGS_R = crate::BitReader;
pub type WDGHRC_R = crate::FieldReader;
pub type WDGHRC_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type WDGCS_R = crate::FieldReader;
pub type WDGCS_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type FWDGR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn wdgs(&self) -> WDGS_R {
WDGS_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn wdghrc(&self) -> WDGHRC_R {
WDGHRC_R::new(((self.bits >> 4) & 3) as u8)
}
#[inline(always)]
pub fn wdgcs(&self) -> WDGCS_R {
WDGCS_R::new(((self.bits >> 8) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WDGTCR")
.field("wdgs", &self.wdgs())
.field("wdghrc", &self.wdghrc())
.field("wdgcs", &self.wdgcs())
.finish()
}
}
impl W {
#[inline(always)]
pub fn wdgen(&mut self) -> WDGEN_W<WDGTCRrs> {
WDGEN_W::new(self, 0)
}
#[inline(always)]
pub fn wdgdis(&mut self) -> WDGDIS_W<WDGTCRrs> {
WDGDIS_W::new(self, 1)
}
#[inline(always)]
pub fn wdghrc(&mut self) -> WDGHRC_W<WDGTCRrs> {
WDGHRC_W::new(self, 4)
}
#[inline(always)]
pub fn wdgcs(&mut self) -> WDGCS_W<WDGTCRrs> {
WDGCS_W::new(self, 8)
}
#[inline(always)]
pub fn fwdgr(&mut self) -> FWDGR_W<WDGTCRrs> {
FWDGR_W::new(self, 16)
}
}
pub struct WDGTCRrs;
impl crate::RegisterSpec for WDGTCRrs {
type Ux = u32;
}
impl crate::Readable for WDGTCRrs {}
impl crate::Writable for WDGTCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WDGTCRrs {}