efm32pg1b_pac/emu/
dcdclnvctrl.rs1pub type R = crate::R<DCDCLNVCTRLrs>;
3pub type W = crate::W<DCDCLNVCTRLrs>;
5pub type LnattR = crate::BitReader;
7pub type LnattW<'a, REG> = crate::BitWriter<'a, REG>;
9pub type LnvrefR = crate::FieldReader;
11pub type LnvrefW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
13impl R {
14 #[inline(always)]
16 pub fn lnatt(&self) -> LnattR {
17 LnattR::new(((self.bits >> 1) & 1) != 0)
18 }
19 #[inline(always)]
21 pub fn lnvref(&self) -> LnvrefR {
22 LnvrefR::new(((self.bits >> 8) & 0x7f) as u8)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("DCDCLNVCTRL")
28 .field("lnatt", &self.lnatt())
29 .field("lnvref", &self.lnvref())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn lnatt(&mut self) -> LnattW<DCDCLNVCTRLrs> {
37 LnattW::new(self, 1)
38 }
39 #[inline(always)]
41 pub fn lnvref(&mut self) -> LnvrefW<DCDCLNVCTRLrs> {
42 LnvrefW::new(self, 8)
43 }
44}
45pub struct DCDCLNVCTRLrs;
49impl crate::RegisterSpec for DCDCLNVCTRLrs {
50 type Ux = u32;
51}
52impl crate::Readable for DCDCLNVCTRLrs {}
54impl crate::Writable for DCDCLNVCTRLrs {
56 type Safety = crate::Unsafe;
57 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
58 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
59}
60impl crate::Resettable for DCDCLNVCTRLrs {
62 const RESET_VALUE: u32 = 0x7100;
63}