pub type R = crate::R<PDCROrs>;
pub type W = crate::W<PDCROrs>;
pub type PDO0_R = crate::BitReader;
pub type PDO0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDO1_R = crate::BitReader;
pub type PDO1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDO2_R = crate::BitReader;
pub type PDO2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDO3_R = crate::BitReader;
pub type PDO3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDO4_R = crate::BitReader;
pub type PDO4_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pdo0(&self) -> PDO0_R {
PDO0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pdo1(&self) -> PDO1_R {
PDO1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pdo2(&self) -> PDO2_R {
PDO2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pdo3(&self) -> PDO3_R {
PDO3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pdo4(&self) -> PDO4_R {
PDO4_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PDCRO")
.field("pdo0", &self.pdo0())
.field("pdo1", &self.pdo1())
.field("pdo2", &self.pdo2())
.field("pdo3", &self.pdo3())
.field("pdo4", &self.pdo4())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pdo0(&mut self) -> PDO0_W<PDCROrs> {
PDO0_W::new(self, 0)
}
#[inline(always)]
pub fn pdo1(&mut self) -> PDO1_W<PDCROrs> {
PDO1_W::new(self, 1)
}
#[inline(always)]
pub fn pdo2(&mut self) -> PDO2_W<PDCROrs> {
PDO2_W::new(self, 2)
}
#[inline(always)]
pub fn pdo3(&mut self) -> PDO3_W<PDCROrs> {
PDO3_W::new(self, 3)
}
#[inline(always)]
pub fn pdo4(&mut self) -> PDO4_W<PDCROrs> {
PDO4_W::new(self, 4)
}
}
pub struct PDCROrs;
impl crate::RegisterSpec for PDCROrs {
type Ux = u32;
}
impl crate::Readable for PDCROrs {}
impl crate::Writable for PDCROrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PDCROrs {}