pub type R = crate::R<PDCRPrs>;
pub type W = crate::W<PDCRPrs>;
pub type PDP0P3_R = crate::BitReader;
pub type PDP0P3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDP4P7_R = crate::BitReader;
pub type PDP4P7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDP8P11_R = crate::BitReader;
pub type PDP8P11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDP12P15_R = crate::BitReader;
pub type PDP12P15_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pdp0p3(&self) -> PDP0P3_R {
PDP0P3_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pdp4p7(&self) -> PDP4P7_R {
PDP4P7_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pdp8p11(&self) -> PDP8P11_R {
PDP8P11_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn pdp12p15(&self) -> PDP12P15_R {
PDP12P15_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("PDCRP")
.field("pdp0p3", &self.pdp0p3())
.field("pdp4p7", &self.pdp4p7())
.field("pdp8p11", &self.pdp8p11())
.field("pdp12p15", &self.pdp12p15())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pdp0p3(&mut self) -> PDP0P3_W<PDCRPrs> {
PDP0P3_W::new(self, 0)
}
#[inline(always)]
pub fn pdp4p7(&mut self) -> PDP4P7_W<PDCRPrs> {
PDP4P7_W::new(self, 4)
}
#[inline(always)]
pub fn pdp8p11(&mut self) -> PDP8P11_W<PDCRPrs> {
PDP8P11_W::new(self, 8)
}
#[inline(always)]
pub fn pdp12p15(&mut self) -> PDP12P15_W<PDCRPrs> {
PDP12P15_W::new(self, 12)
}
}
pub struct PDCRPrs;
impl crate::RegisterSpec for PDCRPrs {
type Ux = u32;
}
impl crate::Readable for PDCRPrs {}
impl crate::Writable for PDCRPrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PDCRPrs {}