eos_s3/pmu/
fb_wu_src_mask_n.rs

1#[doc = "Register `FB_WU_SRC_MASK_N` reader"]
2pub struct R(crate::R<FB_WU_SRC_MASK_N_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<FB_WU_SRC_MASK_N_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<FB_WU_SRC_MASK_N_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<FB_WU_SRC_MASK_N_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `FB_WU_SRC_MASK_N` writer"]
17pub struct W(crate::W<FB_WU_SRC_MASK_N_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<FB_WU_SRC_MASK_N_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<FB_WU_SRC_MASK_N_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<FB_WU_SRC_MASK_N_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "If unmasked, GPIO0 interrupt will wake up FB.\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39pub enum SENSOR_GPIO_0_INT_A {
40    #[doc = "0: Mask the interrupt as a wake-up event source"]
41    MASK = 0,
42    #[doc = "1: Unmask the interrupt as a wake-up event source"]
43    UNMASK = 1,
44}
45impl From<SENSOR_GPIO_0_INT_A> for bool {
46    #[inline(always)]
47    fn from(variant: SENSOR_GPIO_0_INT_A) -> Self {
48        variant as u8 != 0
49    }
50}
51#[doc = "Field `Sensor_GPIO_0_INT` reader - If unmasked, GPIO0 interrupt will wake up FB."]
52pub struct SENSOR_GPIO_0_INT_R(crate::FieldReader<bool, SENSOR_GPIO_0_INT_A>);
53impl SENSOR_GPIO_0_INT_R {
54    #[inline(always)]
55    pub(crate) fn new(bits: bool) -> Self {
56        SENSOR_GPIO_0_INT_R(crate::FieldReader::new(bits))
57    }
58    #[doc = r"Get enumerated values variant"]
59    #[inline(always)]
60    pub fn variant(&self) -> SENSOR_GPIO_0_INT_A {
61        match self.bits {
62            false => SENSOR_GPIO_0_INT_A::MASK,
63            true => SENSOR_GPIO_0_INT_A::UNMASK,
64        }
65    }
66    #[doc = "Checks if the value of the field is `MASK`"]
67    #[inline(always)]
68    pub fn is_mask(&self) -> bool {
69        **self == SENSOR_GPIO_0_INT_A::MASK
70    }
71    #[doc = "Checks if the value of the field is `UNMASK`"]
72    #[inline(always)]
73    pub fn is_unmask(&self) -> bool {
74        **self == SENSOR_GPIO_0_INT_A::UNMASK
75    }
76}
77impl core::ops::Deref for SENSOR_GPIO_0_INT_R {
78    type Target = crate::FieldReader<bool, SENSOR_GPIO_0_INT_A>;
79    #[inline(always)]
80    fn deref(&self) -> &Self::Target {
81        &self.0
82    }
83}
84#[doc = "Field `Sensor_GPIO_0_INT` writer - If unmasked, GPIO0 interrupt will wake up FB."]
85pub struct SENSOR_GPIO_0_INT_W<'a> {
86    w: &'a mut W,
87}
88impl<'a> SENSOR_GPIO_0_INT_W<'a> {
89    #[doc = r"Writes `variant` to the field"]
90    #[inline(always)]
91    pub fn variant(self, variant: SENSOR_GPIO_0_INT_A) -> &'a mut W {
92        self.bit(variant.into())
93    }
94    #[doc = "Mask the interrupt as a wake-up event source"]
95    #[inline(always)]
96    pub fn mask(self) -> &'a mut W {
97        self.variant(SENSOR_GPIO_0_INT_A::MASK)
98    }
99    #[doc = "Unmask the interrupt as a wake-up event source"]
100    #[inline(always)]
101    pub fn unmask(self) -> &'a mut W {
102        self.variant(SENSOR_GPIO_0_INT_A::UNMASK)
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 = "If unmasked, GPIO1 interrupt will wake up FB."]
122pub type SENSOR_GPIO_1_INT_A = SENSOR_GPIO_0_INT_A;
123#[doc = "Field `Sensor_GPIO_1_INT` reader - If unmasked, GPIO1 interrupt will wake up FB."]
124pub type SENSOR_GPIO_1_INT_R = SENSOR_GPIO_0_INT_R;
125#[doc = "Field `Sensor_GPIO_1_INT` writer - If unmasked, GPIO1 interrupt will wake up FB."]
126pub struct SENSOR_GPIO_1_INT_W<'a> {
127    w: &'a mut W,
128}
129impl<'a> SENSOR_GPIO_1_INT_W<'a> {
130    #[doc = r"Writes `variant` to the field"]
131    #[inline(always)]
132    pub fn variant(self, variant: SENSOR_GPIO_1_INT_A) -> &'a mut W {
133        self.bit(variant.into())
134    }
135    #[doc = "Mask the interrupt as a wake-up event source"]
136    #[inline(always)]
137    pub fn mask(self) -> &'a mut W {
138        self.variant(SENSOR_GPIO_1_INT_A::MASK)
139    }
140    #[doc = "Unmask the interrupt as a wake-up event source"]
141    #[inline(always)]
142    pub fn unmask(self) -> &'a mut W {
143        self.variant(SENSOR_GPIO_1_INT_A::UNMASK)
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 = "If unmasked, GPIO2 interrupt will wake up FB."]
164pub type SENSOR_GPIO_2_INT_A = SENSOR_GPIO_0_INT_A;
165#[doc = "Field `Sensor_GPIO_2_INT` reader - If unmasked, GPIO2 interrupt will wake up FB."]
166pub type SENSOR_GPIO_2_INT_R = SENSOR_GPIO_0_INT_R;
167#[doc = "Field `Sensor_GPIO_2_INT` writer - If unmasked, GPIO2 interrupt will wake up FB."]
168pub struct SENSOR_GPIO_2_INT_W<'a> {
169    w: &'a mut W,
170}
171impl<'a> SENSOR_GPIO_2_INT_W<'a> {
172    #[doc = r"Writes `variant` to the field"]
173    #[inline(always)]
174    pub fn variant(self, variant: SENSOR_GPIO_2_INT_A) -> &'a mut W {
175        self.bit(variant.into())
176    }
177    #[doc = "Mask the interrupt as a wake-up event source"]
178    #[inline(always)]
179    pub fn mask(self) -> &'a mut W {
180        self.variant(SENSOR_GPIO_2_INT_A::MASK)
181    }
182    #[doc = "Unmask the interrupt as a wake-up event source"]
183    #[inline(always)]
184    pub fn unmask(self) -> &'a mut W {
185        self.variant(SENSOR_GPIO_2_INT_A::UNMASK)
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 = "If unmasked, GPIO3 interrupt will wake up FB."]
206pub type SENSOR_GPIO_3_INT_A = SENSOR_GPIO_0_INT_A;
207#[doc = "Field `Sensor_GPIO_3_INT` reader - If unmasked, GPIO3 interrupt will wake up FB."]
208pub type SENSOR_GPIO_3_INT_R = SENSOR_GPIO_0_INT_R;
209#[doc = "Field `Sensor_GPIO_3_INT` writer - If unmasked, GPIO3 interrupt will wake up FB."]
210pub struct SENSOR_GPIO_3_INT_W<'a> {
211    w: &'a mut W,
212}
213impl<'a> SENSOR_GPIO_3_INT_W<'a> {
214    #[doc = r"Writes `variant` to the field"]
215    #[inline(always)]
216    pub fn variant(self, variant: SENSOR_GPIO_3_INT_A) -> &'a mut W {
217        self.bit(variant.into())
218    }
219    #[doc = "Mask the interrupt as a wake-up event source"]
220    #[inline(always)]
221    pub fn mask(self) -> &'a mut W {
222        self.variant(SENSOR_GPIO_3_INT_A::MASK)
223    }
224    #[doc = "Unmask the interrupt as a wake-up event source"]
225    #[inline(always)]
226    pub fn unmask(self) -> &'a mut W {
227        self.variant(SENSOR_GPIO_3_INT_A::UNMASK)
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 = "If unmasked, GPIO4 interrupt will wake up FB."]
248pub type SENSOR_GPIO_4_INT_A = SENSOR_GPIO_0_INT_A;
249#[doc = "Field `Sensor_GPIO_4_INT` reader - If unmasked, GPIO4 interrupt will wake up FB."]
250pub type SENSOR_GPIO_4_INT_R = SENSOR_GPIO_0_INT_R;
251#[doc = "Field `Sensor_GPIO_4_INT` writer - If unmasked, GPIO4 interrupt will wake up FB."]
252pub struct SENSOR_GPIO_4_INT_W<'a> {
253    w: &'a mut W,
254}
255impl<'a> SENSOR_GPIO_4_INT_W<'a> {
256    #[doc = r"Writes `variant` to the field"]
257    #[inline(always)]
258    pub fn variant(self, variant: SENSOR_GPIO_4_INT_A) -> &'a mut W {
259        self.bit(variant.into())
260    }
261    #[doc = "Mask the interrupt as a wake-up event source"]
262    #[inline(always)]
263    pub fn mask(self) -> &'a mut W {
264        self.variant(SENSOR_GPIO_4_INT_A::MASK)
265    }
266    #[doc = "Unmask the interrupt as a wake-up event source"]
267    #[inline(always)]
268    pub fn unmask(self) -> &'a mut W {
269        self.variant(SENSOR_GPIO_4_INT_A::UNMASK)
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 = "If unmasked, GPIO5 interrupt will wake up FB."]
290pub type SENSOR_GPIO_5_INT_A = SENSOR_GPIO_0_INT_A;
291#[doc = "Field `Sensor_GPIO_5_INT` reader - If unmasked, GPIO5 interrupt will wake up FB."]
292pub type SENSOR_GPIO_5_INT_R = SENSOR_GPIO_0_INT_R;
293#[doc = "Field `Sensor_GPIO_5_INT` writer - If unmasked, GPIO5 interrupt will wake up FB."]
294pub struct SENSOR_GPIO_5_INT_W<'a> {
295    w: &'a mut W,
296}
297impl<'a> SENSOR_GPIO_5_INT_W<'a> {
298    #[doc = r"Writes `variant` to the field"]
299    #[inline(always)]
300    pub fn variant(self, variant: SENSOR_GPIO_5_INT_A) -> &'a mut W {
301        self.bit(variant.into())
302    }
303    #[doc = "Mask the interrupt as a wake-up event source"]
304    #[inline(always)]
305    pub fn mask(self) -> &'a mut W {
306        self.variant(SENSOR_GPIO_5_INT_A::MASK)
307    }
308    #[doc = "Unmask the interrupt as a wake-up event source"]
309    #[inline(always)]
310    pub fn unmask(self) -> &'a mut W {
311        self.variant(SENSOR_GPIO_5_INT_A::UNMASK)
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 = "If unmasked, GPIO6 interrupt will wake up FB."]
332pub type SENSOR_GPIO_6_INT_A = SENSOR_GPIO_0_INT_A;
333#[doc = "Field `Sensor_GPIO_6_INT` reader - If unmasked, GPIO6 interrupt will wake up FB."]
334pub type SENSOR_GPIO_6_INT_R = SENSOR_GPIO_0_INT_R;
335#[doc = "Field `Sensor_GPIO_6_INT` writer - If unmasked, GPIO6 interrupt will wake up FB."]
336pub struct SENSOR_GPIO_6_INT_W<'a> {
337    w: &'a mut W,
338}
339impl<'a> SENSOR_GPIO_6_INT_W<'a> {
340    #[doc = r"Writes `variant` to the field"]
341    #[inline(always)]
342    pub fn variant(self, variant: SENSOR_GPIO_6_INT_A) -> &'a mut W {
343        self.bit(variant.into())
344    }
345    #[doc = "Mask the interrupt as a wake-up event source"]
346    #[inline(always)]
347    pub fn mask(self) -> &'a mut W {
348        self.variant(SENSOR_GPIO_6_INT_A::MASK)
349    }
350    #[doc = "Unmask the interrupt as a wake-up event source"]
351    #[inline(always)]
352    pub fn unmask(self) -> &'a mut W {
353        self.variant(SENSOR_GPIO_6_INT_A::UNMASK)
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 = "If unmasked, GPIO7 interrupt will wake up FB."]
374pub type SENSOR_GPIO_7_INT_A = SENSOR_GPIO_0_INT_A;
375#[doc = "Field `Sensor_GPIO_7_INT` reader - If unmasked, GPIO7 interrupt will wake up FB."]
376pub type SENSOR_GPIO_7_INT_R = SENSOR_GPIO_0_INT_R;
377#[doc = "Field `Sensor_GPIO_7_INT` writer - If unmasked, GPIO7 interrupt will wake up FB."]
378pub struct SENSOR_GPIO_7_INT_W<'a> {
379    w: &'a mut W,
380}
381impl<'a> SENSOR_GPIO_7_INT_W<'a> {
382    #[doc = r"Writes `variant` to the field"]
383    #[inline(always)]
384    pub fn variant(self, variant: SENSOR_GPIO_7_INT_A) -> &'a mut W {
385        self.bit(variant.into())
386    }
387    #[doc = "Mask the interrupt as a wake-up event source"]
388    #[inline(always)]
389    pub fn mask(self) -> &'a mut W {
390        self.variant(SENSOR_GPIO_7_INT_A::MASK)
391    }
392    #[doc = "Unmask the interrupt as a wake-up event source"]
393    #[inline(always)]
394    pub fn unmask(self) -> &'a mut W {
395        self.variant(SENSOR_GPIO_7_INT_A::UNMASK)
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}
415#[doc = "If unmasked, kick off timer time-out event will wake up FB."]
416pub type KICKOFF_TIMER_TIME_OUT_A = SENSOR_GPIO_0_INT_A;
417#[doc = "Field `KickOff_Timer_Time_Out` reader - If unmasked, kick off timer time-out event will wake up FB."]
418pub type KICKOFF_TIMER_TIME_OUT_R = SENSOR_GPIO_0_INT_R;
419#[doc = "Field `KickOff_Timer_Time_Out` writer - If unmasked, kick off timer time-out event will wake up FB."]
420pub struct KICKOFF_TIMER_TIME_OUT_W<'a> {
421    w: &'a mut W,
422}
423impl<'a> KICKOFF_TIMER_TIME_OUT_W<'a> {
424    #[doc = r"Writes `variant` to the field"]
425    #[inline(always)]
426    pub fn variant(self, variant: KICKOFF_TIMER_TIME_OUT_A) -> &'a mut W {
427        self.bit(variant.into())
428    }
429    #[doc = "Mask the interrupt as a wake-up event source"]
430    #[inline(always)]
431    pub fn mask(self) -> &'a mut W {
432        self.variant(KICKOFF_TIMER_TIME_OUT_A::MASK)
433    }
434    #[doc = "Unmask the interrupt as a wake-up event source"]
435    #[inline(always)]
436    pub fn unmask(self) -> &'a mut W {
437        self.variant(KICKOFF_TIMER_TIME_OUT_A::UNMASK)
438    }
439    #[doc = r"Sets the field bit"]
440    #[inline(always)]
441    pub fn set_bit(self) -> &'a mut W {
442        self.bit(true)
443    }
444    #[doc = r"Clears the field bit"]
445    #[inline(always)]
446    pub fn clear_bit(self) -> &'a mut W {
447        self.bit(false)
448    }
449    #[doc = r"Writes raw bits to the field"]
450    #[inline(always)]
451    pub fn bit(self, value: bool) -> &'a mut W {
452        self.w.bits =
453            (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
454        self.w
455    }
456}
457impl R {
458    #[doc = "Bit 0 - If unmasked, GPIO0 interrupt will wake up FB."]
459    #[inline(always)]
460    pub fn sensor_gpio_0_int(&self) -> SENSOR_GPIO_0_INT_R {
461        SENSOR_GPIO_0_INT_R::new((self.bits & 0x01) != 0)
462    }
463    #[doc = "Bit 1 - If unmasked, GPIO1 interrupt will wake up FB."]
464    #[inline(always)]
465    pub fn sensor_gpio_1_int(&self) -> SENSOR_GPIO_1_INT_R {
466        SENSOR_GPIO_1_INT_R::new(((self.bits >> 1) & 0x01) != 0)
467    }
468    #[doc = "Bit 2 - If unmasked, GPIO2 interrupt will wake up FB."]
469    #[inline(always)]
470    pub fn sensor_gpio_2_int(&self) -> SENSOR_GPIO_2_INT_R {
471        SENSOR_GPIO_2_INT_R::new(((self.bits >> 2) & 0x01) != 0)
472    }
473    #[doc = "Bit 3 - If unmasked, GPIO3 interrupt will wake up FB."]
474    #[inline(always)]
475    pub fn sensor_gpio_3_int(&self) -> SENSOR_GPIO_3_INT_R {
476        SENSOR_GPIO_3_INT_R::new(((self.bits >> 3) & 0x01) != 0)
477    }
478    #[doc = "Bit 4 - If unmasked, GPIO4 interrupt will wake up FB."]
479    #[inline(always)]
480    pub fn sensor_gpio_4_int(&self) -> SENSOR_GPIO_4_INT_R {
481        SENSOR_GPIO_4_INT_R::new(((self.bits >> 4) & 0x01) != 0)
482    }
483    #[doc = "Bit 5 - If unmasked, GPIO5 interrupt will wake up FB."]
484    #[inline(always)]
485    pub fn sensor_gpio_5_int(&self) -> SENSOR_GPIO_5_INT_R {
486        SENSOR_GPIO_5_INT_R::new(((self.bits >> 5) & 0x01) != 0)
487    }
488    #[doc = "Bit 6 - If unmasked, GPIO6 interrupt will wake up FB."]
489    #[inline(always)]
490    pub fn sensor_gpio_6_int(&self) -> SENSOR_GPIO_6_INT_R {
491        SENSOR_GPIO_6_INT_R::new(((self.bits >> 6) & 0x01) != 0)
492    }
493    #[doc = "Bit 7 - If unmasked, GPIO7 interrupt will wake up FB."]
494    #[inline(always)]
495    pub fn sensor_gpio_7_int(&self) -> SENSOR_GPIO_7_INT_R {
496        SENSOR_GPIO_7_INT_R::new(((self.bits >> 7) & 0x01) != 0)
497    }
498    #[doc = "Bit 8 - If unmasked, kick off timer time-out event will wake up FB."]
499    #[inline(always)]
500    pub fn kick_off_timer_time_out(&self) -> KICKOFF_TIMER_TIME_OUT_R {
501        KICKOFF_TIMER_TIME_OUT_R::new(((self.bits >> 8) & 0x01) != 0)
502    }
503}
504impl W {
505    #[doc = "Bit 0 - If unmasked, GPIO0 interrupt will wake up FB."]
506    #[inline(always)]
507    pub fn sensor_gpio_0_int(&mut self) -> SENSOR_GPIO_0_INT_W {
508        SENSOR_GPIO_0_INT_W { w: self }
509    }
510    #[doc = "Bit 1 - If unmasked, GPIO1 interrupt will wake up FB."]
511    #[inline(always)]
512    pub fn sensor_gpio_1_int(&mut self) -> SENSOR_GPIO_1_INT_W {
513        SENSOR_GPIO_1_INT_W { w: self }
514    }
515    #[doc = "Bit 2 - If unmasked, GPIO2 interrupt will wake up FB."]
516    #[inline(always)]
517    pub fn sensor_gpio_2_int(&mut self) -> SENSOR_GPIO_2_INT_W {
518        SENSOR_GPIO_2_INT_W { w: self }
519    }
520    #[doc = "Bit 3 - If unmasked, GPIO3 interrupt will wake up FB."]
521    #[inline(always)]
522    pub fn sensor_gpio_3_int(&mut self) -> SENSOR_GPIO_3_INT_W {
523        SENSOR_GPIO_3_INT_W { w: self }
524    }
525    #[doc = "Bit 4 - If unmasked, GPIO4 interrupt will wake up FB."]
526    #[inline(always)]
527    pub fn sensor_gpio_4_int(&mut self) -> SENSOR_GPIO_4_INT_W {
528        SENSOR_GPIO_4_INT_W { w: self }
529    }
530    #[doc = "Bit 5 - If unmasked, GPIO5 interrupt will wake up FB."]
531    #[inline(always)]
532    pub fn sensor_gpio_5_int(&mut self) -> SENSOR_GPIO_5_INT_W {
533        SENSOR_GPIO_5_INT_W { w: self }
534    }
535    #[doc = "Bit 6 - If unmasked, GPIO6 interrupt will wake up FB."]
536    #[inline(always)]
537    pub fn sensor_gpio_6_int(&mut self) -> SENSOR_GPIO_6_INT_W {
538        SENSOR_GPIO_6_INT_W { w: self }
539    }
540    #[doc = "Bit 7 - If unmasked, GPIO7 interrupt will wake up FB."]
541    #[inline(always)]
542    pub fn sensor_gpio_7_int(&mut self) -> SENSOR_GPIO_7_INT_W {
543        SENSOR_GPIO_7_INT_W { w: self }
544    }
545    #[doc = "Bit 8 - If unmasked, kick off timer time-out event will wake up FB."]
546    #[inline(always)]
547    pub fn kick_off_timer_time_out(&mut self) -> KICKOFF_TIMER_TIME_OUT_W {
548        KICKOFF_TIMER_TIME_OUT_W { w: self }
549    }
550    #[doc = "Writes raw bits to the register."]
551    #[inline(always)]
552    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
553        self.0.bits(bits);
554        self
555    }
556}
557#[doc = "Control the masking of the FPGA FAbric wake-up event triggers\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 [fb_wu_src_mask_n](index.html) module"]
558pub struct FB_WU_SRC_MASK_N_SPEC;
559impl crate::RegisterSpec for FB_WU_SRC_MASK_N_SPEC {
560    type Ux = u32;
561}
562#[doc = "`read()` method returns [fb_wu_src_mask_n::R](R) reader structure"]
563impl crate::Readable for FB_WU_SRC_MASK_N_SPEC {
564    type Reader = R;
565}
566#[doc = "`write(|w| ..)` method takes [fb_wu_src_mask_n::W](W) writer structure"]
567impl crate::Writable for FB_WU_SRC_MASK_N_SPEC {
568    type Writer = W;
569}
570#[doc = "`reset()` method sets FB_WU_SRC_MASK_N to value 0"]
571impl crate::Resettable for FB_WU_SRC_MASK_N_SPEC {
572    #[inline(always)]
573    fn reset_value() -> Self::Ux {
574        0
575    }
576}