pub type R = crate::R<BSRrs>;
pub type OVRUDR_R = crate::BitReader;
pub type MUTEDET_R = crate::BitReader;
pub type WCKCFG_R = crate::BitReader;
pub type FREQ_R = crate::BitReader;
pub type CNRDY_R = crate::BitReader;
pub type AFSDET_R = crate::BitReader;
pub type LFSDET_R = crate::BitReader;
pub type FLVL_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ovrudr(&self) -> OVRUDR_R {
OVRUDR_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn mutedet(&self) -> MUTEDET_R {
MUTEDET_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wckcfg(&self) -> WCKCFG_R {
WCKCFG_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn freq(&self) -> FREQ_R {
FREQ_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cnrdy(&self) -> CNRDY_R {
CNRDY_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn afsdet(&self) -> AFSDET_R {
AFSDET_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn lfsdet(&self) -> LFSDET_R {
LFSDET_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn flvl(&self) -> FLVL_R {
FLVL_R::new(((self.bits >> 16) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BSR")
.field("ovrudr", &self.ovrudr())
.field("mutedet", &self.mutedet())
.field("wckcfg", &self.wckcfg())
.field("freq", &self.freq())
.field("cnrdy", &self.cnrdy())
.field("afsdet", &self.afsdet())
.field("lfsdet", &self.lfsdet())
.field("flvl", &self.flvl())
.finish()
}
}
pub struct BSRrs;
impl crate::RegisterSpec for BSRrs {
type Ux = u32;
}
impl crate::Readable for BSRrs {}
impl crate::Resettable for BSRrs {
const RESET_VALUE: u32 = 0x08;
}