pub type R = crate::R<IFrs>;
pub type DoneR = crate::FieldReader;
pub type ErrorR = crate::BitReader;
impl R {
#[inline(always)]
pub fn done(&self) -> DoneR {
DoneR::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn error(&self) -> ErrorR {
ErrorR::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IF")
.field("done", &self.done())
.field("error", &self.error())
.finish()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {}