#[doc = "Register `P1DS` reader"]
pub type R = crate::R<P1dsSpec>;
#[doc = "Register `P1DS` writer"]
pub type W = crate::W<P1dsSpec>;
#[doc = "Field `P1DS0` reader - P1DS0"]
pub type P1ds0R = crate::BitReader;
#[doc = "Field `P1DS0` writer - P1DS0"]
pub type P1ds0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS1` reader - P1DS1"]
pub type P1ds1R = crate::BitReader;
#[doc = "Field `P1DS1` writer - P1DS1"]
pub type P1ds1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS2` reader - P1DS2"]
pub type P1ds2R = crate::BitReader;
#[doc = "Field `P1DS2` writer - P1DS2"]
pub type P1ds2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS3` reader - P1DS3"]
pub type P1ds3R = crate::BitReader;
#[doc = "Field `P1DS3` writer - P1DS3"]
pub type P1ds3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS4` reader - P1DS4"]
pub type P1ds4R = crate::BitReader;
#[doc = "Field `P1DS4` writer - P1DS4"]
pub type P1ds4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS5` reader - P1DS5"]
pub type P1ds5R = crate::BitReader;
#[doc = "Field `P1DS5` writer - P1DS5"]
pub type P1ds5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS6` reader - P1DS6"]
pub type P1ds6R = crate::BitReader;
#[doc = "Field `P1DS6` writer - P1DS6"]
pub type P1ds6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `P1DS7` reader - P1DS7"]
pub type P1ds7R = crate::BitReader;
#[doc = "Field `P1DS7` writer - P1DS7"]
pub type P1ds7W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - P1DS0"]
#[inline(always)]
pub fn p1ds0(&self) -> P1ds0R {
P1ds0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - P1DS1"]
#[inline(always)]
pub fn p1ds1(&self) -> P1ds1R {
P1ds1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - P1DS2"]
#[inline(always)]
pub fn p1ds2(&self) -> P1ds2R {
P1ds2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - P1DS3"]
#[inline(always)]
pub fn p1ds3(&self) -> P1ds3R {
P1ds3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - P1DS4"]
#[inline(always)]
pub fn p1ds4(&self) -> P1ds4R {
P1ds4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - P1DS5"]
#[inline(always)]
pub fn p1ds5(&self) -> P1ds5R {
P1ds5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - P1DS6"]
#[inline(always)]
pub fn p1ds6(&self) -> P1ds6R {
P1ds6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - P1DS7"]
#[inline(always)]
pub fn p1ds7(&self) -> P1ds7R {
P1ds7R::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - P1DS0"]
#[inline(always)]
pub fn p1ds0(&mut self) -> P1ds0W<'_, P1dsSpec> {
P1ds0W::new(self, 0)
}
#[doc = "Bit 1 - P1DS1"]
#[inline(always)]
pub fn p1ds1(&mut self) -> P1ds1W<'_, P1dsSpec> {
P1ds1W::new(self, 1)
}
#[doc = "Bit 2 - P1DS2"]
#[inline(always)]
pub fn p1ds2(&mut self) -> P1ds2W<'_, P1dsSpec> {
P1ds2W::new(self, 2)
}
#[doc = "Bit 3 - P1DS3"]
#[inline(always)]
pub fn p1ds3(&mut self) -> P1ds3W<'_, P1dsSpec> {
P1ds3W::new(self, 3)
}
#[doc = "Bit 4 - P1DS4"]
#[inline(always)]
pub fn p1ds4(&mut self) -> P1ds4W<'_, P1dsSpec> {
P1ds4W::new(self, 4)
}
#[doc = "Bit 5 - P1DS5"]
#[inline(always)]
pub fn p1ds5(&mut self) -> P1ds5W<'_, P1dsSpec> {
P1ds5W::new(self, 5)
}
#[doc = "Bit 6 - P1DS6"]
#[inline(always)]
pub fn p1ds6(&mut self) -> P1ds6W<'_, P1dsSpec> {
P1ds6W::new(self, 6)
}
#[doc = "Bit 7 - P1DS7"]
#[inline(always)]
pub fn p1ds7(&mut self) -> P1ds7W<'_, P1dsSpec> {
P1ds7W::new(self, 7)
}
}
#[doc = "Port 1 Drive Strenght\n\nYou can [`read`](crate::Reg::read) this register and get [`p1ds::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p1ds::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct P1dsSpec;
impl crate::RegisterSpec for P1dsSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`p1ds::R`](R) reader structure"]
impl crate::Readable for P1dsSpec {}
#[doc = "`write(|w| ..)` method takes [`p1ds::W`](W) writer structure"]
impl crate::Writable for P1dsSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets P1DS to value 0"]
impl crate::Resettable for P1dsSpec {}