pub type R = crate::R<PDCRNrs>;
pub type W = crate::W<PDCRNrs>;
pub type PDN0_R = crate::BitReader;
pub type PDN0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDN1_R = crate::BitReader;
pub type PDN1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDN2N5_R = crate::BitReader;
pub type PDN2N5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDN6_R = crate::BitReader;
pub type PDN6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDN8N11_R = crate::BitReader;
pub type PDN8N11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDN12_R = crate::BitReader;
pub type PDN12_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pdn0(&self) -> PDN0_R {
PDN0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pdn1(&self) -> PDN1_R {
PDN1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pdn2n5(&self) -> PDN2N5_R {
PDN2N5_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pdn6(&self) -> PDN6_R {
PDN6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pdn8n11(&self) -> PDN8N11_R {
PDN8N11_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn pdn12(&self) -> PDN12_R {
PDN12_R::new(((self.bits >> 12) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PDCRN")
.field("pdn0", &self.pdn0())
.field("pdn1", &self.pdn1())
.field("pdn2n5", &self.pdn2n5())
.field("pdn6", &self.pdn6())
.field("pdn8n11", &self.pdn8n11())
.field("pdn12", &self.pdn12())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pdn0(&mut self) -> PDN0_W<PDCRNrs> {
PDN0_W::new(self, 0)
}
#[inline(always)]
pub fn pdn1(&mut self) -> PDN1_W<PDCRNrs> {
PDN1_W::new(self, 1)
}
#[inline(always)]
pub fn pdn2n5(&mut self) -> PDN2N5_W<PDCRNrs> {
PDN2N5_W::new(self, 2)
}
#[inline(always)]
pub fn pdn6(&mut self) -> PDN6_W<PDCRNrs> {
PDN6_W::new(self, 6)
}
#[inline(always)]
pub fn pdn8n11(&mut self) -> PDN8N11_W<PDCRNrs> {
PDN8N11_W::new(self, 8)
}
#[inline(always)]
pub fn pdn12(&mut self) -> PDN12_W<PDCRNrs> {
PDN12_W::new(self, 12)
}
}
pub struct PDCRNrs;
impl crate::RegisterSpec for PDCRNrs {
type Ux = u32;
}
impl crate::Readable for PDCRNrs {}
impl crate::Writable for PDCRNrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PDCRNrs {}