pub type R = crate::R<PDCRArs>;
pub type W = crate::W<PDCRArs>;
pub type PD0_R = crate::BitReader;
pub type PD0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD1_R = crate::BitReader;
pub type PD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD2_R = crate::BitReader;
pub type PD2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD3_R = crate::BitReader;
pub type PD3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD4_R = crate::BitReader;
pub type PD4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD5_R = crate::BitReader;
pub type PD5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD6_R = crate::BitReader;
pub type PD6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD7_R = crate::BitReader;
pub type PD7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD8_R = crate::BitReader;
pub type PD8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD9_R = crate::BitReader;
pub type PD9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD10_R = crate::BitReader;
pub type PD10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD11_R = crate::BitReader;
pub type PD11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD12_R = crate::BitReader;
pub type PD12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD13_R = crate::BitReader;
pub type PD13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD14_R = crate::BitReader;
pub type PD14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PD15_R = crate::BitReader;
pub type PD15_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pd0(&self) -> PD0_R {
PD0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pd1(&self) -> PD1_R {
PD1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pd2(&self) -> PD2_R {
PD2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pd3(&self) -> PD3_R {
PD3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pd4(&self) -> PD4_R {
PD4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pd5(&self) -> PD5_R {
PD5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pd6(&self) -> PD6_R {
PD6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pd7(&self) -> PD7_R {
PD7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn pd8(&self) -> PD8_R {
PD8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn pd9(&self) -> PD9_R {
PD9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn pd10(&self) -> PD10_R {
PD10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn pd11(&self) -> PD11_R {
PD11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn pd12(&self) -> PD12_R {
PD12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn pd13(&self) -> PD13_R {
PD13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn pd14(&self) -> PD14_R {
PD14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn pd15(&self) -> PD15_R {
PD15_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PDCRA")
.field("pd15", &self.pd15())
.field("pd14", &self.pd14())
.field("pd13", &self.pd13())
.field("pd12", &self.pd12())
.field("pd11", &self.pd11())
.field("pd10", &self.pd10())
.field("pd9", &self.pd9())
.field("pd8", &self.pd8())
.field("pd7", &self.pd7())
.field("pd6", &self.pd6())
.field("pd5", &self.pd5())
.field("pd4", &self.pd4())
.field("pd3", &self.pd3())
.field("pd2", &self.pd2())
.field("pd1", &self.pd1())
.field("pd0", &self.pd0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pd0(&mut self) -> PD0_W<PDCRArs> {
PD0_W::new(self, 0)
}
#[inline(always)]
pub fn pd1(&mut self) -> PD1_W<PDCRArs> {
PD1_W::new(self, 1)
}
#[inline(always)]
pub fn pd2(&mut self) -> PD2_W<PDCRArs> {
PD2_W::new(self, 2)
}
#[inline(always)]
pub fn pd3(&mut self) -> PD3_W<PDCRArs> {
PD3_W::new(self, 3)
}
#[inline(always)]
pub fn pd4(&mut self) -> PD4_W<PDCRArs> {
PD4_W::new(self, 4)
}
#[inline(always)]
pub fn pd5(&mut self) -> PD5_W<PDCRArs> {
PD5_W::new(self, 5)
}
#[inline(always)]
pub fn pd6(&mut self) -> PD6_W<PDCRArs> {
PD6_W::new(self, 6)
}
#[inline(always)]
pub fn pd7(&mut self) -> PD7_W<PDCRArs> {
PD7_W::new(self, 7)
}
#[inline(always)]
pub fn pd8(&mut self) -> PD8_W<PDCRArs> {
PD8_W::new(self, 8)
}
#[inline(always)]
pub fn pd9(&mut self) -> PD9_W<PDCRArs> {
PD9_W::new(self, 9)
}
#[inline(always)]
pub fn pd10(&mut self) -> PD10_W<PDCRArs> {
PD10_W::new(self, 10)
}
#[inline(always)]
pub fn pd11(&mut self) -> PD11_W<PDCRArs> {
PD11_W::new(self, 11)
}
#[inline(always)]
pub fn pd12(&mut self) -> PD12_W<PDCRArs> {
PD12_W::new(self, 12)
}
#[inline(always)]
pub fn pd13(&mut self) -> PD13_W<PDCRArs> {
PD13_W::new(self, 13)
}
#[inline(always)]
pub fn pd14(&mut self) -> PD14_W<PDCRArs> {
PD14_W::new(self, 14)
}
#[inline(always)]
pub fn pd15(&mut self) -> PD15_W<PDCRArs> {
PD15_W::new(self, 15)
}
}
pub struct PDCRArs;
impl crate::RegisterSpec for PDCRArs {
type Ux = u32;
}
impl crate::Readable for PDCRArs {}
impl crate::Writable for PDCRArs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PDCRArs {}