pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type JCEN_R = crate::BitReader;
pub type JCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IFTIE_R = crate::BitReader;
pub type IFTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IFNFIE_R = crate::BitReader;
pub type IFNFIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OFTIE_R = crate::BitReader;
pub type OFTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OFNEIE_R = crate::BitReader;
pub type OFNEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EOCIE_R = crate::BitReader;
pub type EOCIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HPDIE_R = crate::BitReader;
pub type HPDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IDMAEN_R = crate::BitReader;
pub type IDMAEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODMAEN_R = crate::BitReader;
pub type ODMAEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IFF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OFF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn jcen(&self) -> JCEN_R {
JCEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn iftie(&self) -> IFTIE_R {
IFTIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ifnfie(&self) -> IFNFIE_R {
IFNFIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn oftie(&self) -> OFTIE_R {
OFTIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ofneie(&self) -> OFNEIE_R {
OFNEIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn eocie(&self) -> EOCIE_R {
EOCIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn hpdie(&self) -> HPDIE_R {
HPDIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn idmaen(&self) -> IDMAEN_R {
IDMAEN_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn odmaen(&self) -> ODMAEN_R {
ODMAEN_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("CR")
.field("jcen", &self.jcen())
.field("iftie", &self.iftie())
.field("ifnfie", &self.ifnfie())
.field("oftie", &self.oftie())
.field("ofneie", &self.ofneie())
.field("eocie", &self.eocie())
.field("hpdie", &self.hpdie())
.field("idmaen", &self.idmaen())
.field("odmaen", &self.odmaen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn jcen(&mut self) -> JCEN_W<CRrs> {
JCEN_W::new(self, 0)
}
#[inline(always)]
pub fn iftie(&mut self) -> IFTIE_W<CRrs> {
IFTIE_W::new(self, 1)
}
#[inline(always)]
pub fn ifnfie(&mut self) -> IFNFIE_W<CRrs> {
IFNFIE_W::new(self, 2)
}
#[inline(always)]
pub fn oftie(&mut self) -> OFTIE_W<CRrs> {
OFTIE_W::new(self, 3)
}
#[inline(always)]
pub fn ofneie(&mut self) -> OFNEIE_W<CRrs> {
OFNEIE_W::new(self, 4)
}
#[inline(always)]
pub fn eocie(&mut self) -> EOCIE_W<CRrs> {
EOCIE_W::new(self, 5)
}
#[inline(always)]
pub fn hpdie(&mut self) -> HPDIE_W<CRrs> {
HPDIE_W::new(self, 6)
}
#[inline(always)]
pub fn idmaen(&mut self) -> IDMAEN_W<CRrs> {
IDMAEN_W::new(self, 11)
}
#[inline(always)]
pub fn odmaen(&mut self) -> ODMAEN_W<CRrs> {
ODMAEN_W::new(self, 12)
}
#[inline(always)]
pub fn iff(&mut self) -> IFF_W<CRrs> {
IFF_W::new(self, 13)
}
#[inline(always)]
pub fn off(&mut self) -> OFF_W<CRrs> {
OFF_W::new(self, 14)
}
}
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 {}