pub type R = crate::R<STATUSrs>;
pub type HfrcoensR = crate::BitReader;
pub type HfrcordyR = crate::BitReader;
pub type HfxoensR = crate::BitReader;
pub type HfxordyR = crate::BitReader;
pub type AuxhfrcoensR = crate::BitReader;
pub type AuxhfrcordyR = crate::BitReader;
pub type LfrcoensR = crate::BitReader;
pub type LfrcordyR = crate::BitReader;
pub type LfxoensR = crate::BitReader;
pub type LfxordyR = crate::BitReader;
pub type CalrdyR = crate::BitReader;
pub type HfxoreqR = crate::BitReader;
pub type HfxopeakdetrdyR = crate::BitReader;
pub type HfxoshuntoptrdyR = crate::BitReader;
pub type HfxoamphighR = crate::BitReader;
pub type HfxoamplowR = crate::BitReader;
pub type HfxoregilowR = crate::BitReader;
impl R {
#[inline(always)]
pub fn hfrcoens(&self) -> HfrcoensR {
HfrcoensR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn hfrcordy(&self) -> HfrcordyR {
HfrcordyR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn hfxoens(&self) -> HfxoensR {
HfxoensR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn hfxordy(&self) -> HfxordyR {
HfxordyR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn auxhfrcoens(&self) -> AuxhfrcoensR {
AuxhfrcoensR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn auxhfrcordy(&self) -> AuxhfrcordyR {
AuxhfrcordyR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn lfrcoens(&self) -> LfrcoensR {
LfrcoensR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn lfrcordy(&self) -> LfrcordyR {
LfrcordyR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn lfxoens(&self) -> LfxoensR {
LfxoensR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn lfxordy(&self) -> LfxordyR {
LfxordyR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn calrdy(&self) -> CalrdyR {
CalrdyR::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn hfxoreq(&self) -> HfxoreqR {
HfxoreqR::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn hfxopeakdetrdy(&self) -> HfxopeakdetrdyR {
HfxopeakdetrdyR::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn hfxoshuntoptrdy(&self) -> HfxoshuntoptrdyR {
HfxoshuntoptrdyR::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn hfxoamphigh(&self) -> HfxoamphighR {
HfxoamphighR::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn hfxoamplow(&self) -> HfxoamplowR {
HfxoamplowR::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn hfxoregilow(&self) -> HfxoregilowR {
HfxoregilowR::new(((self.bits >> 26) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STATUS")
.field("hfrcoens", &self.hfrcoens())
.field("hfrcordy", &self.hfrcordy())
.field("hfxoens", &self.hfxoens())
.field("hfxordy", &self.hfxordy())
.field("auxhfrcoens", &self.auxhfrcoens())
.field("auxhfrcordy", &self.auxhfrcordy())
.field("lfrcoens", &self.lfrcoens())
.field("lfrcordy", &self.lfrcordy())
.field("lfxoens", &self.lfxoens())
.field("lfxordy", &self.lfxordy())
.field("calrdy", &self.calrdy())
.field("hfxoreq", &self.hfxoreq())
.field("hfxopeakdetrdy", &self.hfxopeakdetrdy())
.field("hfxoshuntoptrdy", &self.hfxoshuntoptrdy())
.field("hfxoamphigh", &self.hfxoamphigh())
.field("hfxoamplow", &self.hfxoamplow())
.field("hfxoregilow", &self.hfxoregilow())
.finish()
}
}
pub struct STATUSrs;
impl crate::RegisterSpec for STATUSrs {
type Ux = u32;
}
impl crate::Readable for STATUSrs {}
impl crate::Resettable for STATUSrs {
const RESET_VALUE: u32 = 0x0001_0003;
}