pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type EraseR = crate::BitReader;
pub type EraseW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WriteR = crate::BitReader;
pub type WriteW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ChofR = crate::BitReader;
pub type ChofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CmofR = crate::BitReader;
pub type CmofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type PwrupfR = crate::BitReader;
pub type PwrupfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type IcacherrR = crate::BitReader;
pub type IcacherrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn erase(&self) -> EraseR {
EraseR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn write(&self) -> WriteR {
WriteR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn chof(&self) -> ChofR {
ChofR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmof(&self) -> CmofR {
CmofR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pwrupf(&self) -> PwrupfR {
PwrupfR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn icacherr(&self) -> IcacherrR {
IcacherrR::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("erase", &self.erase())
.field("write", &self.write())
.field("chof", &self.chof())
.field("cmof", &self.cmof())
.field("pwrupf", &self.pwrupf())
.field("icacherr", &self.icacherr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn erase(&mut self) -> EraseW<'_, IENrs> {
EraseW::new(self, 0)
}
#[inline(always)]
pub fn write(&mut self) -> WriteW<'_, IENrs> {
WriteW::new(self, 1)
}
#[inline(always)]
pub fn chof(&mut self) -> ChofW<'_, IENrs> {
ChofW::new(self, 2)
}
#[inline(always)]
pub fn cmof(&mut self) -> CmofW<'_, IENrs> {
CmofW::new(self, 3)
}
#[inline(always)]
pub fn pwrupf(&mut self) -> PwrupfW<'_, IENrs> {
PwrupfW::new(self, 4)
}
#[inline(always)]
pub fn icacherr(&mut self) -> IcacherrW<'_, IENrs> {
IcacherrW::new(self, 5)
}
}
pub struct IENrs;
impl crate::RegisterSpec for IENrs {
type Ux = u32;
}
impl crate::Readable for IENrs {}
impl crate::Writable for IENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IENrs {}