#[doc = "Register `ABCDSR[%s]` reader"]
pub type R = crate::R<ABCDSR_SPEC>;
#[doc = "Register `ABCDSR[%s]` writer"]
pub type W = crate::W<ABCDSR_SPEC>;
#[doc = "Field `P0` reader - Peripheral Select."]
pub type P0_R = crate::BitReader;
#[doc = "Field `P0` writer - Peripheral Select."]
pub type P0_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P1` reader - Peripheral Select."]
pub type P1_R = crate::BitReader;
#[doc = "Field `P1` writer - Peripheral Select."]
pub type P1_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P2` reader - Peripheral Select."]
pub type P2_R = crate::BitReader;
#[doc = "Field `P2` writer - Peripheral Select."]
pub type P2_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P3` reader - Peripheral Select."]
pub type P3_R = crate::BitReader;
#[doc = "Field `P3` writer - Peripheral Select."]
pub type P3_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P4` reader - Peripheral Select."]
pub type P4_R = crate::BitReader;
#[doc = "Field `P4` writer - Peripheral Select."]
pub type P4_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P5` reader - Peripheral Select."]
pub type P5_R = crate::BitReader;
#[doc = "Field `P5` writer - Peripheral Select."]
pub type P5_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P6` reader - Peripheral Select."]
pub type P6_R = crate::BitReader;
#[doc = "Field `P6` writer - Peripheral Select."]
pub type P6_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P7` reader - Peripheral Select."]
pub type P7_R = crate::BitReader;
#[doc = "Field `P7` writer - Peripheral Select."]
pub type P7_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P8` reader - Peripheral Select."]
pub type P8_R = crate::BitReader;
#[doc = "Field `P8` writer - Peripheral Select."]
pub type P8_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P9` reader - Peripheral Select."]
pub type P9_R = crate::BitReader;
#[doc = "Field `P9` writer - Peripheral Select."]
pub type P9_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P10` reader - Peripheral Select."]
pub type P10_R = crate::BitReader;
#[doc = "Field `P10` writer - Peripheral Select."]
pub type P10_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P11` reader - Peripheral Select."]
pub type P11_R = crate::BitReader;
#[doc = "Field `P11` writer - Peripheral Select."]
pub type P11_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P12` reader - Peripheral Select."]
pub type P12_R = crate::BitReader;
#[doc = "Field `P12` writer - Peripheral Select."]
pub type P12_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P13` reader - Peripheral Select."]
pub type P13_R = crate::BitReader;
#[doc = "Field `P13` writer - Peripheral Select."]
pub type P13_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P14` reader - Peripheral Select."]
pub type P14_R = crate::BitReader;
#[doc = "Field `P14` writer - Peripheral Select."]
pub type P14_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P15` reader - Peripheral Select."]
pub type P15_R = crate::BitReader;
#[doc = "Field `P15` writer - Peripheral Select."]
pub type P15_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P16` reader - Peripheral Select."]
pub type P16_R = crate::BitReader;
#[doc = "Field `P16` writer - Peripheral Select."]
pub type P16_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P17` reader - Peripheral Select."]
pub type P17_R = crate::BitReader;
#[doc = "Field `P17` writer - Peripheral Select."]
pub type P17_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P18` reader - Peripheral Select."]
pub type P18_R = crate::BitReader;
#[doc = "Field `P18` writer - Peripheral Select."]
pub type P18_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P19` reader - Peripheral Select."]
pub type P19_R = crate::BitReader;
#[doc = "Field `P19` writer - Peripheral Select."]
pub type P19_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P20` reader - Peripheral Select."]
pub type P20_R = crate::BitReader;
#[doc = "Field `P20` writer - Peripheral Select."]
pub type P20_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P21` reader - Peripheral Select."]
pub type P21_R = crate::BitReader;
#[doc = "Field `P21` writer - Peripheral Select."]
pub type P21_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P22` reader - Peripheral Select."]
pub type P22_R = crate::BitReader;
#[doc = "Field `P22` writer - Peripheral Select."]
pub type P22_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P23` reader - Peripheral Select."]
pub type P23_R = crate::BitReader;
#[doc = "Field `P23` writer - Peripheral Select."]
pub type P23_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P24` reader - Peripheral Select."]
pub type P24_R = crate::BitReader;
#[doc = "Field `P24` writer - Peripheral Select."]
pub type P24_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P25` reader - Peripheral Select."]
pub type P25_R = crate::BitReader;
#[doc = "Field `P25` writer - Peripheral Select."]
pub type P25_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P26` reader - Peripheral Select."]
pub type P26_R = crate::BitReader;
#[doc = "Field `P26` writer - Peripheral Select."]
pub type P26_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P27` reader - Peripheral Select."]
pub type P27_R = crate::BitReader;
#[doc = "Field `P27` writer - Peripheral Select."]
pub type P27_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P28` reader - Peripheral Select."]
pub type P28_R = crate::BitReader;
#[doc = "Field `P28` writer - Peripheral Select."]
pub type P28_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P29` reader - Peripheral Select."]
pub type P29_R = crate::BitReader;
#[doc = "Field `P29` writer - Peripheral Select."]
pub type P29_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P30` reader - Peripheral Select."]
pub type P30_R = crate::BitReader;
#[doc = "Field `P30` writer - Peripheral Select."]
pub type P30_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `P31` reader - Peripheral Select."]
pub type P31_R = crate::BitReader;
#[doc = "Field `P31` writer - Peripheral Select."]
pub type P31_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl R {
    #[doc = "Bit 0 - Peripheral Select."]
    #[inline(always)]
    pub fn p0(&self) -> P0_R {
        P0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Peripheral Select."]
    #[inline(always)]
    pub fn p1(&self) -> P1_R {
        P1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Peripheral Select."]
    #[inline(always)]
    pub fn p2(&self) -> P2_R {
        P2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Peripheral Select."]
    #[inline(always)]
    pub fn p3(&self) -> P3_R {
        P3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Peripheral Select."]
    #[inline(always)]
    pub fn p4(&self) -> P4_R {
        P4_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Peripheral Select."]
    #[inline(always)]
    pub fn p5(&self) -> P5_R {
        P5_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Peripheral Select."]
    #[inline(always)]
    pub fn p6(&self) -> P6_R {
        P6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Peripheral Select."]
    #[inline(always)]
    pub fn p7(&self) -> P7_R {
        P7_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Peripheral Select."]
    #[inline(always)]
    pub fn p8(&self) -> P8_R {
        P8_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Peripheral Select."]
    #[inline(always)]
    pub fn p9(&self) -> P9_R {
        P9_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Peripheral Select."]
    #[inline(always)]
    pub fn p10(&self) -> P10_R {
        P10_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Peripheral Select."]
    #[inline(always)]
    pub fn p11(&self) -> P11_R {
        P11_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Peripheral Select."]
    #[inline(always)]
    pub fn p12(&self) -> P12_R {
        P12_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Peripheral Select."]
    #[inline(always)]
    pub fn p13(&self) -> P13_R {
        P13_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Peripheral Select."]
    #[inline(always)]
    pub fn p14(&self) -> P14_R {
        P14_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Peripheral Select."]
    #[inline(always)]
    pub fn p15(&self) -> P15_R {
        P15_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Peripheral Select."]
    #[inline(always)]
    pub fn p16(&self) -> P16_R {
        P16_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Peripheral Select."]
    #[inline(always)]
    pub fn p17(&self) -> P17_R {
        P17_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Peripheral Select."]
    #[inline(always)]
    pub fn p18(&self) -> P18_R {
        P18_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Peripheral Select."]
    #[inline(always)]
    pub fn p19(&self) -> P19_R {
        P19_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Peripheral Select."]
    #[inline(always)]
    pub fn p20(&self) -> P20_R {
        P20_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Peripheral Select."]
    #[inline(always)]
    pub fn p21(&self) -> P21_R {
        P21_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Peripheral Select."]
    #[inline(always)]
    pub fn p22(&self) -> P22_R {
        P22_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Peripheral Select."]
    #[inline(always)]
    pub fn p23(&self) -> P23_R {
        P23_R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Peripheral Select."]
    #[inline(always)]
    pub fn p24(&self) -> P24_R {
        P24_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Peripheral Select."]
    #[inline(always)]
    pub fn p25(&self) -> P25_R {
        P25_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Peripheral Select."]
    #[inline(always)]
    pub fn p26(&self) -> P26_R {
        P26_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Peripheral Select."]
    #[inline(always)]
    pub fn p27(&self) -> P27_R {
        P27_R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - Peripheral Select."]
    #[inline(always)]
    pub fn p28(&self) -> P28_R {
        P28_R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Peripheral Select."]
    #[inline(always)]
    pub fn p29(&self) -> P29_R {
        P29_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Peripheral Select."]
    #[inline(always)]
    pub fn p30(&self) -> P30_R {
        P30_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - Peripheral Select."]
    #[inline(always)]
    pub fn p31(&self) -> P31_R {
        P31_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p0(&mut self) -> P0_W<ABCDSR_SPEC, 0> {
        P0_W::new(self)
    }
    #[doc = "Bit 1 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p1(&mut self) -> P1_W<ABCDSR_SPEC, 1> {
        P1_W::new(self)
    }
    #[doc = "Bit 2 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p2(&mut self) -> P2_W<ABCDSR_SPEC, 2> {
        P2_W::new(self)
    }
    #[doc = "Bit 3 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p3(&mut self) -> P3_W<ABCDSR_SPEC, 3> {
        P3_W::new(self)
    }
    #[doc = "Bit 4 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p4(&mut self) -> P4_W<ABCDSR_SPEC, 4> {
        P4_W::new(self)
    }
    #[doc = "Bit 5 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p5(&mut self) -> P5_W<ABCDSR_SPEC, 5> {
        P5_W::new(self)
    }
    #[doc = "Bit 6 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p6(&mut self) -> P6_W<ABCDSR_SPEC, 6> {
        P6_W::new(self)
    }
    #[doc = "Bit 7 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p7(&mut self) -> P7_W<ABCDSR_SPEC, 7> {
        P7_W::new(self)
    }
    #[doc = "Bit 8 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p8(&mut self) -> P8_W<ABCDSR_SPEC, 8> {
        P8_W::new(self)
    }
    #[doc = "Bit 9 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p9(&mut self) -> P9_W<ABCDSR_SPEC, 9> {
        P9_W::new(self)
    }
    #[doc = "Bit 10 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p10(&mut self) -> P10_W<ABCDSR_SPEC, 10> {
        P10_W::new(self)
    }
    #[doc = "Bit 11 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p11(&mut self) -> P11_W<ABCDSR_SPEC, 11> {
        P11_W::new(self)
    }
    #[doc = "Bit 12 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p12(&mut self) -> P12_W<ABCDSR_SPEC, 12> {
        P12_W::new(self)
    }
    #[doc = "Bit 13 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p13(&mut self) -> P13_W<ABCDSR_SPEC, 13> {
        P13_W::new(self)
    }
    #[doc = "Bit 14 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p14(&mut self) -> P14_W<ABCDSR_SPEC, 14> {
        P14_W::new(self)
    }
    #[doc = "Bit 15 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p15(&mut self) -> P15_W<ABCDSR_SPEC, 15> {
        P15_W::new(self)
    }
    #[doc = "Bit 16 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p16(&mut self) -> P16_W<ABCDSR_SPEC, 16> {
        P16_W::new(self)
    }
    #[doc = "Bit 17 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p17(&mut self) -> P17_W<ABCDSR_SPEC, 17> {
        P17_W::new(self)
    }
    #[doc = "Bit 18 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p18(&mut self) -> P18_W<ABCDSR_SPEC, 18> {
        P18_W::new(self)
    }
    #[doc = "Bit 19 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p19(&mut self) -> P19_W<ABCDSR_SPEC, 19> {
        P19_W::new(self)
    }
    #[doc = "Bit 20 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p20(&mut self) -> P20_W<ABCDSR_SPEC, 20> {
        P20_W::new(self)
    }
    #[doc = "Bit 21 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p21(&mut self) -> P21_W<ABCDSR_SPEC, 21> {
        P21_W::new(self)
    }
    #[doc = "Bit 22 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p22(&mut self) -> P22_W<ABCDSR_SPEC, 22> {
        P22_W::new(self)
    }
    #[doc = "Bit 23 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p23(&mut self) -> P23_W<ABCDSR_SPEC, 23> {
        P23_W::new(self)
    }
    #[doc = "Bit 24 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p24(&mut self) -> P24_W<ABCDSR_SPEC, 24> {
        P24_W::new(self)
    }
    #[doc = "Bit 25 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p25(&mut self) -> P25_W<ABCDSR_SPEC, 25> {
        P25_W::new(self)
    }
    #[doc = "Bit 26 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p26(&mut self) -> P26_W<ABCDSR_SPEC, 26> {
        P26_W::new(self)
    }
    #[doc = "Bit 27 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p27(&mut self) -> P27_W<ABCDSR_SPEC, 27> {
        P27_W::new(self)
    }
    #[doc = "Bit 28 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p28(&mut self) -> P28_W<ABCDSR_SPEC, 28> {
        P28_W::new(self)
    }
    #[doc = "Bit 29 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p29(&mut self) -> P29_W<ABCDSR_SPEC, 29> {
        P29_W::new(self)
    }
    #[doc = "Bit 30 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p30(&mut self) -> P30_W<ABCDSR_SPEC, 30> {
        P30_W::new(self)
    }
    #[doc = "Bit 31 - Peripheral Select."]
    #[inline(always)]
    #[must_use]
    pub fn p31(&mut self) -> P31_W<ABCDSR_SPEC, 31> {
        P31_W::new(self)
    }
    #[doc = r" Writes raw bits to the register."]
    #[doc = r""]
    #[doc = r" # Safety"]
    #[doc = r""]
    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.bits = bits;
        self
    }
}
#[doc = "Peripheral Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`abcdsr::R`](R).  You can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`abcdsr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ABCDSR_SPEC;
impl crate::RegisterSpec for ABCDSR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`abcdsr::R`](R) reader structure"]
impl crate::Readable for ABCDSR_SPEC {}
#[doc = "`write(|w| ..)` method takes [`abcdsr::W`](W) writer structure"]
impl crate::Writable for ABCDSR_SPEC {
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}