esp32c3/rtc_cntl/
dig_iso.rs1#[doc = "Register `DIG_ISO` reader"]
2pub type R = crate::R<DIG_ISO_SPEC>;
3#[doc = "Register `DIG_ISO` writer"]
4pub type W = crate::W<DIG_ISO_SPEC>;
5#[doc = "Field `FORCE_OFF` reader - DIG_ISO force off"]
6pub type FORCE_OFF_R = crate::BitReader;
7#[doc = "Field `FORCE_OFF` writer - DIG_ISO force off"]
8pub type FORCE_OFF_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_ON` reader - DIG_ISO force on"]
10pub type FORCE_ON_R = crate::BitReader;
11#[doc = "Field `FORCE_ON` writer - DIG_ISO force on"]
12pub type FORCE_ON_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `DG_PAD_AUTOHOLD` reader - read only register to indicate digital pad auto-hold status"]
14pub type DG_PAD_AUTOHOLD_R = crate::BitReader;
15#[doc = "Field `CLR_DG_PAD_AUTOHOLD` writer - wtite only register to clear digital pad auto-hold"]
16pub type CLR_DG_PAD_AUTOHOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `DG_PAD_AUTOHOLD_EN` reader - digital pad enable auto-hold"]
18pub type DG_PAD_AUTOHOLD_EN_R = crate::BitReader;
19#[doc = "Field `DG_PAD_AUTOHOLD_EN` writer - digital pad enable auto-hold"]
20pub type DG_PAD_AUTOHOLD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `DG_PAD_FORCE_NOISO` reader - digital pad force no ISO"]
22pub type DG_PAD_FORCE_NOISO_R = crate::BitReader;
23#[doc = "Field `DG_PAD_FORCE_NOISO` writer - digital pad force no ISO"]
24pub type DG_PAD_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `DG_PAD_FORCE_ISO` reader - digital pad force ISO"]
26pub type DG_PAD_FORCE_ISO_R = crate::BitReader;
27#[doc = "Field `DG_PAD_FORCE_ISO` writer - digital pad force ISO"]
28pub type DG_PAD_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `DG_PAD_FORCE_UNHOLD` reader - digital pad force un-hold"]
30pub type DG_PAD_FORCE_UNHOLD_R = crate::BitReader;
31#[doc = "Field `DG_PAD_FORCE_UNHOLD` writer - digital pad force un-hold"]
32pub type DG_PAD_FORCE_UNHOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `DG_PAD_FORCE_HOLD` reader - digital pad force hold"]
34pub type DG_PAD_FORCE_HOLD_R = crate::BitReader;
35#[doc = "Field `DG_PAD_FORCE_HOLD` writer - digital pad force hold"]
36pub type DG_PAD_FORCE_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `BT_FORCE_ISO` reader - bt force ISO"]
38pub type BT_FORCE_ISO_R = crate::BitReader;
39#[doc = "Field `BT_FORCE_ISO` writer - bt force ISO"]
40pub type BT_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `BT_FORCE_NOISO` reader - bt force no ISO"]
42pub type BT_FORCE_NOISO_R = crate::BitReader;
43#[doc = "Field `BT_FORCE_NOISO` writer - bt force no ISO"]
44pub type BT_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `DG_PERI_FORCE_ISO` reader - Digital peri force ISO"]
46pub type DG_PERI_FORCE_ISO_R = crate::BitReader;
47#[doc = "Field `DG_PERI_FORCE_ISO` writer - Digital peri force ISO"]
48pub type DG_PERI_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `DG_PERI_FORCE_NOISO` reader - digital peri force no ISO"]
50pub type DG_PERI_FORCE_NOISO_R = crate::BitReader;
51#[doc = "Field `DG_PERI_FORCE_NOISO` writer - digital peri force no ISO"]
52pub type DG_PERI_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `CPU_TOP_FORCE_ISO` reader - cpu force ISO"]
54pub type CPU_TOP_FORCE_ISO_R = crate::BitReader;
55#[doc = "Field `CPU_TOP_FORCE_ISO` writer - cpu force ISO"]
56pub type CPU_TOP_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `CPU_TOP_FORCE_NOISO` reader - cpu force no ISO"]
58pub type CPU_TOP_FORCE_NOISO_R = crate::BitReader;
59#[doc = "Field `CPU_TOP_FORCE_NOISO` writer - cpu force no ISO"]
60pub type CPU_TOP_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `WIFI_FORCE_ISO` reader - wifi force ISO"]
62pub type WIFI_FORCE_ISO_R = crate::BitReader;
63#[doc = "Field `WIFI_FORCE_ISO` writer - wifi force ISO"]
64pub type WIFI_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `WIFI_FORCE_NOISO` reader - wifi force no ISO"]
66pub type WIFI_FORCE_NOISO_R = crate::BitReader;
67#[doc = "Field `WIFI_FORCE_NOISO` writer - wifi force no ISO"]
68pub type WIFI_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `DG_WRAP_FORCE_ISO` reader - digital core force ISO"]
70pub type DG_WRAP_FORCE_ISO_R = crate::BitReader;
71#[doc = "Field `DG_WRAP_FORCE_ISO` writer - digital core force ISO"]
72pub type DG_WRAP_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `DG_WRAP_FORCE_NOISO` reader - digital core force no ISO"]
74pub type DG_WRAP_FORCE_NOISO_R = crate::BitReader;
75#[doc = "Field `DG_WRAP_FORCE_NOISO` writer - digital core force no ISO"]
76pub type DG_WRAP_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
77impl R {
78 #[doc = "Bit 7 - DIG_ISO force off"]
79 #[inline(always)]
80 pub fn force_off(&self) -> FORCE_OFF_R {
81 FORCE_OFF_R::new(((self.bits >> 7) & 1) != 0)
82 }
83 #[doc = "Bit 8 - DIG_ISO force on"]
84 #[inline(always)]
85 pub fn force_on(&self) -> FORCE_ON_R {
86 FORCE_ON_R::new(((self.bits >> 8) & 1) != 0)
87 }
88 #[doc = "Bit 9 - read only register to indicate digital pad auto-hold status"]
89 #[inline(always)]
90 pub fn dg_pad_autohold(&self) -> DG_PAD_AUTOHOLD_R {
91 DG_PAD_AUTOHOLD_R::new(((self.bits >> 9) & 1) != 0)
92 }
93 #[doc = "Bit 11 - digital pad enable auto-hold"]
94 #[inline(always)]
95 pub fn dg_pad_autohold_en(&self) -> DG_PAD_AUTOHOLD_EN_R {
96 DG_PAD_AUTOHOLD_EN_R::new(((self.bits >> 11) & 1) != 0)
97 }
98 #[doc = "Bit 12 - digital pad force no ISO"]
99 #[inline(always)]
100 pub fn dg_pad_force_noiso(&self) -> DG_PAD_FORCE_NOISO_R {
101 DG_PAD_FORCE_NOISO_R::new(((self.bits >> 12) & 1) != 0)
102 }
103 #[doc = "Bit 13 - digital pad force ISO"]
104 #[inline(always)]
105 pub fn dg_pad_force_iso(&self) -> DG_PAD_FORCE_ISO_R {
106 DG_PAD_FORCE_ISO_R::new(((self.bits >> 13) & 1) != 0)
107 }
108 #[doc = "Bit 14 - digital pad force un-hold"]
109 #[inline(always)]
110 pub fn dg_pad_force_unhold(&self) -> DG_PAD_FORCE_UNHOLD_R {
111 DG_PAD_FORCE_UNHOLD_R::new(((self.bits >> 14) & 1) != 0)
112 }
113 #[doc = "Bit 15 - digital pad force hold"]
114 #[inline(always)]
115 pub fn dg_pad_force_hold(&self) -> DG_PAD_FORCE_HOLD_R {
116 DG_PAD_FORCE_HOLD_R::new(((self.bits >> 15) & 1) != 0)
117 }
118 #[doc = "Bit 22 - bt force ISO"]
119 #[inline(always)]
120 pub fn bt_force_iso(&self) -> BT_FORCE_ISO_R {
121 BT_FORCE_ISO_R::new(((self.bits >> 22) & 1) != 0)
122 }
123 #[doc = "Bit 23 - bt force no ISO"]
124 #[inline(always)]
125 pub fn bt_force_noiso(&self) -> BT_FORCE_NOISO_R {
126 BT_FORCE_NOISO_R::new(((self.bits >> 23) & 1) != 0)
127 }
128 #[doc = "Bit 24 - Digital peri force ISO"]
129 #[inline(always)]
130 pub fn dg_peri_force_iso(&self) -> DG_PERI_FORCE_ISO_R {
131 DG_PERI_FORCE_ISO_R::new(((self.bits >> 24) & 1) != 0)
132 }
133 #[doc = "Bit 25 - digital peri force no ISO"]
134 #[inline(always)]
135 pub fn dg_peri_force_noiso(&self) -> DG_PERI_FORCE_NOISO_R {
136 DG_PERI_FORCE_NOISO_R::new(((self.bits >> 25) & 1) != 0)
137 }
138 #[doc = "Bit 26 - cpu force ISO"]
139 #[inline(always)]
140 pub fn cpu_top_force_iso(&self) -> CPU_TOP_FORCE_ISO_R {
141 CPU_TOP_FORCE_ISO_R::new(((self.bits >> 26) & 1) != 0)
142 }
143 #[doc = "Bit 27 - cpu force no ISO"]
144 #[inline(always)]
145 pub fn cpu_top_force_noiso(&self) -> CPU_TOP_FORCE_NOISO_R {
146 CPU_TOP_FORCE_NOISO_R::new(((self.bits >> 27) & 1) != 0)
147 }
148 #[doc = "Bit 28 - wifi force ISO"]
149 #[inline(always)]
150 pub fn wifi_force_iso(&self) -> WIFI_FORCE_ISO_R {
151 WIFI_FORCE_ISO_R::new(((self.bits >> 28) & 1) != 0)
152 }
153 #[doc = "Bit 29 - wifi force no ISO"]
154 #[inline(always)]
155 pub fn wifi_force_noiso(&self) -> WIFI_FORCE_NOISO_R {
156 WIFI_FORCE_NOISO_R::new(((self.bits >> 29) & 1) != 0)
157 }
158 #[doc = "Bit 30 - digital core force ISO"]
159 #[inline(always)]
160 pub fn dg_wrap_force_iso(&self) -> DG_WRAP_FORCE_ISO_R {
161 DG_WRAP_FORCE_ISO_R::new(((self.bits >> 30) & 1) != 0)
162 }
163 #[doc = "Bit 31 - digital core force no ISO"]
164 #[inline(always)]
165 pub fn dg_wrap_force_noiso(&self) -> DG_WRAP_FORCE_NOISO_R {
166 DG_WRAP_FORCE_NOISO_R::new(((self.bits >> 31) & 1) != 0)
167 }
168}
169#[cfg(feature = "impl-register-debug")]
170impl core::fmt::Debug for R {
171 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
172 f.debug_struct("DIG_ISO")
173 .field("force_off", &self.force_off())
174 .field("force_on", &self.force_on())
175 .field("dg_pad_autohold", &self.dg_pad_autohold())
176 .field("dg_pad_autohold_en", &self.dg_pad_autohold_en())
177 .field("dg_pad_force_noiso", &self.dg_pad_force_noiso())
178 .field("dg_pad_force_iso", &self.dg_pad_force_iso())
179 .field("dg_pad_force_unhold", &self.dg_pad_force_unhold())
180 .field("dg_pad_force_hold", &self.dg_pad_force_hold())
181 .field("bt_force_iso", &self.bt_force_iso())
182 .field("bt_force_noiso", &self.bt_force_noiso())
183 .field("dg_peri_force_iso", &self.dg_peri_force_iso())
184 .field("dg_peri_force_noiso", &self.dg_peri_force_noiso())
185 .field("cpu_top_force_iso", &self.cpu_top_force_iso())
186 .field("cpu_top_force_noiso", &self.cpu_top_force_noiso())
187 .field("wifi_force_iso", &self.wifi_force_iso())
188 .field("wifi_force_noiso", &self.wifi_force_noiso())
189 .field("dg_wrap_force_iso", &self.dg_wrap_force_iso())
190 .field("dg_wrap_force_noiso", &self.dg_wrap_force_noiso())
191 .finish()
192 }
193}
194impl W {
195 #[doc = "Bit 7 - DIG_ISO force off"]
196 #[inline(always)]
197 pub fn force_off(&mut self) -> FORCE_OFF_W<DIG_ISO_SPEC> {
198 FORCE_OFF_W::new(self, 7)
199 }
200 #[doc = "Bit 8 - DIG_ISO force on"]
201 #[inline(always)]
202 pub fn force_on(&mut self) -> FORCE_ON_W<DIG_ISO_SPEC> {
203 FORCE_ON_W::new(self, 8)
204 }
205 #[doc = "Bit 10 - wtite only register to clear digital pad auto-hold"]
206 #[inline(always)]
207 pub fn clr_dg_pad_autohold(&mut self) -> CLR_DG_PAD_AUTOHOLD_W<DIG_ISO_SPEC> {
208 CLR_DG_PAD_AUTOHOLD_W::new(self, 10)
209 }
210 #[doc = "Bit 11 - digital pad enable auto-hold"]
211 #[inline(always)]
212 pub fn dg_pad_autohold_en(&mut self) -> DG_PAD_AUTOHOLD_EN_W<DIG_ISO_SPEC> {
213 DG_PAD_AUTOHOLD_EN_W::new(self, 11)
214 }
215 #[doc = "Bit 12 - digital pad force no ISO"]
216 #[inline(always)]
217 pub fn dg_pad_force_noiso(&mut self) -> DG_PAD_FORCE_NOISO_W<DIG_ISO_SPEC> {
218 DG_PAD_FORCE_NOISO_W::new(self, 12)
219 }
220 #[doc = "Bit 13 - digital pad force ISO"]
221 #[inline(always)]
222 pub fn dg_pad_force_iso(&mut self) -> DG_PAD_FORCE_ISO_W<DIG_ISO_SPEC> {
223 DG_PAD_FORCE_ISO_W::new(self, 13)
224 }
225 #[doc = "Bit 14 - digital pad force un-hold"]
226 #[inline(always)]
227 pub fn dg_pad_force_unhold(&mut self) -> DG_PAD_FORCE_UNHOLD_W<DIG_ISO_SPEC> {
228 DG_PAD_FORCE_UNHOLD_W::new(self, 14)
229 }
230 #[doc = "Bit 15 - digital pad force hold"]
231 #[inline(always)]
232 pub fn dg_pad_force_hold(&mut self) -> DG_PAD_FORCE_HOLD_W<DIG_ISO_SPEC> {
233 DG_PAD_FORCE_HOLD_W::new(self, 15)
234 }
235 #[doc = "Bit 22 - bt force ISO"]
236 #[inline(always)]
237 pub fn bt_force_iso(&mut self) -> BT_FORCE_ISO_W<DIG_ISO_SPEC> {
238 BT_FORCE_ISO_W::new(self, 22)
239 }
240 #[doc = "Bit 23 - bt force no ISO"]
241 #[inline(always)]
242 pub fn bt_force_noiso(&mut self) -> BT_FORCE_NOISO_W<DIG_ISO_SPEC> {
243 BT_FORCE_NOISO_W::new(self, 23)
244 }
245 #[doc = "Bit 24 - Digital peri force ISO"]
246 #[inline(always)]
247 pub fn dg_peri_force_iso(&mut self) -> DG_PERI_FORCE_ISO_W<DIG_ISO_SPEC> {
248 DG_PERI_FORCE_ISO_W::new(self, 24)
249 }
250 #[doc = "Bit 25 - digital peri force no ISO"]
251 #[inline(always)]
252 pub fn dg_peri_force_noiso(&mut self) -> DG_PERI_FORCE_NOISO_W<DIG_ISO_SPEC> {
253 DG_PERI_FORCE_NOISO_W::new(self, 25)
254 }
255 #[doc = "Bit 26 - cpu force ISO"]
256 #[inline(always)]
257 pub fn cpu_top_force_iso(&mut self) -> CPU_TOP_FORCE_ISO_W<DIG_ISO_SPEC> {
258 CPU_TOP_FORCE_ISO_W::new(self, 26)
259 }
260 #[doc = "Bit 27 - cpu force no ISO"]
261 #[inline(always)]
262 pub fn cpu_top_force_noiso(&mut self) -> CPU_TOP_FORCE_NOISO_W<DIG_ISO_SPEC> {
263 CPU_TOP_FORCE_NOISO_W::new(self, 27)
264 }
265 #[doc = "Bit 28 - wifi force ISO"]
266 #[inline(always)]
267 pub fn wifi_force_iso(&mut self) -> WIFI_FORCE_ISO_W<DIG_ISO_SPEC> {
268 WIFI_FORCE_ISO_W::new(self, 28)
269 }
270 #[doc = "Bit 29 - wifi force no ISO"]
271 #[inline(always)]
272 pub fn wifi_force_noiso(&mut self) -> WIFI_FORCE_NOISO_W<DIG_ISO_SPEC> {
273 WIFI_FORCE_NOISO_W::new(self, 29)
274 }
275 #[doc = "Bit 30 - digital core force ISO"]
276 #[inline(always)]
277 pub fn dg_wrap_force_iso(&mut self) -> DG_WRAP_FORCE_ISO_W<DIG_ISO_SPEC> {
278 DG_WRAP_FORCE_ISO_W::new(self, 30)
279 }
280 #[doc = "Bit 31 - digital core force no ISO"]
281 #[inline(always)]
282 pub fn dg_wrap_force_noiso(&mut self) -> DG_WRAP_FORCE_NOISO_W<DIG_ISO_SPEC> {
283 DG_WRAP_FORCE_NOISO_W::new(self, 31)
284 }
285}
286#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`dig_iso::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dig_iso::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
287pub struct DIG_ISO_SPEC;
288impl crate::RegisterSpec for DIG_ISO_SPEC {
289 type Ux = u32;
290}
291#[doc = "`read()` method returns [`dig_iso::R`](R) reader structure"]
292impl crate::Readable for DIG_ISO_SPEC {}
293#[doc = "`write(|w| ..)` method takes [`dig_iso::W`](W) writer structure"]
294impl crate::Writable for DIG_ISO_SPEC {
295 type Safety = crate::Unsafe;
296}
297#[doc = "`reset()` method sets DIG_ISO to value 0xaa80_5080"]
298impl crate::Resettable for DIG_ISO_SPEC {
299 const RESET_VALUE: u32 = 0xaa80_5080;
300}