#[doc = "Register `ESR` writer"]
pub struct W(crate::W<ESR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<ESR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<ESR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<ESR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `P0` writer - Edge Interrupt Selection"]
pub type P0_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P1` writer - Edge Interrupt Selection"]
pub type P1_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P2` writer - Edge Interrupt Selection"]
pub type P2_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P3` writer - Edge Interrupt Selection"]
pub type P3_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P4` writer - Edge Interrupt Selection"]
pub type P4_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P5` writer - Edge Interrupt Selection"]
pub type P5_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P6` writer - Edge Interrupt Selection"]
pub type P6_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P7` writer - Edge Interrupt Selection"]
pub type P7_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P8` writer - Edge Interrupt Selection"]
pub type P8_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P9` writer - Edge Interrupt Selection"]
pub type P9_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P10` writer - Edge Interrupt Selection"]
pub type P10_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P11` writer - Edge Interrupt Selection"]
pub type P11_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P12` writer - Edge Interrupt Selection"]
pub type P12_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P13` writer - Edge Interrupt Selection"]
pub type P13_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P14` writer - Edge Interrupt Selection"]
pub type P14_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P15` writer - Edge Interrupt Selection"]
pub type P15_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P16` writer - Edge Interrupt Selection"]
pub type P16_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P17` writer - Edge Interrupt Selection"]
pub type P17_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P18` writer - Edge Interrupt Selection"]
pub type P18_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P19` writer - Edge Interrupt Selection"]
pub type P19_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P20` writer - Edge Interrupt Selection"]
pub type P20_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P21` writer - Edge Interrupt Selection"]
pub type P21_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P22` writer - Edge Interrupt Selection"]
pub type P22_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P23` writer - Edge Interrupt Selection"]
pub type P23_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P24` writer - Edge Interrupt Selection"]
pub type P24_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P25` writer - Edge Interrupt Selection"]
pub type P25_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P26` writer - Edge Interrupt Selection"]
pub type P26_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P27` writer - Edge Interrupt Selection"]
pub type P27_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P28` writer - Edge Interrupt Selection"]
pub type P28_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P29` writer - Edge Interrupt Selection"]
pub type P29_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P30` writer - Edge Interrupt Selection"]
pub type P30_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
#[doc = "Field `P31` writer - Edge Interrupt Selection"]
pub type P31_W<'a, const O: u8> = crate::BitWriter<'a, u32, ESR_SPEC, bool, O>;
impl W {
    #[doc = "Bit 0 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p0(&mut self) -> P0_W<0> {
        P0_W::new(self)
    }
    #[doc = "Bit 1 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p1(&mut self) -> P1_W<1> {
        P1_W::new(self)
    }
    #[doc = "Bit 2 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p2(&mut self) -> P2_W<2> {
        P2_W::new(self)
    }
    #[doc = "Bit 3 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p3(&mut self) -> P3_W<3> {
        P3_W::new(self)
    }
    #[doc = "Bit 4 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p4(&mut self) -> P4_W<4> {
        P4_W::new(self)
    }
    #[doc = "Bit 5 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p5(&mut self) -> P5_W<5> {
        P5_W::new(self)
    }
    #[doc = "Bit 6 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p6(&mut self) -> P6_W<6> {
        P6_W::new(self)
    }
    #[doc = "Bit 7 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p7(&mut self) -> P7_W<7> {
        P7_W::new(self)
    }
    #[doc = "Bit 8 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p8(&mut self) -> P8_W<8> {
        P8_W::new(self)
    }
    #[doc = "Bit 9 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p9(&mut self) -> P9_W<9> {
        P9_W::new(self)
    }
    #[doc = "Bit 10 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p10(&mut self) -> P10_W<10> {
        P10_W::new(self)
    }
    #[doc = "Bit 11 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p11(&mut self) -> P11_W<11> {
        P11_W::new(self)
    }
    #[doc = "Bit 12 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p12(&mut self) -> P12_W<12> {
        P12_W::new(self)
    }
    #[doc = "Bit 13 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p13(&mut self) -> P13_W<13> {
        P13_W::new(self)
    }
    #[doc = "Bit 14 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p14(&mut self) -> P14_W<14> {
        P14_W::new(self)
    }
    #[doc = "Bit 15 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p15(&mut self) -> P15_W<15> {
        P15_W::new(self)
    }
    #[doc = "Bit 16 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p16(&mut self) -> P16_W<16> {
        P16_W::new(self)
    }
    #[doc = "Bit 17 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p17(&mut self) -> P17_W<17> {
        P17_W::new(self)
    }
    #[doc = "Bit 18 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p18(&mut self) -> P18_W<18> {
        P18_W::new(self)
    }
    #[doc = "Bit 19 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p19(&mut self) -> P19_W<19> {
        P19_W::new(self)
    }
    #[doc = "Bit 20 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p20(&mut self) -> P20_W<20> {
        P20_W::new(self)
    }
    #[doc = "Bit 21 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p21(&mut self) -> P21_W<21> {
        P21_W::new(self)
    }
    #[doc = "Bit 22 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p22(&mut self) -> P22_W<22> {
        P22_W::new(self)
    }
    #[doc = "Bit 23 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p23(&mut self) -> P23_W<23> {
        P23_W::new(self)
    }
    #[doc = "Bit 24 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p24(&mut self) -> P24_W<24> {
        P24_W::new(self)
    }
    #[doc = "Bit 25 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p25(&mut self) -> P25_W<25> {
        P25_W::new(self)
    }
    #[doc = "Bit 26 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p26(&mut self) -> P26_W<26> {
        P26_W::new(self)
    }
    #[doc = "Bit 27 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p27(&mut self) -> P27_W<27> {
        P27_W::new(self)
    }
    #[doc = "Bit 28 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p28(&mut self) -> P28_W<28> {
        P28_W::new(self)
    }
    #[doc = "Bit 29 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p29(&mut self) -> P29_W<29> {
        P29_W::new(self)
    }
    #[doc = "Bit 30 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p30(&mut self) -> P30_W<30> {
        P30_W::new(self)
    }
    #[doc = "Bit 31 - Edge Interrupt Selection"]
    #[inline(always)]
    #[must_use]
    pub fn p31(&mut self) -> P31_W<31> {
        P31_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Edge Select Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [esr](index.html) module"]
pub struct ESR_SPEC;
impl crate::RegisterSpec for ESR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [esr::W](W) writer structure"]
impl crate::Writable for ESR_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
