pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type RIEN_R = crate::BitReader;
pub type RIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WIEN_R = crate::BitReader;
pub type WIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OVFLIEN_R = crate::BitReader;
pub type OVFLIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UNFLIEN_R = crate::BitReader;
pub type UNFLIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SATIEN_R = crate::BitReader;
pub type SATIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DMAREN_R = crate::BitReader;
pub type DMAREN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DMAWEN_R = crate::BitReader;
pub type DMAWEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CLIPEN_R = crate::BitReader;
pub type CLIPEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RESET_R = crate::BitReader;
pub type RESET_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rien(&self) -> RIEN_R {
RIEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn wien(&self) -> WIEN_R {
WIEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ovflien(&self) -> OVFLIEN_R {
OVFLIEN_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn unflien(&self) -> UNFLIEN_R {
UNFLIEN_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn satien(&self) -> SATIEN_R {
SATIEN_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dmaren(&self) -> DMAREN_R {
DMAREN_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn dmawen(&self) -> DMAWEN_R {
DMAWEN_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn clipen(&self) -> CLIPEN_R {
CLIPEN_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn reset(&self) -> RESET_R {
RESET_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("rien", &self.rien())
.field("wien", &self.wien())
.field("ovflien", &self.ovflien())
.field("unflien", &self.unflien())
.field("satien", &self.satien())
.field("dmaren", &self.dmaren())
.field("dmawen", &self.dmawen())
.field("clipen", &self.clipen())
.field("reset", &self.reset())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rien(&mut self) -> RIEN_W<CRrs> {
RIEN_W::new(self, 0)
}
#[inline(always)]
pub fn wien(&mut self) -> WIEN_W<CRrs> {
WIEN_W::new(self, 1)
}
#[inline(always)]
pub fn ovflien(&mut self) -> OVFLIEN_W<CRrs> {
OVFLIEN_W::new(self, 2)
}
#[inline(always)]
pub fn unflien(&mut self) -> UNFLIEN_W<CRrs> {
UNFLIEN_W::new(self, 3)
}
#[inline(always)]
pub fn satien(&mut self) -> SATIEN_W<CRrs> {
SATIEN_W::new(self, 4)
}
#[inline(always)]
pub fn dmaren(&mut self) -> DMAREN_W<CRrs> {
DMAREN_W::new(self, 8)
}
#[inline(always)]
pub fn dmawen(&mut self) -> DMAWEN_W<CRrs> {
DMAWEN_W::new(self, 9)
}
#[inline(always)]
pub fn clipen(&mut self) -> CLIPEN_W<CRrs> {
CLIPEN_W::new(self, 15)
}
#[inline(always)]
pub fn reset(&mut self) -> RESET_W<CRrs> {
RESET_W::new(self, 16)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}