pub type R = crate::R<CRRCRrs>;
pub type W = crate::W<CRRCRrs>;
pub type HSI48ON_R = crate::BitReader;
pub type HSI48ON_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSI48RDY_R = crate::BitReader;
pub type HSI48CAL_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn hsi48on(&self) -> HSI48ON_R {
HSI48ON_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn hsi48rdy(&self) -> HSI48RDY_R {
HSI48RDY_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn hsi48cal(&self) -> HSI48CAL_R {
HSI48CAL_R::new(((self.bits >> 7) & 0x01ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRRCR")
.field("hsi48on", &self.hsi48on())
.field("hsi48rdy", &self.hsi48rdy())
.field("hsi48cal", &self.hsi48cal())
.finish()
}
}
impl W {
#[inline(always)]
pub fn hsi48on(&mut self) -> HSI48ON_W<CRRCRrs> {
HSI48ON_W::new(self, 0)
}
}
pub struct CRRCRrs;
impl crate::RegisterSpec for CRRCRrs {
type Ux = u32;
}
impl crate::Readable for CRRCRrs {}
impl crate::Writable for CRRCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRRCRrs {}