pub type R = crate::R<PUCRrs>;
pub type W = crate::W<PUCRrs>;
pub type URCL_R = crate::BitReader;
pub type URCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UECL_R = crate::BitReader;
pub type UECL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type URDL_R = crate::BitReader;
pub type URDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UEDL_R = crate::BitReader;
pub type UEDL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn urcl(&self) -> URCL_R {
URCL_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn uecl(&self) -> UECL_R {
UECL_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn urdl(&self) -> URDL_R {
URDL_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn uedl(&self) -> UEDL_R {
UEDL_R::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PUCR")
.field("urcl", &self.urcl())
.field("uecl", &self.uecl())
.field("urdl", &self.urdl())
.field("uedl", &self.uedl())
.finish()
}
}
impl W {
#[inline(always)]
pub fn urcl(&mut self) -> URCL_W<PUCRrs> {
URCL_W::new(self, 0)
}
#[inline(always)]
pub fn uecl(&mut self) -> UECL_W<PUCRrs> {
UECL_W::new(self, 1)
}
#[inline(always)]
pub fn urdl(&mut self) -> URDL_W<PUCRrs> {
URDL_W::new(self, 2)
}
#[inline(always)]
pub fn uedl(&mut self) -> UEDL_W<PUCRrs> {
UEDL_W::new(self, 3)
}
}
pub struct PUCRrs;
impl crate::RegisterSpec for PUCRrs {
type Ux = u32;
}
impl crate::Readable for PUCRrs {}
impl crate::Writable for PUCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PUCRrs {}