pub type R = crate::R<HWCFGRrs>;
pub type W = crate::W<HWCFGRrs>;
pub type WINDOW_R = crate::FieldReader;
pub type WINDOW_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type PR_DEFAULT_R = crate::FieldReader;
pub type PR_DEFAULT_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
        #[inline(always)]
    pub fn window(&self) -> WINDOW_R {
        WINDOW_R::new((self.bits & 0x0f) as u8)
    }
        #[inline(always)]
    pub fn pr_default(&self) -> PR_DEFAULT_R {
        PR_DEFAULT_R::new(((self.bits >> 4) & 0x0f) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("HWCFGR")
            .field("window", &self.window())
            .field("pr_default", &self.pr_default())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn window(&mut self) -> WINDOW_W<HWCFGRrs> {
        WINDOW_W::new(self, 0)
    }
        #[inline(always)]
    pub fn pr_default(&mut self) -> PR_DEFAULT_W<HWCFGRrs> {
        PR_DEFAULT_W::new(self, 4)
    }
}
pub struct HWCFGRrs;
impl crate::RegisterSpec for HWCFGRrs {
    type Ux = u32;
}
impl crate::Readable for HWCFGRrs {}
impl crate::Writable for HWCFGRrs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for HWCFGRrs {
    const RESET_VALUE: u32 = 0x71;
}