pub type R = crate::R<IFrs>;
pub type HfrcordyR = crate::BitReader;
pub type HfxordyR = crate::BitReader;
pub type LfrcordyR = crate::BitReader;
pub type LfxordyR = crate::BitReader;
pub type AuxhfrcordyR = crate::BitReader;
pub type CalrdyR = crate::BitReader;
pub type CalofR = crate::BitReader;
pub type HfxodiserrR = crate::BitReader;
pub type HfxoautoswR = crate::BitReader;
pub type HfxopeakdeterrR = crate::BitReader;
pub type HfxopeakdetrdyR = crate::BitReader;
pub type HfxoshuntoptrdyR = crate::BitReader;
pub type HfrcodisR = crate::BitReader;
pub type LftimeouterrR = crate::BitReader;
pub type CmuerrR = crate::BitReader;
impl R {
#[inline(always)]
pub fn hfrcordy(&self) -> HfrcordyR {
HfrcordyR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn hfxordy(&self) -> HfxordyR {
HfxordyR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn lfrcordy(&self) -> LfrcordyR {
LfrcordyR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn lfxordy(&self) -> LfxordyR {
LfxordyR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn auxhfrcordy(&self) -> AuxhfrcordyR {
AuxhfrcordyR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn calrdy(&self) -> CalrdyR {
CalrdyR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn calof(&self) -> CalofR {
CalofR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn hfxodiserr(&self) -> HfxodiserrR {
HfxodiserrR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn hfxoautosw(&self) -> HfxoautoswR {
HfxoautoswR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hfxopeakdeterr(&self) -> HfxopeakdeterrR {
HfxopeakdeterrR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn hfxopeakdetrdy(&self) -> HfxopeakdetrdyR {
HfxopeakdetrdyR::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn hfxoshuntoptrdy(&self) -> HfxoshuntoptrdyR {
HfxoshuntoptrdyR::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn hfrcodis(&self) -> HfrcodisR {
HfrcodisR::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn lftimeouterr(&self) -> LftimeouterrR {
LftimeouterrR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn cmuerr(&self) -> CmuerrR {
CmuerrR::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("hfrcordy", &self.hfrcordy())
.field("hfxordy", &self.hfxordy())
.field("lfrcordy", &self.lfrcordy())
.field("lfxordy", &self.lfxordy())
.field("auxhfrcordy", &self.auxhfrcordy())
.field("calrdy", &self.calrdy())
.field("calof", &self.calof())
.field("hfxodiserr", &self.hfxodiserr())
.field("hfxoautosw", &self.hfxoautosw())
.field("hfxopeakdeterr", &self.hfxopeakdeterr())
.field("hfxopeakdetrdy", &self.hfxopeakdetrdy())
.field("hfxoshuntoptrdy", &self.hfxoshuntoptrdy())
.field("hfrcodis", &self.hfrcodis())
.field("lftimeouterr", &self.lftimeouterr())
.field("cmuerr", &self.cmuerr())
.finish()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {
const RESET_VALUE: u32 = 0x01;
}