pub type R = crate::R<CALFACTrs>;
pub type W = crate::W<CALFACTrs>;
pub type CALFACT_R = crate::FieldReader;
pub type CALFACT_W<'a, REG> = crate::FieldWriter<'a, REG, 7, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn calfact(&self) -> CALFACT_R {
CALFACT_R::new((self.bits & 0x7f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CALFACT")
.field("calfact", &self.calfact())
.finish()
}
}
impl W {
#[inline(always)]
pub fn calfact(&mut self) -> CALFACT_W<CALFACTrs> {
CALFACT_W::new(self, 0)
}
}
pub struct CALFACTrs;
impl crate::RegisterSpec for CALFACTrs {
type Ux = u32;
}
impl crate::Readable for CALFACTrs {}
impl crate::Writable for CALFACTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CALFACTrs {}