pub type R = crate::R<DCDCLNFREQCTRLrs>;
pub type W = crate::W<DCDCLNFREQCTRLrs>;
pub type RcobandR = crate::FieldReader;
pub type RcobandW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type RcotrimR = crate::FieldReader;
pub type RcotrimW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
impl R {
#[inline(always)]
pub fn rcoband(&self) -> RcobandR {
RcobandR::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn rcotrim(&self) -> RcotrimR {
RcotrimR::new(((self.bits >> 24) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DCDCLNFREQCTRL")
.field("rcoband", &self.rcoband())
.field("rcotrim", &self.rcotrim())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rcoband(&mut self) -> RcobandW<'_, DCDCLNFREQCTRLrs> {
RcobandW::new(self, 0)
}
#[inline(always)]
pub fn rcotrim(&mut self) -> RcotrimW<'_, DCDCLNFREQCTRLrs> {
RcotrimW::new(self, 24)
}
}
pub struct DCDCLNFREQCTRLrs;
impl crate::RegisterSpec for DCDCLNFREQCTRLrs {
type Ux = u32;
}
impl crate::Readable for DCDCLNFREQCTRLrs {}
impl crate::Writable for DCDCLNFREQCTRLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DCDCLNFREQCTRLrs {
const RESET_VALUE: u32 = 0x1000_0000;
}