pub type R = crate::R<DCDCLPVCTRLrs>;
pub type W = crate::W<DCDCLPVCTRLrs>;
pub type LpattR = crate::BitReader;
pub type LpattW<'a, REG> = crate::BitWriter<'a, REG>;
pub type LpvrefR = crate::FieldReader;
pub type LpvrefW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn lpatt(&self) -> LpattR {
LpattR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn lpvref(&self) -> LpvrefR {
LpvrefR::new(((self.bits >> 1) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DCDCLPVCTRL")
.field("lpatt", &self.lpatt())
.field("lpvref", &self.lpvref())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lpatt(&mut self) -> LpattW<'_, DCDCLPVCTRLrs> {
LpattW::new(self, 0)
}
#[inline(always)]
pub fn lpvref(&mut self) -> LpvrefW<'_, DCDCLPVCTRLrs> {
LpvrefW::new(self, 1)
}
}
pub struct DCDCLPVCTRLrs;
impl crate::RegisterSpec for DCDCLPVCTRLrs {
type Ux = u32;
}
impl crate::Readable for DCDCLPVCTRLrs {}
impl crate::Writable for DCDCLPVCTRLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DCDCLPVCTRLrs {
const RESET_VALUE: u32 = 0x0168;
}