pub type R = crate::R<CALIBrs>;
pub type W = crate::W<CALIBrs>;
pub type TENMS_R = crate::FieldReader<u32>;
pub type TENMS_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
pub type SKEW_R = crate::BitReader;
pub type SKEW_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NOREF_R = crate::BitReader;
pub type NOREF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tenms(&self) -> TENMS_R {
TENMS_R::new(self.bits & 0x00ff_ffff)
}
#[inline(always)]
pub fn skew(&self) -> SKEW_R {
SKEW_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn noref(&self) -> NOREF_R {
NOREF_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CALIB")
.field("tenms", &self.tenms())
.field("skew", &self.skew())
.field("noref", &self.noref())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tenms(&mut self) -> TENMS_W<CALIBrs> {
TENMS_W::new(self, 0)
}
#[inline(always)]
pub fn skew(&mut self) -> SKEW_W<CALIBrs> {
SKEW_W::new(self, 30)
}
#[inline(always)]
pub fn noref(&mut self) -> NOREF_W<CALIBrs> {
NOREF_W::new(self, 31)
}
}
pub struct CALIBrs;
impl crate::RegisterSpec for CALIBrs {
type Ux = u32;
}
impl crate::Readable for CALIBrs {}
impl crate::Writable for CALIBrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CALIBrs {}