#[doc = "Register `P5SEL` reader"]
pub type R = crate::R<P5selSpec>;
#[doc = "Register `P5SEL` writer"]
pub type W = crate::W<P5selSpec>;
#[doc = "Field `P5SEL0` reader - P5SEL0"]
pub type P5sel0R = crate::BitReader;
#[doc = "Field `P5SEL0` writer - P5SEL0"]
pub type P5sel0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL1` reader - P5SEL1"]
pub type P5sel1R = crate::BitReader;
#[doc = "Field `P5SEL1` writer - P5SEL1"]
pub type P5sel1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL2` reader - P5SEL2"]
pub type P5sel2R = crate::BitReader;
#[doc = "Field `P5SEL2` writer - P5SEL2"]
pub type P5sel2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL3` reader - P5SEL3"]
pub type P5sel3R = crate::BitReader;
#[doc = "Field `P5SEL3` writer - P5SEL3"]
pub type P5sel3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL4` reader - P5SEL4"]
pub type P5sel4R = crate::BitReader;
#[doc = "Field `P5SEL4` writer - P5SEL4"]
pub type P5sel4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL5` reader - P5SEL5"]
pub type P5sel5R = crate::BitReader;
#[doc = "Field `P5SEL5` writer - P5SEL5"]
pub type P5sel5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL6` reader - P5SEL6"]
pub type P5sel6R = crate::BitReader;
#[doc = "Field `P5SEL6` writer - P5SEL6"]
pub type P5sel6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P5SEL7` reader - P5SEL7"]
pub type P5sel7R = crate::BitReader;
#[doc = "Field `P5SEL7` writer - P5SEL7"]
pub type P5sel7W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - P5SEL0"]
#[inline(always)]
pub fn p5sel0(&self) -> P5sel0R {
P5sel0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - P5SEL1"]
#[inline(always)]
pub fn p5sel1(&self) -> P5sel1R {
P5sel1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - P5SEL2"]
#[inline(always)]
pub fn p5sel2(&self) -> P5sel2R {
P5sel2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - P5SEL3"]
#[inline(always)]
pub fn p5sel3(&self) -> P5sel3R {
P5sel3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - P5SEL4"]
#[inline(always)]
pub fn p5sel4(&self) -> P5sel4R {
P5sel4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - P5SEL5"]
#[inline(always)]
pub fn p5sel5(&self) -> P5sel5R {
P5sel5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - P5SEL6"]
#[inline(always)]
pub fn p5sel6(&self) -> P5sel6R {
P5sel6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - P5SEL7"]
#[inline(always)]
pub fn p5sel7(&self) -> P5sel7R {
P5sel7R::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - P5SEL0"]
#[inline(always)]
pub fn p5sel0(&mut self) -> P5sel0W<'_, P5selSpec> {
P5sel0W::new(self, 0)
}
#[doc = "Bit 1 - P5SEL1"]
#[inline(always)]
pub fn p5sel1(&mut self) -> P5sel1W<'_, P5selSpec> {
P5sel1W::new(self, 1)
}
#[doc = "Bit 2 - P5SEL2"]
#[inline(always)]
pub fn p5sel2(&mut self) -> P5sel2W<'_, P5selSpec> {
P5sel2W::new(self, 2)
}
#[doc = "Bit 3 - P5SEL3"]
#[inline(always)]
pub fn p5sel3(&mut self) -> P5sel3W<'_, P5selSpec> {
P5sel3W::new(self, 3)
}
#[doc = "Bit 4 - P5SEL4"]
#[inline(always)]
pub fn p5sel4(&mut self) -> P5sel4W<'_, P5selSpec> {
P5sel4W::new(self, 4)
}
#[doc = "Bit 5 - P5SEL5"]
#[inline(always)]
pub fn p5sel5(&mut self) -> P5sel5W<'_, P5selSpec> {
P5sel5W::new(self, 5)
}
#[doc = "Bit 6 - P5SEL6"]
#[inline(always)]
pub fn p5sel6(&mut self) -> P5sel6W<'_, P5selSpec> {
P5sel6W::new(self, 6)
}
#[doc = "Bit 7 - P5SEL7"]
#[inline(always)]
pub fn p5sel7(&mut self) -> P5sel7W<'_, P5selSpec> {
P5sel7W::new(self, 7)
}
}
#[doc = "Port 5 Selection\n\nYou can [`read`](crate::Reg::read) this register and get [`p5sel::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5sel::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct P5selSpec;
impl crate::RegisterSpec for P5selSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`p5sel::R`](R) reader structure"]
impl crate::Readable for P5selSpec {}
#[doc = "`write(|w| ..)` method takes [`p5sel::W`](W) writer structure"]
impl crate::Writable for P5selSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets P5SEL to value 0"]
impl crate::Resettable for P5selSpec {}