esp32c2/apb_ctrl/
front_end_mem_pd.rs1#[doc = "Register `FRONT_END_MEM_PD` reader"]
2pub type R = crate::R<FRONT_END_MEM_PD_SPEC>;
3#[doc = "Register `FRONT_END_MEM_PD` writer"]
4pub type W = crate::W<FRONT_END_MEM_PD_SPEC>;
5#[doc = "Field `AGC_MEM_FORCE_PU` reader - reg_agc_mem_force_pu"]
6pub type AGC_MEM_FORCE_PU_R = crate::BitReader;
7#[doc = "Field `AGC_MEM_FORCE_PU` writer - reg_agc_mem_force_pu"]
8pub type AGC_MEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `AGC_MEM_FORCE_PD` reader - reg_agc_mem_force_pd"]
10pub type AGC_MEM_FORCE_PD_R = crate::BitReader;
11#[doc = "Field `AGC_MEM_FORCE_PD` writer - reg_agc_mem_force_pd"]
12pub type AGC_MEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `PBUS_MEM_FORCE_PU` reader - reg_pbus_mem_force_pu"]
14pub type PBUS_MEM_FORCE_PU_R = crate::BitReader;
15#[doc = "Field `PBUS_MEM_FORCE_PU` writer - reg_pbus_mem_force_pu"]
16pub type PBUS_MEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `PBUS_MEM_FORCE_PD` reader - reg_pbus_mem_force_pd"]
18pub type PBUS_MEM_FORCE_PD_R = crate::BitReader;
19#[doc = "Field `PBUS_MEM_FORCE_PD` writer - reg_pbus_mem_force_pd"]
20pub type PBUS_MEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `DC_MEM_FORCE_PU` reader - reg_dc_mem_force_pu"]
22pub type DC_MEM_FORCE_PU_R = crate::BitReader;
23#[doc = "Field `DC_MEM_FORCE_PU` writer - reg_dc_mem_force_pu"]
24pub type DC_MEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `DC_MEM_FORCE_PD` reader - reg_dc_mem_force_pd"]
26pub type DC_MEM_FORCE_PD_R = crate::BitReader;
27#[doc = "Field `DC_MEM_FORCE_PD` writer - reg_dc_mem_force_pd"]
28pub type DC_MEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `FREQ_MEM_FORCE_PU` reader - reg_freq_mem_force_pu"]
30pub type FREQ_MEM_FORCE_PU_R = crate::BitReader;
31#[doc = "Field `FREQ_MEM_FORCE_PU` writer - reg_freq_mem_force_pu"]
32pub type FREQ_MEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `FREQ_MEM_FORCE_PD` reader - reg_freq_mem_force_pd"]
34pub type FREQ_MEM_FORCE_PD_R = crate::BitReader;
35#[doc = "Field `FREQ_MEM_FORCE_PD` writer - reg_freq_mem_force_pd"]
36pub type FREQ_MEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
37impl R {
38 #[doc = "Bit 0 - reg_agc_mem_force_pu"]
39 #[inline(always)]
40 pub fn agc_mem_force_pu(&self) -> AGC_MEM_FORCE_PU_R {
41 AGC_MEM_FORCE_PU_R::new((self.bits & 1) != 0)
42 }
43 #[doc = "Bit 1 - reg_agc_mem_force_pd"]
44 #[inline(always)]
45 pub fn agc_mem_force_pd(&self) -> AGC_MEM_FORCE_PD_R {
46 AGC_MEM_FORCE_PD_R::new(((self.bits >> 1) & 1) != 0)
47 }
48 #[doc = "Bit 2 - reg_pbus_mem_force_pu"]
49 #[inline(always)]
50 pub fn pbus_mem_force_pu(&self) -> PBUS_MEM_FORCE_PU_R {
51 PBUS_MEM_FORCE_PU_R::new(((self.bits >> 2) & 1) != 0)
52 }
53 #[doc = "Bit 3 - reg_pbus_mem_force_pd"]
54 #[inline(always)]
55 pub fn pbus_mem_force_pd(&self) -> PBUS_MEM_FORCE_PD_R {
56 PBUS_MEM_FORCE_PD_R::new(((self.bits >> 3) & 1) != 0)
57 }
58 #[doc = "Bit 4 - reg_dc_mem_force_pu"]
59 #[inline(always)]
60 pub fn dc_mem_force_pu(&self) -> DC_MEM_FORCE_PU_R {
61 DC_MEM_FORCE_PU_R::new(((self.bits >> 4) & 1) != 0)
62 }
63 #[doc = "Bit 5 - reg_dc_mem_force_pd"]
64 #[inline(always)]
65 pub fn dc_mem_force_pd(&self) -> DC_MEM_FORCE_PD_R {
66 DC_MEM_FORCE_PD_R::new(((self.bits >> 5) & 1) != 0)
67 }
68 #[doc = "Bit 6 - reg_freq_mem_force_pu"]
69 #[inline(always)]
70 pub fn freq_mem_force_pu(&self) -> FREQ_MEM_FORCE_PU_R {
71 FREQ_MEM_FORCE_PU_R::new(((self.bits >> 6) & 1) != 0)
72 }
73 #[doc = "Bit 7 - reg_freq_mem_force_pd"]
74 #[inline(always)]
75 pub fn freq_mem_force_pd(&self) -> FREQ_MEM_FORCE_PD_R {
76 FREQ_MEM_FORCE_PD_R::new(((self.bits >> 7) & 1) != 0)
77 }
78}
79#[cfg(feature = "impl-register-debug")]
80impl core::fmt::Debug for R {
81 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
82 f.debug_struct("FRONT_END_MEM_PD")
83 .field("agc_mem_force_pu", &self.agc_mem_force_pu())
84 .field("agc_mem_force_pd", &self.agc_mem_force_pd())
85 .field("pbus_mem_force_pu", &self.pbus_mem_force_pu())
86 .field("pbus_mem_force_pd", &self.pbus_mem_force_pd())
87 .field("dc_mem_force_pu", &self.dc_mem_force_pu())
88 .field("dc_mem_force_pd", &self.dc_mem_force_pd())
89 .field("freq_mem_force_pu", &self.freq_mem_force_pu())
90 .field("freq_mem_force_pd", &self.freq_mem_force_pd())
91 .finish()
92 }
93}
94impl W {
95 #[doc = "Bit 0 - reg_agc_mem_force_pu"]
96 #[inline(always)]
97 pub fn agc_mem_force_pu(&mut self) -> AGC_MEM_FORCE_PU_W<FRONT_END_MEM_PD_SPEC> {
98 AGC_MEM_FORCE_PU_W::new(self, 0)
99 }
100 #[doc = "Bit 1 - reg_agc_mem_force_pd"]
101 #[inline(always)]
102 pub fn agc_mem_force_pd(&mut self) -> AGC_MEM_FORCE_PD_W<FRONT_END_MEM_PD_SPEC> {
103 AGC_MEM_FORCE_PD_W::new(self, 1)
104 }
105 #[doc = "Bit 2 - reg_pbus_mem_force_pu"]
106 #[inline(always)]
107 pub fn pbus_mem_force_pu(&mut self) -> PBUS_MEM_FORCE_PU_W<FRONT_END_MEM_PD_SPEC> {
108 PBUS_MEM_FORCE_PU_W::new(self, 2)
109 }
110 #[doc = "Bit 3 - reg_pbus_mem_force_pd"]
111 #[inline(always)]
112 pub fn pbus_mem_force_pd(&mut self) -> PBUS_MEM_FORCE_PD_W<FRONT_END_MEM_PD_SPEC> {
113 PBUS_MEM_FORCE_PD_W::new(self, 3)
114 }
115 #[doc = "Bit 4 - reg_dc_mem_force_pu"]
116 #[inline(always)]
117 pub fn dc_mem_force_pu(&mut self) -> DC_MEM_FORCE_PU_W<FRONT_END_MEM_PD_SPEC> {
118 DC_MEM_FORCE_PU_W::new(self, 4)
119 }
120 #[doc = "Bit 5 - reg_dc_mem_force_pd"]
121 #[inline(always)]
122 pub fn dc_mem_force_pd(&mut self) -> DC_MEM_FORCE_PD_W<FRONT_END_MEM_PD_SPEC> {
123 DC_MEM_FORCE_PD_W::new(self, 5)
124 }
125 #[doc = "Bit 6 - reg_freq_mem_force_pu"]
126 #[inline(always)]
127 pub fn freq_mem_force_pu(&mut self) -> FREQ_MEM_FORCE_PU_W<FRONT_END_MEM_PD_SPEC> {
128 FREQ_MEM_FORCE_PU_W::new(self, 6)
129 }
130 #[doc = "Bit 7 - reg_freq_mem_force_pd"]
131 #[inline(always)]
132 pub fn freq_mem_force_pd(&mut self) -> FREQ_MEM_FORCE_PD_W<FRONT_END_MEM_PD_SPEC> {
133 FREQ_MEM_FORCE_PD_W::new(self, 7)
134 }
135}
136#[doc = "APB_CTRL_FRONT_END_MEM_PD_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`front_end_mem_pd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`front_end_mem_pd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
137pub struct FRONT_END_MEM_PD_SPEC;
138impl crate::RegisterSpec for FRONT_END_MEM_PD_SPEC {
139 type Ux = u32;
140}
141#[doc = "`read()` method returns [`front_end_mem_pd::R`](R) reader structure"]
142impl crate::Readable for FRONT_END_MEM_PD_SPEC {}
143#[doc = "`write(|w| ..)` method takes [`front_end_mem_pd::W`](W) writer structure"]
144impl crate::Writable for FRONT_END_MEM_PD_SPEC {
145 type Safety = crate::Unsafe;
146}
147#[doc = "`reset()` method sets FRONT_END_MEM_PD to value 0x55"]
148impl crate::Resettable for FRONT_END_MEM_PD_SPEC {
149 const RESET_VALUE: u32 = 0x55;
150}