pub type R = crate::R<PUCROrs>;
pub type W = crate::W<PUCROrs>;
pub type PUO0_R = crate::BitReader;
pub type PUO0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PUO1_R = crate::BitReader;
pub type PUO1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PUO4_R = crate::BitReader;
pub type PUO4_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn puo0(&self) -> PUO0_R {
PUO0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn puo1(&self) -> PUO1_R {
PUO1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn puo4(&self) -> PUO4_R {
PUO4_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("PUCRO")
.field("puo0", &self.puo0())
.field("puo1", &self.puo1())
.field("puo4", &self.puo4())
.finish()
}
}
impl W {
#[inline(always)]
pub fn puo0(&mut self) -> PUO0_W<PUCROrs> {
PUO0_W::new(self, 0)
}
#[inline(always)]
pub fn puo1(&mut self) -> PUO1_W<PUCROrs> {
PUO1_W::new(self, 1)
}
#[inline(always)]
pub fn puo4(&mut self) -> PUO4_W<PUCROrs> {
PUO4_W::new(self, 4)
}
}
pub struct PUCROrs;
impl crate::RegisterSpec for PUCROrs {
type Ux = u32;
}
impl crate::Readable for PUCROrs {}
impl crate::Writable for PUCROrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PUCROrs {}