esp32c6_lp/pmu/
power_pd_lpperi_cntl.rs1#[doc = "Register `POWER_PD_LPPERI_CNTL` reader"]
2pub type R = crate::R<POWER_PD_LPPERI_CNTL_SPEC>;
3#[doc = "Register `POWER_PD_LPPERI_CNTL` writer"]
4pub type W = crate::W<POWER_PD_LPPERI_CNTL_SPEC>;
5#[doc = "Field `FORCE_LP_PERI_RESET` reader - need_des"]
6pub type FORCE_LP_PERI_RESET_R = crate::BitReader;
7#[doc = "Field `FORCE_LP_PERI_RESET` writer - need_des"]
8pub type FORCE_LP_PERI_RESET_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_LP_PERI_ISO` reader - need_des"]
10pub type FORCE_LP_PERI_ISO_R = crate::BitReader;
11#[doc = "Field `FORCE_LP_PERI_ISO` writer - need_des"]
12pub type FORCE_LP_PERI_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FORCE_LP_PERI_PU` reader - need_des"]
14pub type FORCE_LP_PERI_PU_R = crate::BitReader;
15#[doc = "Field `FORCE_LP_PERI_PU` writer - need_des"]
16pub type FORCE_LP_PERI_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `FORCE_LP_PERI_NO_RESET` reader - need_des"]
18pub type FORCE_LP_PERI_NO_RESET_R = crate::BitReader;
19#[doc = "Field `FORCE_LP_PERI_NO_RESET` writer - need_des"]
20pub type FORCE_LP_PERI_NO_RESET_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `FORCE_LP_PERI_NO_ISO` reader - need_des"]
22pub type FORCE_LP_PERI_NO_ISO_R = crate::BitReader;
23#[doc = "Field `FORCE_LP_PERI_NO_ISO` writer - need_des"]
24pub type FORCE_LP_PERI_NO_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `FORCE_LP_PERI_PD` reader - need_des"]
26pub type FORCE_LP_PERI_PD_R = crate::BitReader;
27#[doc = "Field `FORCE_LP_PERI_PD` writer - need_des"]
28pub type FORCE_LP_PERI_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30 #[doc = "Bit 0 - need_des"]
31 #[inline(always)]
32 pub fn force_lp_peri_reset(&self) -> FORCE_LP_PERI_RESET_R {
33 FORCE_LP_PERI_RESET_R::new((self.bits & 1) != 0)
34 }
35 #[doc = "Bit 1 - need_des"]
36 #[inline(always)]
37 pub fn force_lp_peri_iso(&self) -> FORCE_LP_PERI_ISO_R {
38 FORCE_LP_PERI_ISO_R::new(((self.bits >> 1) & 1) != 0)
39 }
40 #[doc = "Bit 2 - need_des"]
41 #[inline(always)]
42 pub fn force_lp_peri_pu(&self) -> FORCE_LP_PERI_PU_R {
43 FORCE_LP_PERI_PU_R::new(((self.bits >> 2) & 1) != 0)
44 }
45 #[doc = "Bit 3 - need_des"]
46 #[inline(always)]
47 pub fn force_lp_peri_no_reset(&self) -> FORCE_LP_PERI_NO_RESET_R {
48 FORCE_LP_PERI_NO_RESET_R::new(((self.bits >> 3) & 1) != 0)
49 }
50 #[doc = "Bit 4 - need_des"]
51 #[inline(always)]
52 pub fn force_lp_peri_no_iso(&self) -> FORCE_LP_PERI_NO_ISO_R {
53 FORCE_LP_PERI_NO_ISO_R::new(((self.bits >> 4) & 1) != 0)
54 }
55 #[doc = "Bit 5 - need_des"]
56 #[inline(always)]
57 pub fn force_lp_peri_pd(&self) -> FORCE_LP_PERI_PD_R {
58 FORCE_LP_PERI_PD_R::new(((self.bits >> 5) & 1) != 0)
59 }
60}
61#[cfg(feature = "impl-register-debug")]
62impl core::fmt::Debug for R {
63 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
64 f.debug_struct("POWER_PD_LPPERI_CNTL")
65 .field("force_lp_peri_reset", &self.force_lp_peri_reset())
66 .field("force_lp_peri_iso", &self.force_lp_peri_iso())
67 .field("force_lp_peri_pu", &self.force_lp_peri_pu())
68 .field("force_lp_peri_no_reset", &self.force_lp_peri_no_reset())
69 .field("force_lp_peri_no_iso", &self.force_lp_peri_no_iso())
70 .field("force_lp_peri_pd", &self.force_lp_peri_pd())
71 .finish()
72 }
73}
74impl W {
75 #[doc = "Bit 0 - need_des"]
76 #[inline(always)]
77 #[must_use]
78 pub fn force_lp_peri_reset(&mut self) -> FORCE_LP_PERI_RESET_W<POWER_PD_LPPERI_CNTL_SPEC> {
79 FORCE_LP_PERI_RESET_W::new(self, 0)
80 }
81 #[doc = "Bit 1 - need_des"]
82 #[inline(always)]
83 #[must_use]
84 pub fn force_lp_peri_iso(&mut self) -> FORCE_LP_PERI_ISO_W<POWER_PD_LPPERI_CNTL_SPEC> {
85 FORCE_LP_PERI_ISO_W::new(self, 1)
86 }
87 #[doc = "Bit 2 - need_des"]
88 #[inline(always)]
89 #[must_use]
90 pub fn force_lp_peri_pu(&mut self) -> FORCE_LP_PERI_PU_W<POWER_PD_LPPERI_CNTL_SPEC> {
91 FORCE_LP_PERI_PU_W::new(self, 2)
92 }
93 #[doc = "Bit 3 - need_des"]
94 #[inline(always)]
95 #[must_use]
96 pub fn force_lp_peri_no_reset(
97 &mut self,
98 ) -> FORCE_LP_PERI_NO_RESET_W<POWER_PD_LPPERI_CNTL_SPEC> {
99 FORCE_LP_PERI_NO_RESET_W::new(self, 3)
100 }
101 #[doc = "Bit 4 - need_des"]
102 #[inline(always)]
103 #[must_use]
104 pub fn force_lp_peri_no_iso(&mut self) -> FORCE_LP_PERI_NO_ISO_W<POWER_PD_LPPERI_CNTL_SPEC> {
105 FORCE_LP_PERI_NO_ISO_W::new(self, 4)
106 }
107 #[doc = "Bit 5 - need_des"]
108 #[inline(always)]
109 #[must_use]
110 pub fn force_lp_peri_pd(&mut self) -> FORCE_LP_PERI_PD_W<POWER_PD_LPPERI_CNTL_SPEC> {
111 FORCE_LP_PERI_PD_W::new(self, 5)
112 }
113}
114#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`power_pd_lpperi_cntl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`power_pd_lpperi_cntl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
115pub struct POWER_PD_LPPERI_CNTL_SPEC;
116impl crate::RegisterSpec for POWER_PD_LPPERI_CNTL_SPEC {
117 type Ux = u32;
118}
119#[doc = "`read()` method returns [`power_pd_lpperi_cntl::R`](R) reader structure"]
120impl crate::Readable for POWER_PD_LPPERI_CNTL_SPEC {}
121#[doc = "`write(|w| ..)` method takes [`power_pd_lpperi_cntl::W`](W) writer structure"]
122impl crate::Writable for POWER_PD_LPPERI_CNTL_SPEC {
123 type Safety = crate::Unsafe;
124 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
125 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
126}
127#[doc = "`reset()` method sets POWER_PD_LPPERI_CNTL to value 0x1c"]
128impl crate::Resettable for POWER_PD_LPPERI_CNTL_SPEC {
129 const RESET_VALUE: u32 = 0x1c;
130}