pub type R = crate::R<ACRrs>;
pub type W = crate::W<ACRrs>;
pub type LATENCY_R = crate::FieldReader;
pub type LATENCY_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type PRFTEN_R = crate::BitReader;
pub type PRFTEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ICEN_R = crate::BitReader;
pub type ICEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DCEN_R = crate::BitReader;
pub type DCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ICRST_R = crate::BitReader;
pub type ICRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DCRST_R = crate::BitReader;
pub type DCRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RUN_PD_R = crate::BitReader;
pub type RUN_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SLEEP_PD_R = crate::BitReader;
pub type SLEEP_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
        #[inline(always)]
    pub fn latency(&self) -> LATENCY_R {
        LATENCY_R::new((self.bits & 7) as u8)
    }
        #[inline(always)]
    pub fn prften(&self) -> PRFTEN_R {
        PRFTEN_R::new(((self.bits >> 8) & 1) != 0)
    }
        #[inline(always)]
    pub fn icen(&self) -> ICEN_R {
        ICEN_R::new(((self.bits >> 9) & 1) != 0)
    }
        #[inline(always)]
    pub fn dcen(&self) -> DCEN_R {
        DCEN_R::new(((self.bits >> 10) & 1) != 0)
    }
        #[inline(always)]
    pub fn icrst(&self) -> ICRST_R {
        ICRST_R::new(((self.bits >> 11) & 1) != 0)
    }
        #[inline(always)]
    pub fn dcrst(&self) -> DCRST_R {
        DCRST_R::new(((self.bits >> 12) & 1) != 0)
    }
        #[inline(always)]
    pub fn run_pd(&self) -> RUN_PD_R {
        RUN_PD_R::new(((self.bits >> 13) & 1) != 0)
    }
        #[inline(always)]
    pub fn sleep_pd(&self) -> SLEEP_PD_R {
        SLEEP_PD_R::new(((self.bits >> 14) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("ACR")
            .field("latency", &self.latency())
            .field("prften", &self.prften())
            .field("icen", &self.icen())
            .field("dcen", &self.dcen())
            .field("icrst", &self.icrst())
            .field("dcrst", &self.dcrst())
            .field("run_pd", &self.run_pd())
            .field("sleep_pd", &self.sleep_pd())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn latency(&mut self) -> LATENCY_W<ACRrs> {
        LATENCY_W::new(self, 0)
    }
        #[inline(always)]
    pub fn prften(&mut self) -> PRFTEN_W<ACRrs> {
        PRFTEN_W::new(self, 8)
    }
        #[inline(always)]
    pub fn icen(&mut self) -> ICEN_W<ACRrs> {
        ICEN_W::new(self, 9)
    }
        #[inline(always)]
    pub fn dcen(&mut self) -> DCEN_W<ACRrs> {
        DCEN_W::new(self, 10)
    }
        #[inline(always)]
    pub fn icrst(&mut self) -> ICRST_W<ACRrs> {
        ICRST_W::new(self, 11)
    }
        #[inline(always)]
    pub fn dcrst(&mut self) -> DCRST_W<ACRrs> {
        DCRST_W::new(self, 12)
    }
        #[inline(always)]
    pub fn run_pd(&mut self) -> RUN_PD_W<ACRrs> {
        RUN_PD_W::new(self, 13)
    }
        #[inline(always)]
    pub fn sleep_pd(&mut self) -> SLEEP_PD_W<ACRrs> {
        SLEEP_PD_W::new(self, 14)
    }
}
pub struct ACRrs;
impl crate::RegisterSpec for ACRrs {
    type Ux = u32;
}
impl crate::Readable for ACRrs {}
impl crate::Writable for ACRrs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for ACRrs {
    const RESET_VALUE: u32 = 0x0600;
}