pub type R = crate::R<CALFACT2rs>;
pub type W = crate::W<CALFACT2rs>;
pub type LINCALFACT_R = crate::FieldReader<u32>;
pub type LINCALFACT_W<'a, REG> = crate::FieldWriter<'a, REG, 30, u32, crate::Safe>;
impl R {
#[inline(always)]
pub fn lincalfact(&self) -> LINCALFACT_R {
LINCALFACT_R::new(self.bits & 0x3fff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CALFACT2").field("lincalfact", &self.lincalfact()).finish()
}
}
impl W {
#[inline(always)]
pub fn lincalfact(&mut self) -> LINCALFACT_W<CALFACT2rs> {
LINCALFACT_W::new(self, 0)
}
}
pub struct CALFACT2rs;
impl crate::RegisterSpec for CALFACT2rs {
type Ux = u32;
}
impl crate::Readable for CALFACT2rs {}
impl crate::Writable for CALFACT2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CALFACT2rs {}