pub type R = crate::R<DCDCCLIMCTRLrs>;
pub type W = crate::W<DCDCCLIMCTRLrs>;
pub type ClimblankdlyR = crate::FieldReader;
pub type ClimblankdlyW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type ByplimenR = crate::BitReader;
pub type ByplimenW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn climblankdly(&self) -> ClimblankdlyR {
ClimblankdlyR::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn byplimen(&self) -> ByplimenR {
ByplimenR::new(((self.bits >> 13) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DCDCCLIMCTRL")
.field("climblankdly", &self.climblankdly())
.field("byplimen", &self.byplimen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn climblankdly(&mut self) -> ClimblankdlyW<'_, DCDCCLIMCTRLrs> {
ClimblankdlyW::new(self, 8)
}
#[inline(always)]
pub fn byplimen(&mut self) -> ByplimenW<'_, DCDCCLIMCTRLrs> {
ByplimenW::new(self, 13)
}
}
pub struct DCDCCLIMCTRLrs;
impl crate::RegisterSpec for DCDCCLIMCTRLrs {
type Ux = u32;
}
impl crate::Readable for DCDCCLIMCTRLrs {}
impl crate::Writable for DCDCCLIMCTRLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DCDCCLIMCTRLrs {
const RESET_VALUE: u32 = 0x2100;
}