pub type R = crate::R<PUCRNrs>;
pub type W = crate::W<PUCRNrs>;
pub type PUN1_R = crate::BitReader;
pub type PUN1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PUN6_R = crate::BitReader;
pub type PUN6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PUN12_R = crate::BitReader;
pub type PUN12_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pun1(&self) -> PUN1_R {
PUN1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pun6(&self) -> PUN6_R {
PUN6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pun12(&self) -> PUN12_R {
PUN12_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("PUCRN")
.field("pun1", &self.pun1())
.field("pun6", &self.pun6())
.field("pun12", &self.pun12())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pun1(&mut self) -> PUN1_W<PUCRNrs> {
PUN1_W::new(self, 1)
}
#[inline(always)]
pub fn pun6(&mut self) -> PUN6_W<PUCRNrs> {
PUN6_W::new(self, 6)
}
#[inline(always)]
pub fn pun12(&mut self) -> PUN12_W<PUCRNrs> {
PUN12_W::new(self, 12)
}
}
pub struct PUCRNrs;
impl crate::RegisterSpec for PUCRNrs {
type Ux = u32;
}
impl crate::Readable for PUCRNrs {}
impl crate::Writable for PUCRNrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PUCRNrs {}