esp32p4/pmu/
ext_ldo_p0_0p1a.rs1#[doc = "Register `EXT_LDO_P0_0P1A` reader"]
2pub type R = crate::R<EXT_LDO_P0_0P1A_SPEC>;
3#[doc = "Register `EXT_LDO_P0_0P1A` writer"]
4pub type W = crate::W<EXT_LDO_P0_0P1A_SPEC>;
5#[doc = "Field `_0P1A_FORCE_TIEH_SEL_0` reader - need_des"]
6pub type _0P1A_FORCE_TIEH_SEL_0_R = crate::BitReader;
7#[doc = "Field `_0P1A_FORCE_TIEH_SEL_0` writer - need_des"]
8pub type _0P1A_FORCE_TIEH_SEL_0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `_0P1A_XPD_0` reader - need_des"]
10pub type _0P1A_XPD_0_R = crate::BitReader;
11#[doc = "Field `_0P1A_XPD_0` writer - need_des"]
12pub type _0P1A_XPD_0_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `_0P1A_TIEH_SEL_0` reader - need_des"]
14pub type _0P1A_TIEH_SEL_0_R = crate::FieldReader;
15#[doc = "Field `_0P1A_TIEH_SEL_0` writer - need_des"]
16pub type _0P1A_TIEH_SEL_0_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
17#[doc = "Field `_0P1A_TIEH_POS_EN_0` reader - need_des"]
18pub type _0P1A_TIEH_POS_EN_0_R = crate::BitReader;
19#[doc = "Field `_0P1A_TIEH_POS_EN_0` writer - need_des"]
20pub type _0P1A_TIEH_POS_EN_0_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `_0P1A_TIEH_NEG_EN_0` reader - need_des"]
22pub type _0P1A_TIEH_NEG_EN_0_R = crate::BitReader;
23#[doc = "Field `_0P1A_TIEH_NEG_EN_0` writer - need_des"]
24pub type _0P1A_TIEH_NEG_EN_0_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `_0P1A_TIEH_0` reader - need_des"]
26pub type _0P1A_TIEH_0_R = crate::BitReader;
27#[doc = "Field `_0P1A_TIEH_0` writer - need_des"]
28pub type _0P1A_TIEH_0_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `_0P1A_TARGET1_0` reader - need_des"]
30pub type _0P1A_TARGET1_0_R = crate::FieldReader;
31#[doc = "Field `_0P1A_TARGET1_0` writer - need_des"]
32pub type _0P1A_TARGET1_0_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
33#[doc = "Field `_0P1A_TARGET0_0` reader - need_des"]
34pub type _0P1A_TARGET0_0_R = crate::FieldReader;
35#[doc = "Field `_0P1A_TARGET0_0` writer - need_des"]
36pub type _0P1A_TARGET0_0_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
37#[doc = "Field `_0P1A_LDO_CNT_PRESCALER_SEL_0` reader - need_des"]
38pub type _0P1A_LDO_CNT_PRESCALER_SEL_0_R = crate::BitReader;
39#[doc = "Field `_0P1A_LDO_CNT_PRESCALER_SEL_0` writer - need_des"]
40pub type _0P1A_LDO_CNT_PRESCALER_SEL_0_W<'a, REG> = crate::BitWriter<'a, REG>;
41impl R {
42 #[doc = "Bit 7 - need_des"]
43 #[inline(always)]
44 pub fn _0p1a_force_tieh_sel_0(&self) -> _0P1A_FORCE_TIEH_SEL_0_R {
45 _0P1A_FORCE_TIEH_SEL_0_R::new(((self.bits >> 7) & 1) != 0)
46 }
47 #[doc = "Bit 8 - need_des"]
48 #[inline(always)]
49 pub fn _0p1a_xpd_0(&self) -> _0P1A_XPD_0_R {
50 _0P1A_XPD_0_R::new(((self.bits >> 8) & 1) != 0)
51 }
52 #[doc = "Bits 9:11 - need_des"]
53 #[inline(always)]
54 pub fn _0p1a_tieh_sel_0(&self) -> _0P1A_TIEH_SEL_0_R {
55 _0P1A_TIEH_SEL_0_R::new(((self.bits >> 9) & 7) as u8)
56 }
57 #[doc = "Bit 12 - need_des"]
58 #[inline(always)]
59 pub fn _0p1a_tieh_pos_en_0(&self) -> _0P1A_TIEH_POS_EN_0_R {
60 _0P1A_TIEH_POS_EN_0_R::new(((self.bits >> 12) & 1) != 0)
61 }
62 #[doc = "Bit 13 - need_des"]
63 #[inline(always)]
64 pub fn _0p1a_tieh_neg_en_0(&self) -> _0P1A_TIEH_NEG_EN_0_R {
65 _0P1A_TIEH_NEG_EN_0_R::new(((self.bits >> 13) & 1) != 0)
66 }
67 #[doc = "Bit 14 - need_des"]
68 #[inline(always)]
69 pub fn _0p1a_tieh_0(&self) -> _0P1A_TIEH_0_R {
70 _0P1A_TIEH_0_R::new(((self.bits >> 14) & 1) != 0)
71 }
72 #[doc = "Bits 15:22 - need_des"]
73 #[inline(always)]
74 pub fn _0p1a_target1_0(&self) -> _0P1A_TARGET1_0_R {
75 _0P1A_TARGET1_0_R::new(((self.bits >> 15) & 0xff) as u8)
76 }
77 #[doc = "Bits 23:30 - need_des"]
78 #[inline(always)]
79 pub fn _0p1a_target0_0(&self) -> _0P1A_TARGET0_0_R {
80 _0P1A_TARGET0_0_R::new(((self.bits >> 23) & 0xff) as u8)
81 }
82 #[doc = "Bit 31 - need_des"]
83 #[inline(always)]
84 pub fn _0p1a_ldo_cnt_prescaler_sel_0(&self) -> _0P1A_LDO_CNT_PRESCALER_SEL_0_R {
85 _0P1A_LDO_CNT_PRESCALER_SEL_0_R::new(((self.bits >> 31) & 1) != 0)
86 }
87}
88#[cfg(feature = "impl-register-debug")]
89impl core::fmt::Debug for R {
90 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
91 f.debug_struct("EXT_LDO_P0_0P1A")
92 .field(
93 "_0p1a_force_tieh_sel_0",
94 &format_args!("{}", self._0p1a_force_tieh_sel_0().bit()),
95 )
96 .field("_0p1a_xpd_0", &format_args!("{}", self._0p1a_xpd_0().bit()))
97 .field(
98 "_0p1a_tieh_sel_0",
99 &format_args!("{}", self._0p1a_tieh_sel_0().bits()),
100 )
101 .field(
102 "_0p1a_tieh_pos_en_0",
103 &format_args!("{}", self._0p1a_tieh_pos_en_0().bit()),
104 )
105 .field(
106 "_0p1a_tieh_neg_en_0",
107 &format_args!("{}", self._0p1a_tieh_neg_en_0().bit()),
108 )
109 .field(
110 "_0p1a_tieh_0",
111 &format_args!("{}", self._0p1a_tieh_0().bit()),
112 )
113 .field(
114 "_0p1a_target1_0",
115 &format_args!("{}", self._0p1a_target1_0().bits()),
116 )
117 .field(
118 "_0p1a_target0_0",
119 &format_args!("{}", self._0p1a_target0_0().bits()),
120 )
121 .field(
122 "_0p1a_ldo_cnt_prescaler_sel_0",
123 &format_args!("{}", self._0p1a_ldo_cnt_prescaler_sel_0().bit()),
124 )
125 .finish()
126 }
127}
128#[cfg(feature = "impl-register-debug")]
129impl core::fmt::Debug for crate::generic::Reg<EXT_LDO_P0_0P1A_SPEC> {
130 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
131 core::fmt::Debug::fmt(&self.read(), f)
132 }
133}
134impl W {
135 #[doc = "Bit 7 - need_des"]
136 #[inline(always)]
137 #[must_use]
138 pub fn _0p1a_force_tieh_sel_0(&mut self) -> _0P1A_FORCE_TIEH_SEL_0_W<EXT_LDO_P0_0P1A_SPEC> {
139 _0P1A_FORCE_TIEH_SEL_0_W::new(self, 7)
140 }
141 #[doc = "Bit 8 - need_des"]
142 #[inline(always)]
143 #[must_use]
144 pub fn _0p1a_xpd_0(&mut self) -> _0P1A_XPD_0_W<EXT_LDO_P0_0P1A_SPEC> {
145 _0P1A_XPD_0_W::new(self, 8)
146 }
147 #[doc = "Bits 9:11 - need_des"]
148 #[inline(always)]
149 #[must_use]
150 pub fn _0p1a_tieh_sel_0(&mut self) -> _0P1A_TIEH_SEL_0_W<EXT_LDO_P0_0P1A_SPEC> {
151 _0P1A_TIEH_SEL_0_W::new(self, 9)
152 }
153 #[doc = "Bit 12 - need_des"]
154 #[inline(always)]
155 #[must_use]
156 pub fn _0p1a_tieh_pos_en_0(&mut self) -> _0P1A_TIEH_POS_EN_0_W<EXT_LDO_P0_0P1A_SPEC> {
157 _0P1A_TIEH_POS_EN_0_W::new(self, 12)
158 }
159 #[doc = "Bit 13 - need_des"]
160 #[inline(always)]
161 #[must_use]
162 pub fn _0p1a_tieh_neg_en_0(&mut self) -> _0P1A_TIEH_NEG_EN_0_W<EXT_LDO_P0_0P1A_SPEC> {
163 _0P1A_TIEH_NEG_EN_0_W::new(self, 13)
164 }
165 #[doc = "Bit 14 - need_des"]
166 #[inline(always)]
167 #[must_use]
168 pub fn _0p1a_tieh_0(&mut self) -> _0P1A_TIEH_0_W<EXT_LDO_P0_0P1A_SPEC> {
169 _0P1A_TIEH_0_W::new(self, 14)
170 }
171 #[doc = "Bits 15:22 - need_des"]
172 #[inline(always)]
173 #[must_use]
174 pub fn _0p1a_target1_0(&mut self) -> _0P1A_TARGET1_0_W<EXT_LDO_P0_0P1A_SPEC> {
175 _0P1A_TARGET1_0_W::new(self, 15)
176 }
177 #[doc = "Bits 23:30 - need_des"]
178 #[inline(always)]
179 #[must_use]
180 pub fn _0p1a_target0_0(&mut self) -> _0P1A_TARGET0_0_W<EXT_LDO_P0_0P1A_SPEC> {
181 _0P1A_TARGET0_0_W::new(self, 23)
182 }
183 #[doc = "Bit 31 - need_des"]
184 #[inline(always)]
185 #[must_use]
186 pub fn _0p1a_ldo_cnt_prescaler_sel_0(
187 &mut self,
188 ) -> _0P1A_LDO_CNT_PRESCALER_SEL_0_W<EXT_LDO_P0_0P1A_SPEC> {
189 _0P1A_LDO_CNT_PRESCALER_SEL_0_W::new(self, 31)
190 }
191}
192#[doc = "need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ext_ldo_p0_0p1a::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ext_ldo_p0_0p1a::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
193pub struct EXT_LDO_P0_0P1A_SPEC;
194impl crate::RegisterSpec for EXT_LDO_P0_0P1A_SPEC {
195 type Ux = u32;
196}
197#[doc = "`read()` method returns [`ext_ldo_p0_0p1a::R`](R) reader structure"]
198impl crate::Readable for EXT_LDO_P0_0P1A_SPEC {}
199#[doc = "`write(|w| ..)` method takes [`ext_ldo_p0_0p1a::W`](W) writer structure"]
200impl crate::Writable for EXT_LDO_P0_0P1A_SPEC {
201 type Safety = crate::Unsafe;
202 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
203 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
204}
205#[doc = "`reset()` method sets EXT_LDO_P0_0P1A to value 0x4020_0100"]
206impl crate::Resettable for EXT_LDO_P0_0P1A_SPEC {
207 const RESET_VALUE: u32 = 0x4020_0100;
208}