pub type R = crate::R<IFrs>;
pub type EraseR = crate::BitReader;
pub type WriteR = crate::BitReader;
pub type ChofR = crate::BitReader;
pub type CmofR = crate::BitReader;
pub type PwrupfR = crate::BitReader;
pub type IcacherrR = crate::BitReader;
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("IF")
.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()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {}