esp32c6_lp/pmu/
hp_sleep_lp_dig_power.rs1#[doc = "Register `HP_SLEEP_LP_DIG_POWER` reader"]
2pub type R = crate::R<HP_SLEEP_LP_DIG_POWER_SPEC>;
3#[doc = "Register `HP_SLEEP_LP_DIG_POWER` writer"]
4pub type W = crate::W<HP_SLEEP_LP_DIG_POWER_SPEC>;
5#[doc = "Field `HP_SLEEP_LP_MEM_DSLP` reader - need_des"]
6pub type HP_SLEEP_LP_MEM_DSLP_R = crate::BitReader;
7#[doc = "Field `HP_SLEEP_LP_MEM_DSLP` writer - need_des"]
8pub type HP_SLEEP_LP_MEM_DSLP_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `HP_SLEEP_PD_LP_PERI_PD_EN` reader - need_des"]
10pub type HP_SLEEP_PD_LP_PERI_PD_EN_R = crate::BitReader;
11#[doc = "Field `HP_SLEEP_PD_LP_PERI_PD_EN` writer - need_des"]
12pub type HP_SLEEP_PD_LP_PERI_PD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 30 - need_des"]
15 #[inline(always)]
16 pub fn hp_sleep_lp_mem_dslp(&self) -> HP_SLEEP_LP_MEM_DSLP_R {
17 HP_SLEEP_LP_MEM_DSLP_R::new(((self.bits >> 30) & 1) != 0)
18 }
19 #[doc = "Bit 31 - need_des"]
20 #[inline(always)]
21 pub fn hp_sleep_pd_lp_peri_pd_en(&self) -> HP_SLEEP_PD_LP_PERI_PD_EN_R {
22 HP_SLEEP_PD_LP_PERI_PD_EN_R::new(((self.bits >> 31) & 1) != 0)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("HP_SLEEP_LP_DIG_POWER")
29 .field("hp_sleep_lp_mem_dslp", &self.hp_sleep_lp_mem_dslp())
30 .field(
31 "hp_sleep_pd_lp_peri_pd_en",
32 &self.hp_sleep_pd_lp_peri_pd_en(),
33 )
34 .finish()
35 }
36}
37impl W {
38 #[doc = "Bit 30 - need_des"]
39 #[inline(always)]
40 #[must_use]
41 pub fn hp_sleep_lp_mem_dslp(&mut self) -> HP_SLEEP_LP_MEM_DSLP_W<HP_SLEEP_LP_DIG_POWER_SPEC> {
42 HP_SLEEP_LP_MEM_DSLP_W::new(self, 30)
43 }
44 #[doc = "Bit 31 - need_des"]
45 #[inline(always)]
46 #[must_use]
47 pub fn hp_sleep_pd_lp_peri_pd_en(
48 &mut self,
49 ) -> HP_SLEEP_PD_LP_PERI_PD_EN_W<HP_SLEEP_LP_DIG_POWER_SPEC> {
50 HP_SLEEP_PD_LP_PERI_PD_EN_W::new(self, 31)
51 }
52}
53#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`hp_sleep_lp_dig_power::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hp_sleep_lp_dig_power::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
54pub struct HP_SLEEP_LP_DIG_POWER_SPEC;
55impl crate::RegisterSpec for HP_SLEEP_LP_DIG_POWER_SPEC {
56 type Ux = u32;
57}
58#[doc = "`read()` method returns [`hp_sleep_lp_dig_power::R`](R) reader structure"]
59impl crate::Readable for HP_SLEEP_LP_DIG_POWER_SPEC {}
60#[doc = "`write(|w| ..)` method takes [`hp_sleep_lp_dig_power::W`](W) writer structure"]
61impl crate::Writable for HP_SLEEP_LP_DIG_POWER_SPEC {
62 type Safety = crate::Unsafe;
63 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
64 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
65}
66#[doc = "`reset()` method sets HP_SLEEP_LP_DIG_POWER to value 0"]
67impl crate::Resettable for HP_SLEEP_LP_DIG_POWER_SPEC {
68 const RESET_VALUE: u32 = 0;
69}