#[doc = "Register `IF` reader"]
pub struct R(crate::R<IF_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<IF_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<IF_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<IF_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `ERASE` reader - Erase Done Interrupt Read Flag"]
pub type ERASE_R = crate::BitReader<bool>;
#[doc = "Field `WRITE` reader - Write Done Interrupt Read Flag"]
pub type WRITE_R = crate::BitReader<bool>;
#[doc = "Field `CHOF` reader - Cache Hits Overflow Interrupt Flag"]
pub type CHOF_R = crate::BitReader<bool>;
#[doc = "Field `CMOF` reader - Cache Misses Overflow Interrupt Flag"]
pub type CMOF_R = crate::BitReader<bool>;
impl R {
#[doc = "Bit 0 - Erase Done Interrupt Read Flag"]
#[inline(always)]
pub fn erase(&self) -> ERASE_R {
ERASE_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Write Done Interrupt Read Flag"]
#[inline(always)]
pub fn write(&self) -> WRITE_R {
WRITE_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Cache Hits Overflow Interrupt Flag"]
#[inline(always)]
pub fn chof(&self) -> CHOF_R {
CHOF_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Cache Misses Overflow Interrupt Flag"]
#[inline(always)]
pub fn cmof(&self) -> CMOF_R {
CMOF_R::new(((self.bits >> 3) & 1) != 0)
}
}
#[doc = "Interrupt Flag Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [if_](index.html) module"]
pub struct IF_SPEC;
impl crate::RegisterSpec for IF_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [if_::R](R) reader structure"]
impl crate::Readable for IF_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets IF to value 0"]
impl crate::Resettable for IF_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}