#[doc = "Register `ENR0` reader"]
pub type R = crate::R<Enr0Spec>;
#[doc = "Register `ENR0` writer"]
pub type W = crate::W<Enr0Spec>;
#[doc = "Field `P0_0ER` reader - Enable rising edge interrupt for P0\\[0\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_0erR = crate::BitReader;
#[doc = "Field `P0_0ER` writer - Enable rising edge interrupt for P0\\[0\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_0erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_1ER` reader - Enable rising edge interrupt for P0\\[1\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_1erR = crate::BitReader;
#[doc = "Field `P0_1ER` writer - Enable rising edge interrupt for P0\\[1\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_1erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_2ER` reader - Enable rising edge interrupt for P0\\[2\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_2erR = crate::BitReader;
#[doc = "Field `P0_2ER` writer - Enable rising edge interrupt for P0\\[2\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_2erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_3ER` reader - Enable rising edge interrupt for P0\\[3\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_3erR = crate::BitReader;
#[doc = "Field `P0_3ER` writer - Enable rising edge interrupt for P0\\[3\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_3erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_4ER` reader - Enable rising edge interrupt for P0\\[4\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_4erR = crate::BitReader;
#[doc = "Field `P0_4ER` writer - Enable rising edge interrupt for P0\\[4\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_4erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_5ER` reader - Enable rising edge interrupt for P0\\[5\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_5erR = crate::BitReader;
#[doc = "Field `P0_5ER` writer - Enable rising edge interrupt for P0\\[5\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_5erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_6ER` reader - Enable rising edge interrupt for P0\\[6\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_6erR = crate::BitReader;
#[doc = "Field `P0_6ER` writer - Enable rising edge interrupt for P0\\[6\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_6erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_7ER` reader - Enable rising edge interrupt for P0\\[7\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_7erR = crate::BitReader;
#[doc = "Field `P0_7ER` writer - Enable rising edge interrupt for P0\\[7\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_7erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_8ER` reader - Enable rising edge interrupt for P0\\[8\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_8erR = crate::BitReader;
#[doc = "Field `P0_8ER` writer - Enable rising edge interrupt for P0\\[8\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_8erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_9ER` reader - Enable rising edge interrupt for P0\\[9\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_9erR = crate::BitReader;
#[doc = "Field `P0_9ER` writer - Enable rising edge interrupt for P0\\[9\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_9erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_10ER` reader - Enable rising edge interrupt for P0\\[10\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_10erR = crate::BitReader;
#[doc = "Field `P0_10ER` writer - Enable rising edge interrupt for P0\\[10\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_10erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_11ER` reader - Enable rising edge interrupt for P0\\[11\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_11erR = crate::BitReader;
#[doc = "Field `P0_11ER` writer - Enable rising edge interrupt for P0\\[11\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_11erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_12ER` reader - Enable rising edge interrupt for P0\\[12\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_12erR = crate::BitReader;
#[doc = "Field `P0_12ER` writer - Enable rising edge interrupt for P0\\[12\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_12erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_13ER` reader - Enable rising edge interrupt for P0\\[13\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_13erR = crate::BitReader;
#[doc = "Field `P0_13ER` writer - Enable rising edge interrupt for P0\\[13\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_13erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_14ER` reader - Enable rising edge interrupt for P0\\[14\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_14erR = crate::BitReader;
#[doc = "Field `P0_14ER` writer - Enable rising edge interrupt for P0\\[14\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_14erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_15ER` reader - Enable rising edge interrupt for P0\\[15\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_15erR = crate::BitReader;
#[doc = "Field `P0_15ER` writer - Enable rising edge interrupt for P0\\[15\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_15erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_16ER` reader - Enable rising edge interrupt for P0\\[16\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_16erR = crate::BitReader;
#[doc = "Field `P0_16ER` writer - Enable rising edge interrupt for P0\\[16\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_16erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_17ER` reader - Enable rising edge interrupt for P0\\[17\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_17erR = crate::BitReader;
#[doc = "Field `P0_17ER` writer - Enable rising edge interrupt for P0\\[17\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_17erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_18ER` reader - Enable rising edge interrupt for P0\\[18\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_18erR = crate::BitReader;
#[doc = "Field `P0_18ER` writer - Enable rising edge interrupt for P0\\[18\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_18erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_19ER` reader - Enable rising edge interrupt for P0\\[19\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_19erR = crate::BitReader;
#[doc = "Field `P0_19ER` writer - Enable rising edge interrupt for P0\\[19\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_19erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_20ER` reader - Enable rising edge interrupt for P0\\[20\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_20erR = crate::BitReader;
#[doc = "Field `P0_20ER` writer - Enable rising edge interrupt for P0\\[20\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_20erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_21ER` reader - Enable rising edge interrupt for P0\\[21\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_21erR = crate::BitReader;
#[doc = "Field `P0_21ER` writer - Enable rising edge interrupt for P0\\[21\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_21erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_22ER` reader - Enable rising edge interrupt for P0\\[22\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_22erR = crate::BitReader;
#[doc = "Field `P0_22ER` writer - Enable rising edge interrupt for P0\\[22\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_22erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_23ER` reader - Enable rising edge interrupt for P0\\[23\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_23erR = crate::BitReader;
#[doc = "Field `P0_23ER` writer - Enable rising edge interrupt for P0\\[23\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_23erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_24ER` reader - Enable rising edge interrupt for P0\\[24\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_24erR = crate::BitReader;
#[doc = "Field `P0_24ER` writer - Enable rising edge interrupt for P0\\[24\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_24erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_25ER` reader - Enable rising edge interrupt for P0\\[25\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_25erR = crate::BitReader;
#[doc = "Field `P0_25ER` writer - Enable rising edge interrupt for P0\\[25\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_25erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_26ER` reader - Enable rising edge interrupt for P0\\[26\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_26erR = crate::BitReader;
#[doc = "Field `P0_26ER` writer - Enable rising edge interrupt for P0\\[26\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_26erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_27ER` reader - Enable rising edge interrupt for P0\\[27\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_27erR = crate::BitReader;
#[doc = "Field `P0_27ER` writer - Enable rising edge interrupt for P0\\[27\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_27erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_28ER` reader - Enable rising edge interrupt for P0\\[28\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_28erR = crate::BitReader;
#[doc = "Field `P0_28ER` writer - Enable rising edge interrupt for P0\\[28\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_28erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_29ER` reader - Enable rising edge interrupt for P0\\[29\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_29erR = crate::BitReader;
#[doc = "Field `P0_29ER` writer - Enable rising edge interrupt for P0\\[29\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_29erW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P0_30ER` reader - Enable rising edge interrupt for P0\\[30\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_30erR = crate::BitReader;
#[doc = "Field `P0_30ER` writer - Enable rising edge interrupt for P0\\[30\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
pub type P0_30erW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Enable rising edge interrupt for P0\\[0\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_0er(&self) -> P0_0erR {
        P0_0erR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Enable rising edge interrupt for P0\\[1\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_1er(&self) -> P0_1erR {
        P0_1erR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Enable rising edge interrupt for P0\\[2\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_2er(&self) -> P0_2erR {
        P0_2erR::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Enable rising edge interrupt for P0\\[3\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_3er(&self) -> P0_3erR {
        P0_3erR::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Enable rising edge interrupt for P0\\[4\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_4er(&self) -> P0_4erR {
        P0_4erR::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Enable rising edge interrupt for P0\\[5\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_5er(&self) -> P0_5erR {
        P0_5erR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Enable rising edge interrupt for P0\\[6\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_6er(&self) -> P0_6erR {
        P0_6erR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Enable rising edge interrupt for P0\\[7\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_7er(&self) -> P0_7erR {
        P0_7erR::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Enable rising edge interrupt for P0\\[8\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_8er(&self) -> P0_8erR {
        P0_8erR::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Enable rising edge interrupt for P0\\[9\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_9er(&self) -> P0_9erR {
        P0_9erR::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Enable rising edge interrupt for P0\\[10\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_10er(&self) -> P0_10erR {
        P0_10erR::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Enable rising edge interrupt for P0\\[11\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_11er(&self) -> P0_11erR {
        P0_11erR::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Enable rising edge interrupt for P0\\[12\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_12er(&self) -> P0_12erR {
        P0_12erR::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Enable rising edge interrupt for P0\\[13\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_13er(&self) -> P0_13erR {
        P0_13erR::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Enable rising edge interrupt for P0\\[14\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_14er(&self) -> P0_14erR {
        P0_14erR::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Enable rising edge interrupt for P0\\[15\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_15er(&self) -> P0_15erR {
        P0_15erR::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Enable rising edge interrupt for P0\\[16\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_16er(&self) -> P0_16erR {
        P0_16erR::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Enable rising edge interrupt for P0\\[17\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_17er(&self) -> P0_17erR {
        P0_17erR::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Enable rising edge interrupt for P0\\[18\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_18er(&self) -> P0_18erR {
        P0_18erR::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Enable rising edge interrupt for P0\\[19\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_19er(&self) -> P0_19erR {
        P0_19erR::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Enable rising edge interrupt for P0\\[20\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_20er(&self) -> P0_20erR {
        P0_20erR::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Enable rising edge interrupt for P0\\[21\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_21er(&self) -> P0_21erR {
        P0_21erR::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Enable rising edge interrupt for P0\\[22\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_22er(&self) -> P0_22erR {
        P0_22erR::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Enable rising edge interrupt for P0\\[23\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_23er(&self) -> P0_23erR {
        P0_23erR::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Enable rising edge interrupt for P0\\[24\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_24er(&self) -> P0_24erR {
        P0_24erR::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Enable rising edge interrupt for P0\\[25\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_25er(&self) -> P0_25erR {
        P0_25erR::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Enable rising edge interrupt for P0\\[26\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_26er(&self) -> P0_26erR {
        P0_26erR::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Enable rising edge interrupt for P0\\[27\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_27er(&self) -> P0_27erR {
        P0_27erR::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - Enable rising edge interrupt for P0\\[28\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_28er(&self) -> P0_28erR {
        P0_28erR::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Enable rising edge interrupt for P0\\[29\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_29er(&self) -> P0_29erR {
        P0_29erR::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Enable rising edge interrupt for P0\\[30\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_30er(&self) -> P0_30erR {
        P0_30erR::new(((self.bits >> 30) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Enable rising edge interrupt for P0\\[0\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_0er(&mut self) -> P0_0erW<'_, Enr0Spec> {
        P0_0erW::new(self, 0)
    }
    #[doc = "Bit 1 - Enable rising edge interrupt for P0\\[1\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_1er(&mut self) -> P0_1erW<'_, Enr0Spec> {
        P0_1erW::new(self, 1)
    }
    #[doc = "Bit 2 - Enable rising edge interrupt for P0\\[2\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_2er(&mut self) -> P0_2erW<'_, Enr0Spec> {
        P0_2erW::new(self, 2)
    }
    #[doc = "Bit 3 - Enable rising edge interrupt for P0\\[3\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_3er(&mut self) -> P0_3erW<'_, Enr0Spec> {
        P0_3erW::new(self, 3)
    }
    #[doc = "Bit 4 - Enable rising edge interrupt for P0\\[4\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_4er(&mut self) -> P0_4erW<'_, Enr0Spec> {
        P0_4erW::new(self, 4)
    }
    #[doc = "Bit 5 - Enable rising edge interrupt for P0\\[5\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_5er(&mut self) -> P0_5erW<'_, Enr0Spec> {
        P0_5erW::new(self, 5)
    }
    #[doc = "Bit 6 - Enable rising edge interrupt for P0\\[6\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_6er(&mut self) -> P0_6erW<'_, Enr0Spec> {
        P0_6erW::new(self, 6)
    }
    #[doc = "Bit 7 - Enable rising edge interrupt for P0\\[7\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_7er(&mut self) -> P0_7erW<'_, Enr0Spec> {
        P0_7erW::new(self, 7)
    }
    #[doc = "Bit 8 - Enable rising edge interrupt for P0\\[8\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_8er(&mut self) -> P0_8erW<'_, Enr0Spec> {
        P0_8erW::new(self, 8)
    }
    #[doc = "Bit 9 - Enable rising edge interrupt for P0\\[9\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_9er(&mut self) -> P0_9erW<'_, Enr0Spec> {
        P0_9erW::new(self, 9)
    }
    #[doc = "Bit 10 - Enable rising edge interrupt for P0\\[10\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_10er(&mut self) -> P0_10erW<'_, Enr0Spec> {
        P0_10erW::new(self, 10)
    }
    #[doc = "Bit 11 - Enable rising edge interrupt for P0\\[11\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_11er(&mut self) -> P0_11erW<'_, Enr0Spec> {
        P0_11erW::new(self, 11)
    }
    #[doc = "Bit 12 - Enable rising edge interrupt for P0\\[12\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_12er(&mut self) -> P0_12erW<'_, Enr0Spec> {
        P0_12erW::new(self, 12)
    }
    #[doc = "Bit 13 - Enable rising edge interrupt for P0\\[13\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_13er(&mut self) -> P0_13erW<'_, Enr0Spec> {
        P0_13erW::new(self, 13)
    }
    #[doc = "Bit 14 - Enable rising edge interrupt for P0\\[14\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_14er(&mut self) -> P0_14erW<'_, Enr0Spec> {
        P0_14erW::new(self, 14)
    }
    #[doc = "Bit 15 - Enable rising edge interrupt for P0\\[15\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_15er(&mut self) -> P0_15erW<'_, Enr0Spec> {
        P0_15erW::new(self, 15)
    }
    #[doc = "Bit 16 - Enable rising edge interrupt for P0\\[16\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_16er(&mut self) -> P0_16erW<'_, Enr0Spec> {
        P0_16erW::new(self, 16)
    }
    #[doc = "Bit 17 - Enable rising edge interrupt for P0\\[17\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_17er(&mut self) -> P0_17erW<'_, Enr0Spec> {
        P0_17erW::new(self, 17)
    }
    #[doc = "Bit 18 - Enable rising edge interrupt for P0\\[18\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_18er(&mut self) -> P0_18erW<'_, Enr0Spec> {
        P0_18erW::new(self, 18)
    }
    #[doc = "Bit 19 - Enable rising edge interrupt for P0\\[19\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_19er(&mut self) -> P0_19erW<'_, Enr0Spec> {
        P0_19erW::new(self, 19)
    }
    #[doc = "Bit 20 - Enable rising edge interrupt for P0\\[20\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_20er(&mut self) -> P0_20erW<'_, Enr0Spec> {
        P0_20erW::new(self, 20)
    }
    #[doc = "Bit 21 - Enable rising edge interrupt for P0\\[21\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_21er(&mut self) -> P0_21erW<'_, Enr0Spec> {
        P0_21erW::new(self, 21)
    }
    #[doc = "Bit 22 - Enable rising edge interrupt for P0\\[22\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_22er(&mut self) -> P0_22erW<'_, Enr0Spec> {
        P0_22erW::new(self, 22)
    }
    #[doc = "Bit 23 - Enable rising edge interrupt for P0\\[23\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_23er(&mut self) -> P0_23erW<'_, Enr0Spec> {
        P0_23erW::new(self, 23)
    }
    #[doc = "Bit 24 - Enable rising edge interrupt for P0\\[24\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_24er(&mut self) -> P0_24erW<'_, Enr0Spec> {
        P0_24erW::new(self, 24)
    }
    #[doc = "Bit 25 - Enable rising edge interrupt for P0\\[25\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_25er(&mut self) -> P0_25erW<'_, Enr0Spec> {
        P0_25erW::new(self, 25)
    }
    #[doc = "Bit 26 - Enable rising edge interrupt for P0\\[26\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_26er(&mut self) -> P0_26erW<'_, Enr0Spec> {
        P0_26erW::new(self, 26)
    }
    #[doc = "Bit 27 - Enable rising edge interrupt for P0\\[27\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_27er(&mut self) -> P0_27erW<'_, Enr0Spec> {
        P0_27erW::new(self, 27)
    }
    #[doc = "Bit 28 - Enable rising edge interrupt for P0\\[28\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_28er(&mut self) -> P0_28erW<'_, Enr0Spec> {
        P0_28erW::new(self, 28)
    }
    #[doc = "Bit 29 - Enable rising edge interrupt for P0\\[29\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_29er(&mut self) -> P0_29erW<'_, Enr0Spec> {
        P0_29erW::new(self, 29)
    }
    #[doc = "Bit 30 - Enable rising edge interrupt for P0\\[30\\]. 0 = Disable rising edge interrupt. 1 = Enable rising edge interrupt."]
    #[inline(always)]
    pub fn p0_30er(&mut self) -> P0_30erW<'_, Enr0Spec> {
        P0_30erW::new(self, 30)
    }
}
#[doc = "GPIO Interrupt Enable for Rising edge for Port 0.\n\nYou can [`read`](crate::Reg::read) this register and get [`enr0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`enr0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Enr0Spec;
impl crate::RegisterSpec for Enr0Spec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`enr0::R`](R) reader structure"]
impl crate::Readable for Enr0Spec {}
#[doc = "`write(|w| ..)` method takes [`enr0::W`](W) writer structure"]
impl crate::Writable for Enr0Spec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets ENR0 to value 0"]
impl crate::Resettable for Enr0Spec {}
