#[doc = "Register `P3SEL` reader"]
pub type R = crate::R<P3selSpec>;
#[doc = "Register `P3SEL` writer"]
pub type W = crate::W<P3selSpec>;
#[doc = "Field `P3SEL0` reader - P3SEL0"]
pub type P3sel0R = crate::BitReader;
#[doc = "Field `P3SEL0` writer - P3SEL0"]
pub type P3sel0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL1` reader - P3SEL1"]
pub type P3sel1R = crate::BitReader;
#[doc = "Field `P3SEL1` writer - P3SEL1"]
pub type P3sel1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL2` reader - P3SEL2"]
pub type P3sel2R = crate::BitReader;
#[doc = "Field `P3SEL2` writer - P3SEL2"]
pub type P3sel2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL3` reader - P3SEL3"]
pub type P3sel3R = crate::BitReader;
#[doc = "Field `P3SEL3` writer - P3SEL3"]
pub type P3sel3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL4` reader - P3SEL4"]
pub type P3sel4R = crate::BitReader;
#[doc = "Field `P3SEL4` writer - P3SEL4"]
pub type P3sel4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL5` reader - P3SEL5"]
pub type P3sel5R = crate::BitReader;
#[doc = "Field `P3SEL5` writer - P3SEL5"]
pub type P3sel5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL6` reader - P3SEL6"]
pub type P3sel6R = crate::BitReader;
#[doc = "Field `P3SEL6` writer - P3SEL6"]
pub type P3sel6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P3SEL7` reader - P3SEL7"]
pub type P3sel7R = crate::BitReader;
#[doc = "Field `P3SEL7` writer - P3SEL7"]
pub type P3sel7W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - P3SEL0"]
#[inline(always)]
pub fn p3sel0(&self) -> P3sel0R {
P3sel0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - P3SEL1"]
#[inline(always)]
pub fn p3sel1(&self) -> P3sel1R {
P3sel1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - P3SEL2"]
#[inline(always)]
pub fn p3sel2(&self) -> P3sel2R {
P3sel2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - P3SEL3"]
#[inline(always)]
pub fn p3sel3(&self) -> P3sel3R {
P3sel3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - P3SEL4"]
#[inline(always)]
pub fn p3sel4(&self) -> P3sel4R {
P3sel4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - P3SEL5"]
#[inline(always)]
pub fn p3sel5(&self) -> P3sel5R {
P3sel5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - P3SEL6"]
#[inline(always)]
pub fn p3sel6(&self) -> P3sel6R {
P3sel6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - P3SEL7"]
#[inline(always)]
pub fn p3sel7(&self) -> P3sel7R {
P3sel7R::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - P3SEL0"]
#[inline(always)]
pub fn p3sel0(&mut self) -> P3sel0W<'_, P3selSpec> {
P3sel0W::new(self, 0)
}
#[doc = "Bit 1 - P3SEL1"]
#[inline(always)]
pub fn p3sel1(&mut self) -> P3sel1W<'_, P3selSpec> {
P3sel1W::new(self, 1)
}
#[doc = "Bit 2 - P3SEL2"]
#[inline(always)]
pub fn p3sel2(&mut self) -> P3sel2W<'_, P3selSpec> {
P3sel2W::new(self, 2)
}
#[doc = "Bit 3 - P3SEL3"]
#[inline(always)]
pub fn p3sel3(&mut self) -> P3sel3W<'_, P3selSpec> {
P3sel3W::new(self, 3)
}
#[doc = "Bit 4 - P3SEL4"]
#[inline(always)]
pub fn p3sel4(&mut self) -> P3sel4W<'_, P3selSpec> {
P3sel4W::new(self, 4)
}
#[doc = "Bit 5 - P3SEL5"]
#[inline(always)]
pub fn p3sel5(&mut self) -> P3sel5W<'_, P3selSpec> {
P3sel5W::new(self, 5)
}
#[doc = "Bit 6 - P3SEL6"]
#[inline(always)]
pub fn p3sel6(&mut self) -> P3sel6W<'_, P3selSpec> {
P3sel6W::new(self, 6)
}
#[doc = "Bit 7 - P3SEL7"]
#[inline(always)]
pub fn p3sel7(&mut self) -> P3sel7W<'_, P3selSpec> {
P3sel7W::new(self, 7)
}
}
#[doc = "Port 3 Selection\n\nYou can [`read`](crate::Reg::read) this register and get [`p3sel::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p3sel::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct P3selSpec;
impl crate::RegisterSpec for P3selSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`p3sel::R`](R) reader structure"]
impl crate::Readable for P3selSpec {}
#[doc = "`write(|w| ..)` method takes [`p3sel::W`](W) writer structure"]
impl crate::Writable for P3selSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets P3SEL to value 0"]
impl crate::Resettable for P3selSpec {}