pub type R = crate::R<CALIBRrs>;
pub type W = crate::W<CALIBRrs>;
pub type DC_R = crate::FieldReader;
pub type DC_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type DCS_R = crate::BitReader;
pub type DCS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dc(&self) -> DC_R {
DC_R::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn dcs(&self) -> DCS_R {
DCS_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CALIBR")
.field("dcs", &self.dcs())
.field("dc", &self.dc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dc(&mut self) -> DC_W<CALIBRrs> {
DC_W::new(self, 0)
}
#[inline(always)]
pub fn dcs(&mut self) -> DCS_W<CALIBRrs> {
DCS_W::new(self, 7)
}
}
pub struct CALIBRrs;
impl crate::RegisterSpec for CALIBRrs {
type Ux = u32;
}
impl crate::Readable for CALIBRrs {}
impl crate::Writable for CALIBRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CALIBRrs {}