#[doc = "Register `PRO_AHB_3` reader"]
pub type R = crate::R<PRO_AHB_3_SPEC>;
#[doc = "Register `PRO_AHB_3` writer"]
pub type W = crate::W<PRO_AHB_3_SPEC>;
#[doc = "Field `PRO_AHB_ILG_CLR` reader - The clear signal for PeriBus2 access interrupt."]
pub type PRO_AHB_ILG_CLR_R = crate::BitReader;
#[doc = "Field `PRO_AHB_ILG_CLR` writer - The clear signal for PeriBus2 access interrupt."]
pub type PRO_AHB_ILG_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PRO_AHB_ILG_EN` reader - The enable signal for PeriBus2 access interrupt."]
pub type PRO_AHB_ILG_EN_R = crate::BitReader;
#[doc = "Field `PRO_AHB_ILG_EN` writer - The enable signal for PeriBus2 access interrupt."]
pub type PRO_AHB_ILG_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PRO_AHB_ILG_INTR` reader - PeriBus2 access interrupt signal."]
pub type PRO_AHB_ILG_INTR_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - The clear signal for PeriBus2 access interrupt."]
    #[inline(always)]
    pub fn pro_ahb_ilg_clr(&self) -> PRO_AHB_ILG_CLR_R {
        PRO_AHB_ILG_CLR_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The enable signal for PeriBus2 access interrupt."]
    #[inline(always)]
    pub fn pro_ahb_ilg_en(&self) -> PRO_AHB_ILG_EN_R {
        PRO_AHB_ILG_EN_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - PeriBus2 access interrupt signal."]
    #[inline(always)]
    pub fn pro_ahb_ilg_intr(&self) -> PRO_AHB_ILG_INTR_R {
        PRO_AHB_ILG_INTR_R::new(((self.bits >> 2) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("PRO_AHB_3")
            .field("pro_ahb_ilg_clr", &self.pro_ahb_ilg_clr())
            .field("pro_ahb_ilg_en", &self.pro_ahb_ilg_en())
            .field("pro_ahb_ilg_intr", &self.pro_ahb_ilg_intr())
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - The clear signal for PeriBus2 access interrupt."]
    #[inline(always)]
    pub fn pro_ahb_ilg_clr(&mut self) -> PRO_AHB_ILG_CLR_W<'_, PRO_AHB_3_SPEC> {
        PRO_AHB_ILG_CLR_W::new(self, 0)
    }
    #[doc = "Bit 1 - The enable signal for PeriBus2 access interrupt."]
    #[inline(always)]
    pub fn pro_ahb_ilg_en(&mut self) -> PRO_AHB_ILG_EN_W<'_, PRO_AHB_3_SPEC> {
        PRO_AHB_ILG_EN_W::new(self, 1)
    }
}
#[doc = "PeriBus2 permission control register 3.\n\nYou can [`read`](crate::Reg::read) this register and get [`pro_ahb_3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pro_ahb_3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PRO_AHB_3_SPEC;
impl crate::RegisterSpec for PRO_AHB_3_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`pro_ahb_3::R`](R) reader structure"]
impl crate::Readable for PRO_AHB_3_SPEC {}
#[doc = "`write(|w| ..)` method takes [`pro_ahb_3::W`](W) writer structure"]
impl crate::Writable for PRO_AHB_3_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets PRO_AHB_3 to value 0"]
impl crate::Resettable for PRO_AHB_3_SPEC {}
