eos_s3/intr_ctrl/
gpio_intr_en_ap.rs1#[doc = "Register `GPIO_INTR_EN_AP` reader"]
2pub struct R(crate::R<GPIO_INTR_EN_AP_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<GPIO_INTR_EN_AP_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<GPIO_INTR_EN_AP_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<GPIO_INTR_EN_AP_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `GPIO_INTR_EN_AP` writer"]
17pub struct W(crate::W<GPIO_INTR_EN_AP_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<GPIO_INTR_EN_AP_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<GPIO_INTR_EN_AP_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<GPIO_INTR_EN_AP_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "GPIO_0 interrupt enable for AP\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39pub enum GPIO_0_INTR_EN_AP_A {
40 #[doc = "0: Disable the interrupt for the power domain"]
41 ENABLE = 0,
42 #[doc = "1: Enable the interrupt for the power domain"]
43 DISABLE = 1,
44}
45impl From<GPIO_0_INTR_EN_AP_A> for bool {
46 #[inline(always)]
47 fn from(variant: GPIO_0_INTR_EN_AP_A) -> Self {
48 variant as u8 != 0
49 }
50}
51#[doc = "Field `GPIO_0_INTR_EN_AP` reader - GPIO_0 interrupt enable for AP"]
52pub struct GPIO_0_INTR_EN_AP_R(crate::FieldReader<bool, GPIO_0_INTR_EN_AP_A>);
53impl GPIO_0_INTR_EN_AP_R {
54 #[inline(always)]
55 pub(crate) fn new(bits: bool) -> Self {
56 GPIO_0_INTR_EN_AP_R(crate::FieldReader::new(bits))
57 }
58 #[doc = r"Get enumerated values variant"]
59 #[inline(always)]
60 pub fn variant(&self) -> GPIO_0_INTR_EN_AP_A {
61 match self.bits {
62 false => GPIO_0_INTR_EN_AP_A::ENABLE,
63 true => GPIO_0_INTR_EN_AP_A::DISABLE,
64 }
65 }
66 #[doc = "Checks if the value of the field is `ENABLE`"]
67 #[inline(always)]
68 pub fn is_enable(&self) -> bool {
69 **self == GPIO_0_INTR_EN_AP_A::ENABLE
70 }
71 #[doc = "Checks if the value of the field is `DISABLE`"]
72 #[inline(always)]
73 pub fn is_disable(&self) -> bool {
74 **self == GPIO_0_INTR_EN_AP_A::DISABLE
75 }
76}
77impl core::ops::Deref for GPIO_0_INTR_EN_AP_R {
78 type Target = crate::FieldReader<bool, GPIO_0_INTR_EN_AP_A>;
79 #[inline(always)]
80 fn deref(&self) -> &Self::Target {
81 &self.0
82 }
83}
84#[doc = "Field `GPIO_0_INTR_EN_AP` writer - GPIO_0 interrupt enable for AP"]
85pub struct GPIO_0_INTR_EN_AP_W<'a> {
86 w: &'a mut W,
87}
88impl<'a> GPIO_0_INTR_EN_AP_W<'a> {
89 #[doc = r"Writes `variant` to the field"]
90 #[inline(always)]
91 pub fn variant(self, variant: GPIO_0_INTR_EN_AP_A) -> &'a mut W {
92 self.bit(variant.into())
93 }
94 #[doc = "Disable the interrupt for the power domain"]
95 #[inline(always)]
96 pub fn enable(self) -> &'a mut W {
97 self.variant(GPIO_0_INTR_EN_AP_A::ENABLE)
98 }
99 #[doc = "Enable the interrupt for the power domain"]
100 #[inline(always)]
101 pub fn disable(self) -> &'a mut W {
102 self.variant(GPIO_0_INTR_EN_AP_A::DISABLE)
103 }
104 #[doc = r"Sets the field bit"]
105 #[inline(always)]
106 pub fn set_bit(self) -> &'a mut W {
107 self.bit(true)
108 }
109 #[doc = r"Clears the field bit"]
110 #[inline(always)]
111 pub fn clear_bit(self) -> &'a mut W {
112 self.bit(false)
113 }
114 #[doc = r"Writes raw bits to the field"]
115 #[inline(always)]
116 pub fn bit(self, value: bool) -> &'a mut W {
117 self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
118 self.w
119 }
120}
121#[doc = "GPIO_1 interrupt enable for AP"]
122pub type GPIO_1_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
123#[doc = "Field `GPIO_1_INTR_EN_AP` reader - GPIO_1 interrupt enable for AP"]
124pub type GPIO_1_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
125#[doc = "Field `GPIO_1_INTR_EN_AP` writer - GPIO_1 interrupt enable for AP"]
126pub struct GPIO_1_INTR_EN_AP_W<'a> {
127 w: &'a mut W,
128}
129impl<'a> GPIO_1_INTR_EN_AP_W<'a> {
130 #[doc = r"Writes `variant` to the field"]
131 #[inline(always)]
132 pub fn variant(self, variant: GPIO_1_INTR_EN_AP_A) -> &'a mut W {
133 self.bit(variant.into())
134 }
135 #[doc = "Disable the interrupt for the power domain"]
136 #[inline(always)]
137 pub fn enable(self) -> &'a mut W {
138 self.variant(GPIO_1_INTR_EN_AP_A::ENABLE)
139 }
140 #[doc = "Enable the interrupt for the power domain"]
141 #[inline(always)]
142 pub fn disable(self) -> &'a mut W {
143 self.variant(GPIO_1_INTR_EN_AP_A::DISABLE)
144 }
145 #[doc = r"Sets the field bit"]
146 #[inline(always)]
147 pub fn set_bit(self) -> &'a mut W {
148 self.bit(true)
149 }
150 #[doc = r"Clears the field bit"]
151 #[inline(always)]
152 pub fn clear_bit(self) -> &'a mut W {
153 self.bit(false)
154 }
155 #[doc = r"Writes raw bits to the field"]
156 #[inline(always)]
157 pub fn bit(self, value: bool) -> &'a mut W {
158 self.w.bits =
159 (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
160 self.w
161 }
162}
163#[doc = "GPIO_2 interrupt enable for AP"]
164pub type GPIO_2_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
165#[doc = "Field `GPIO_2_INTR_EN_AP` reader - GPIO_2 interrupt enable for AP"]
166pub type GPIO_2_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
167#[doc = "Field `GPIO_2_INTR_EN_AP` writer - GPIO_2 interrupt enable for AP"]
168pub struct GPIO_2_INTR_EN_AP_W<'a> {
169 w: &'a mut W,
170}
171impl<'a> GPIO_2_INTR_EN_AP_W<'a> {
172 #[doc = r"Writes `variant` to the field"]
173 #[inline(always)]
174 pub fn variant(self, variant: GPIO_2_INTR_EN_AP_A) -> &'a mut W {
175 self.bit(variant.into())
176 }
177 #[doc = "Disable the interrupt for the power domain"]
178 #[inline(always)]
179 pub fn enable(self) -> &'a mut W {
180 self.variant(GPIO_2_INTR_EN_AP_A::ENABLE)
181 }
182 #[doc = "Enable the interrupt for the power domain"]
183 #[inline(always)]
184 pub fn disable(self) -> &'a mut W {
185 self.variant(GPIO_2_INTR_EN_AP_A::DISABLE)
186 }
187 #[doc = r"Sets the field bit"]
188 #[inline(always)]
189 pub fn set_bit(self) -> &'a mut W {
190 self.bit(true)
191 }
192 #[doc = r"Clears the field bit"]
193 #[inline(always)]
194 pub fn clear_bit(self) -> &'a mut W {
195 self.bit(false)
196 }
197 #[doc = r"Writes raw bits to the field"]
198 #[inline(always)]
199 pub fn bit(self, value: bool) -> &'a mut W {
200 self.w.bits =
201 (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
202 self.w
203 }
204}
205#[doc = "GPIO_3 interrupt enable for AP"]
206pub type GPIO_3_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
207#[doc = "Field `GPIO_3_INTR_EN_AP` reader - GPIO_3 interrupt enable for AP"]
208pub type GPIO_3_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
209#[doc = "Field `GPIO_3_INTR_EN_AP` writer - GPIO_3 interrupt enable for AP"]
210pub struct GPIO_3_INTR_EN_AP_W<'a> {
211 w: &'a mut W,
212}
213impl<'a> GPIO_3_INTR_EN_AP_W<'a> {
214 #[doc = r"Writes `variant` to the field"]
215 #[inline(always)]
216 pub fn variant(self, variant: GPIO_3_INTR_EN_AP_A) -> &'a mut W {
217 self.bit(variant.into())
218 }
219 #[doc = "Disable the interrupt for the power domain"]
220 #[inline(always)]
221 pub fn enable(self) -> &'a mut W {
222 self.variant(GPIO_3_INTR_EN_AP_A::ENABLE)
223 }
224 #[doc = "Enable the interrupt for the power domain"]
225 #[inline(always)]
226 pub fn disable(self) -> &'a mut W {
227 self.variant(GPIO_3_INTR_EN_AP_A::DISABLE)
228 }
229 #[doc = r"Sets the field bit"]
230 #[inline(always)]
231 pub fn set_bit(self) -> &'a mut W {
232 self.bit(true)
233 }
234 #[doc = r"Clears the field bit"]
235 #[inline(always)]
236 pub fn clear_bit(self) -> &'a mut W {
237 self.bit(false)
238 }
239 #[doc = r"Writes raw bits to the field"]
240 #[inline(always)]
241 pub fn bit(self, value: bool) -> &'a mut W {
242 self.w.bits =
243 (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
244 self.w
245 }
246}
247#[doc = "GPIO_4 interrupt enable for AP"]
248pub type GPIO_4_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
249#[doc = "Field `GPIO_4_INTR_EN_AP` reader - GPIO_4 interrupt enable for AP"]
250pub type GPIO_4_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
251#[doc = "Field `GPIO_4_INTR_EN_AP` writer - GPIO_4 interrupt enable for AP"]
252pub struct GPIO_4_INTR_EN_AP_W<'a> {
253 w: &'a mut W,
254}
255impl<'a> GPIO_4_INTR_EN_AP_W<'a> {
256 #[doc = r"Writes `variant` to the field"]
257 #[inline(always)]
258 pub fn variant(self, variant: GPIO_4_INTR_EN_AP_A) -> &'a mut W {
259 self.bit(variant.into())
260 }
261 #[doc = "Disable the interrupt for the power domain"]
262 #[inline(always)]
263 pub fn enable(self) -> &'a mut W {
264 self.variant(GPIO_4_INTR_EN_AP_A::ENABLE)
265 }
266 #[doc = "Enable the interrupt for the power domain"]
267 #[inline(always)]
268 pub fn disable(self) -> &'a mut W {
269 self.variant(GPIO_4_INTR_EN_AP_A::DISABLE)
270 }
271 #[doc = r"Sets the field bit"]
272 #[inline(always)]
273 pub fn set_bit(self) -> &'a mut W {
274 self.bit(true)
275 }
276 #[doc = r"Clears the field bit"]
277 #[inline(always)]
278 pub fn clear_bit(self) -> &'a mut W {
279 self.bit(false)
280 }
281 #[doc = r"Writes raw bits to the field"]
282 #[inline(always)]
283 pub fn bit(self, value: bool) -> &'a mut W {
284 self.w.bits =
285 (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
286 self.w
287 }
288}
289#[doc = "GPIO_5 interrupt enable for AP"]
290pub type GPIO_5_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
291#[doc = "Field `GPIO_5_INTR_EN_AP` reader - GPIO_5 interrupt enable for AP"]
292pub type GPIO_5_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
293#[doc = "Field `GPIO_5_INTR_EN_AP` writer - GPIO_5 interrupt enable for AP"]
294pub struct GPIO_5_INTR_EN_AP_W<'a> {
295 w: &'a mut W,
296}
297impl<'a> GPIO_5_INTR_EN_AP_W<'a> {
298 #[doc = r"Writes `variant` to the field"]
299 #[inline(always)]
300 pub fn variant(self, variant: GPIO_5_INTR_EN_AP_A) -> &'a mut W {
301 self.bit(variant.into())
302 }
303 #[doc = "Disable the interrupt for the power domain"]
304 #[inline(always)]
305 pub fn enable(self) -> &'a mut W {
306 self.variant(GPIO_5_INTR_EN_AP_A::ENABLE)
307 }
308 #[doc = "Enable the interrupt for the power domain"]
309 #[inline(always)]
310 pub fn disable(self) -> &'a mut W {
311 self.variant(GPIO_5_INTR_EN_AP_A::DISABLE)
312 }
313 #[doc = r"Sets the field bit"]
314 #[inline(always)]
315 pub fn set_bit(self) -> &'a mut W {
316 self.bit(true)
317 }
318 #[doc = r"Clears the field bit"]
319 #[inline(always)]
320 pub fn clear_bit(self) -> &'a mut W {
321 self.bit(false)
322 }
323 #[doc = r"Writes raw bits to the field"]
324 #[inline(always)]
325 pub fn bit(self, value: bool) -> &'a mut W {
326 self.w.bits =
327 (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
328 self.w
329 }
330}
331#[doc = "GPIO_6 interrupt enable for AP"]
332pub type GPIO_6_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
333#[doc = "Field `GPIO_6_INTR_EN_AP` reader - GPIO_6 interrupt enable for AP"]
334pub type GPIO_6_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
335#[doc = "Field `GPIO_6_INTR_EN_AP` writer - GPIO_6 interrupt enable for AP"]
336pub struct GPIO_6_INTR_EN_AP_W<'a> {
337 w: &'a mut W,
338}
339impl<'a> GPIO_6_INTR_EN_AP_W<'a> {
340 #[doc = r"Writes `variant` to the field"]
341 #[inline(always)]
342 pub fn variant(self, variant: GPIO_6_INTR_EN_AP_A) -> &'a mut W {
343 self.bit(variant.into())
344 }
345 #[doc = "Disable the interrupt for the power domain"]
346 #[inline(always)]
347 pub fn enable(self) -> &'a mut W {
348 self.variant(GPIO_6_INTR_EN_AP_A::ENABLE)
349 }
350 #[doc = "Enable the interrupt for the power domain"]
351 #[inline(always)]
352 pub fn disable(self) -> &'a mut W {
353 self.variant(GPIO_6_INTR_EN_AP_A::DISABLE)
354 }
355 #[doc = r"Sets the field bit"]
356 #[inline(always)]
357 pub fn set_bit(self) -> &'a mut W {
358 self.bit(true)
359 }
360 #[doc = r"Clears the field bit"]
361 #[inline(always)]
362 pub fn clear_bit(self) -> &'a mut W {
363 self.bit(false)
364 }
365 #[doc = r"Writes raw bits to the field"]
366 #[inline(always)]
367 pub fn bit(self, value: bool) -> &'a mut W {
368 self.w.bits =
369 (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
370 self.w
371 }
372}
373#[doc = "GPIO_7 interrupt enable for AP"]
374pub type GPIO_7_INTR_EN_AP_A = GPIO_0_INTR_EN_AP_A;
375#[doc = "Field `GPIO_7_INTR_EN_AP` reader - GPIO_7 interrupt enable for AP"]
376pub type GPIO_7_INTR_EN_AP_R = GPIO_0_INTR_EN_AP_R;
377#[doc = "Field `GPIO_7_INTR_EN_AP` writer - GPIO_7 interrupt enable for AP"]
378pub struct GPIO_7_INTR_EN_AP_W<'a> {
379 w: &'a mut W,
380}
381impl<'a> GPIO_7_INTR_EN_AP_W<'a> {
382 #[doc = r"Writes `variant` to the field"]
383 #[inline(always)]
384 pub fn variant(self, variant: GPIO_7_INTR_EN_AP_A) -> &'a mut W {
385 self.bit(variant.into())
386 }
387 #[doc = "Disable the interrupt for the power domain"]
388 #[inline(always)]
389 pub fn enable(self) -> &'a mut W {
390 self.variant(GPIO_7_INTR_EN_AP_A::ENABLE)
391 }
392 #[doc = "Enable the interrupt for the power domain"]
393 #[inline(always)]
394 pub fn disable(self) -> &'a mut W {
395 self.variant(GPIO_7_INTR_EN_AP_A::DISABLE)
396 }
397 #[doc = r"Sets the field bit"]
398 #[inline(always)]
399 pub fn set_bit(self) -> &'a mut W {
400 self.bit(true)
401 }
402 #[doc = r"Clears the field bit"]
403 #[inline(always)]
404 pub fn clear_bit(self) -> &'a mut W {
405 self.bit(false)
406 }
407 #[doc = r"Writes raw bits to the field"]
408 #[inline(always)]
409 pub fn bit(self, value: bool) -> &'a mut W {
410 self.w.bits =
411 (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
412 self.w
413 }
414}
415impl R {
416 #[doc = "Bit 0 - GPIO_0 interrupt enable for AP"]
417 #[inline(always)]
418 pub fn gpio_0_intr_en_ap(&self) -> GPIO_0_INTR_EN_AP_R {
419 GPIO_0_INTR_EN_AP_R::new((self.bits & 0x01) != 0)
420 }
421 #[doc = "Bit 1 - GPIO_1 interrupt enable for AP"]
422 #[inline(always)]
423 pub fn gpio_1_intr_en_ap(&self) -> GPIO_1_INTR_EN_AP_R {
424 GPIO_1_INTR_EN_AP_R::new(((self.bits >> 1) & 0x01) != 0)
425 }
426 #[doc = "Bit 2 - GPIO_2 interrupt enable for AP"]
427 #[inline(always)]
428 pub fn gpio_2_intr_en_ap(&self) -> GPIO_2_INTR_EN_AP_R {
429 GPIO_2_INTR_EN_AP_R::new(((self.bits >> 2) & 0x01) != 0)
430 }
431 #[doc = "Bit 3 - GPIO_3 interrupt enable for AP"]
432 #[inline(always)]
433 pub fn gpio_3_intr_en_ap(&self) -> GPIO_3_INTR_EN_AP_R {
434 GPIO_3_INTR_EN_AP_R::new(((self.bits >> 3) & 0x01) != 0)
435 }
436 #[doc = "Bit 4 - GPIO_4 interrupt enable for AP"]
437 #[inline(always)]
438 pub fn gpio_4_intr_en_ap(&self) -> GPIO_4_INTR_EN_AP_R {
439 GPIO_4_INTR_EN_AP_R::new(((self.bits >> 4) & 0x01) != 0)
440 }
441 #[doc = "Bit 5 - GPIO_5 interrupt enable for AP"]
442 #[inline(always)]
443 pub fn gpio_5_intr_en_ap(&self) -> GPIO_5_INTR_EN_AP_R {
444 GPIO_5_INTR_EN_AP_R::new(((self.bits >> 5) & 0x01) != 0)
445 }
446 #[doc = "Bit 6 - GPIO_6 interrupt enable for AP"]
447 #[inline(always)]
448 pub fn gpio_6_intr_en_ap(&self) -> GPIO_6_INTR_EN_AP_R {
449 GPIO_6_INTR_EN_AP_R::new(((self.bits >> 6) & 0x01) != 0)
450 }
451 #[doc = "Bit 7 - GPIO_7 interrupt enable for AP"]
452 #[inline(always)]
453 pub fn gpio_7_intr_en_ap(&self) -> GPIO_7_INTR_EN_AP_R {
454 GPIO_7_INTR_EN_AP_R::new(((self.bits >> 7) & 0x01) != 0)
455 }
456}
457impl W {
458 #[doc = "Bit 0 - GPIO_0 interrupt enable for AP"]
459 #[inline(always)]
460 pub fn gpio_0_intr_en_ap(&mut self) -> GPIO_0_INTR_EN_AP_W {
461 GPIO_0_INTR_EN_AP_W { w: self }
462 }
463 #[doc = "Bit 1 - GPIO_1 interrupt enable for AP"]
464 #[inline(always)]
465 pub fn gpio_1_intr_en_ap(&mut self) -> GPIO_1_INTR_EN_AP_W {
466 GPIO_1_INTR_EN_AP_W { w: self }
467 }
468 #[doc = "Bit 2 - GPIO_2 interrupt enable for AP"]
469 #[inline(always)]
470 pub fn gpio_2_intr_en_ap(&mut self) -> GPIO_2_INTR_EN_AP_W {
471 GPIO_2_INTR_EN_AP_W { w: self }
472 }
473 #[doc = "Bit 3 - GPIO_3 interrupt enable for AP"]
474 #[inline(always)]
475 pub fn gpio_3_intr_en_ap(&mut self) -> GPIO_3_INTR_EN_AP_W {
476 GPIO_3_INTR_EN_AP_W { w: self }
477 }
478 #[doc = "Bit 4 - GPIO_4 interrupt enable for AP"]
479 #[inline(always)]
480 pub fn gpio_4_intr_en_ap(&mut self) -> GPIO_4_INTR_EN_AP_W {
481 GPIO_4_INTR_EN_AP_W { w: self }
482 }
483 #[doc = "Bit 5 - GPIO_5 interrupt enable for AP"]
484 #[inline(always)]
485 pub fn gpio_5_intr_en_ap(&mut self) -> GPIO_5_INTR_EN_AP_W {
486 GPIO_5_INTR_EN_AP_W { w: self }
487 }
488 #[doc = "Bit 6 - GPIO_6 interrupt enable for AP"]
489 #[inline(always)]
490 pub fn gpio_6_intr_en_ap(&mut self) -> GPIO_6_INTR_EN_AP_W {
491 GPIO_6_INTR_EN_AP_W { w: self }
492 }
493 #[doc = "Bit 7 - GPIO_7 interrupt enable for AP"]
494 #[inline(always)]
495 pub fn gpio_7_intr_en_ap(&mut self) -> GPIO_7_INTR_EN_AP_W {
496 GPIO_7_INTR_EN_AP_W { w: self }
497 }
498 #[doc = "Writes raw bits to the register."]
499 #[inline(always)]
500 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
501 self.0.bits(bits);
502 self
503 }
504}
505#[doc = "GPIO interrupt enable for AP\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpio_intr_en_ap](index.html) module"]
506pub struct GPIO_INTR_EN_AP_SPEC;
507impl crate::RegisterSpec for GPIO_INTR_EN_AP_SPEC {
508 type Ux = u32;
509}
510#[doc = "`read()` method returns [gpio_intr_en_ap::R](R) reader structure"]
511impl crate::Readable for GPIO_INTR_EN_AP_SPEC {
512 type Reader = R;
513}
514#[doc = "`write(|w| ..)` method takes [gpio_intr_en_ap::W](W) writer structure"]
515impl crate::Writable for GPIO_INTR_EN_AP_SPEC {
516 type Writer = W;
517}
518#[doc = "`reset()` method sets GPIO_INTR_EN_AP to value 0"]
519impl crate::Resettable for GPIO_INTR_EN_AP_SPEC {
520 #[inline(always)]
521 fn reset_value() -> Self::Ux {
522 0
523 }
524}