pub type R = crate::R<IFrs>;
pub type Comp0R = crate::BitReader;
pub type Comp1R = crate::BitReader;
pub type UfR = crate::BitReader;
pub type Rep0R = crate::BitReader;
pub type Rep1R = crate::BitReader;
impl R {
#[inline(always)]
pub fn comp0(&self) -> Comp0R {
Comp0R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn comp1(&self) -> Comp1R {
Comp1R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn uf(&self) -> UfR {
UfR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rep0(&self) -> Rep0R {
Rep0R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rep1(&self) -> Rep1R {
Rep1R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IF")
.field("comp0", &self.comp0())
.field("comp1", &self.comp1())
.field("uf", &self.uf())
.field("rep0", &self.rep0())
.field("rep1", &self.rep1())
.finish()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {}