#[doc = "Interrupt Status Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u32)]
pubenumISF_A{
#[doc = "0: Configured interrupt is not detected."]
_0=0,
#[doc = "1: Configured interrupt is detected. If the pin is configured to generate a DMA request, then the corresponding flag will be cleared automatically at the completion of the requested DMA transfer. Otherwise, the flag remains set until a logic 1 is written to the flag. If the pin is configured for a level sensitive interrupt and the pin remains asserted, then the flag is set again immediately after it is cleared."]
_1=1,
}
implFrom<ISF_A>foru32{
#[inline(always)]
fnfrom(variant: ISF_A)-> Self{
variantas_
}
}
#[doc = "Reader of field `ISF`"]
pubtypeISF_R=crate::R<u32,ISF_A>;
implISF_R{
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pubfnvariant(&self)-> crate::Variant<u32,ISF_A>{
usecrate::Variant::*;
matchself.bits{
0=>Val(ISF_A::_0),
1=>Val(ISF_A::_1),
i=>Res(i),
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pubfnis_0(&self)-> bool{
*self==ISF_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pubfnis_1(&self)-> bool{
*self==ISF_A::_1
}
}
#[doc = "Write proxy for field `ISF`"]
pubstructISF_W<'a>{
w: &'amutW,
}
impl<'a>ISF_W<'a>{
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pubfnvariant(self,variant: ISF_A)-> &'amutW{
unsafe{self.bits(variant.into())}
}
#[doc = "Configured interrupt is not detected."]
#[inline(always)]
pubfn_0(self)-> &'amutW{
self.variant(ISF_A::_0)
}
#[doc = "Configured interrupt is detected. If the pin is configured to generate a DMA request, then the corresponding flag will be cleared automatically at the completion of the requested DMA transfer. Otherwise, the flag remains set until a logic 1 is written to the flag. If the pin is configured for a level sensitive interrupt and the pin remains asserted, then the flag is set again immediately after it is cleared."]