pub type R = crate::R<RWDrs>;
pub type W = crate::W<RWDrs>;
pub type WDC_R = crate::FieldReader;
pub type WDC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type WDV_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn wdc(&self) -> WDC_R {
WDC_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn wdv(&self) -> WDV_R {
WDV_R::new(((self.bits >> 8) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RWD")
.field("wdc", &self.wdc())
.field("wdv", &self.wdv())
.finish()
}
}
impl W {
#[inline(always)]
pub fn wdc(&mut self) -> WDC_W<RWDrs> {
WDC_W::new(self, 0)
}
}
pub struct RWDrs;
impl crate::RegisterSpec for RWDrs {
type Ux = u32;
}
impl crate::Readable for RWDrs {}
impl crate::Writable for RWDrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for RWDrs {}