efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `DCDCLNVCTRL` reader
pub type R = crate::R<DCDCLNVCTRLrs>;
///Register `DCDCLNVCTRL` writer
pub type W = crate::W<DCDCLNVCTRLrs>;
///Field `LNATT` reader - Low Noise Mode Feedback Attenuation
pub type LnattR = crate::BitReader;
///Field `LNATT` writer - Low Noise Mode Feedback Attenuation
pub type LnattW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `LNVREF` reader - Low Noise Mode VREF Trim
pub type LnvrefR = crate::FieldReader;
///Field `LNVREF` writer - Low Noise Mode VREF Trim
pub type LnvrefW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
impl R {
    ///Bit 1 - Low Noise Mode Feedback Attenuation
    #[inline(always)]
    pub fn lnatt(&self) -> LnattR {
        LnattR::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bits 8:14 - Low Noise Mode VREF Trim
    #[inline(always)]
    pub fn lnvref(&self) -> LnvrefR {
        LnvrefR::new(((self.bits >> 8) & 0x7f) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("DCDCLNVCTRL")
            .field("lnatt", &self.lnatt())
            .field("lnvref", &self.lnvref())
            .finish()
    }
}
impl W {
    ///Bit 1 - Low Noise Mode Feedback Attenuation
    #[inline(always)]
    pub fn lnatt(&mut self) -> LnattW<'_, DCDCLNVCTRLrs> {
        LnattW::new(self, 1)
    }
    ///Bits 8:14 - Low Noise Mode VREF Trim
    #[inline(always)]
    pub fn lnvref(&mut self) -> LnvrefW<'_, DCDCLNVCTRLrs> {
        LnvrefW::new(self, 8)
    }
}
///DCDC Low Noise Voltage Register
///
///You can [`read`](crate::Reg::read) this register and get [`dcdclnvctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcdclnvctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct DCDCLNVCTRLrs;
impl crate::RegisterSpec for DCDCLNVCTRLrs {
    type Ux = u32;
}
///`read()` method returns [`dcdclnvctrl::R`](R) reader structure
impl crate::Readable for DCDCLNVCTRLrs {}
///`write(|w| ..)` method takes [`dcdclnvctrl::W`](W) writer structure
impl crate::Writable for DCDCLNVCTRLrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets DCDCLNVCTRL to value 0x7100
impl crate::Resettable for DCDCLNVCTRLrs {
    const RESET_VALUE: u32 = 0x7100;
}