1#[doc = "Register `FFE_WU_SRC_MASK_N` reader"]
2pub struct R(crate::R<FFE_WU_SRC_MASK_N_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<FFE_WU_SRC_MASK_N_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<FFE_WU_SRC_MASK_N_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<FFE_WU_SRC_MASK_N_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `FFE_WU_SRC_MASK_N` writer"]
17pub struct W(crate::W<FFE_WU_SRC_MASK_N_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<FFE_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<FFE_WU_SRC_MASK_N_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<FFE_WU_SRC_MASK_N_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "If unmasked, kick off timer time-out event will wake up FFE.\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39pub enum KICKOFF_TIMER_TIME_OUT_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<KICKOFF_TIMER_TIME_OUT_A> for bool {
46 #[inline(always)]
47 fn from(variant: KICKOFF_TIMER_TIME_OUT_A) -> Self {
48 variant as u8 != 0
49 }
50}
51#[doc = "Field `KickOff_Timer_Time_Out` reader - If unmasked, kick off timer time-out event will wake up FFE."]
52pub struct KICKOFF_TIMER_TIME_OUT_R(
53 crate::FieldReader<bool, KICKOFF_TIMER_TIME_OUT_A>,
54);
55impl KICKOFF_TIMER_TIME_OUT_R {
56 #[inline(always)]
57 pub(crate) fn new(bits: bool) -> Self {
58 KICKOFF_TIMER_TIME_OUT_R(crate::FieldReader::new(bits))
59 }
60 #[doc = r"Get enumerated values variant"]
61 #[inline(always)]
62 pub fn variant(&self) -> KICKOFF_TIMER_TIME_OUT_A {
63 match self.bits {
64 false => KICKOFF_TIMER_TIME_OUT_A::MASK,
65 true => KICKOFF_TIMER_TIME_OUT_A::UNMASK,
66 }
67 }
68 #[doc = "Checks if the value of the field is `MASK`"]
69 #[inline(always)]
70 pub fn is_mask(&self) -> bool {
71 **self == KICKOFF_TIMER_TIME_OUT_A::MASK
72 }
73 #[doc = "Checks if the value of the field is `UNMASK`"]
74 #[inline(always)]
75 pub fn is_unmask(&self) -> bool {
76 **self == KICKOFF_TIMER_TIME_OUT_A::UNMASK
77 }
78}
79impl core::ops::Deref for KICKOFF_TIMER_TIME_OUT_R {
80 type Target = crate::FieldReader<bool, KICKOFF_TIMER_TIME_OUT_A>;
81 #[inline(always)]
82 fn deref(&self) -> &Self::Target {
83 &self.0
84 }
85}
86#[doc = "Field `KickOff_Timer_Time_Out` writer - If unmasked, kick off timer time-out event will wake up FFE."]
87pub struct KICKOFF_TIMER_TIME_OUT_W<'a> {
88 w: &'a mut W,
89}
90impl<'a> KICKOFF_TIMER_TIME_OUT_W<'a> {
91 #[doc = r"Writes `variant` to the field"]
92 #[inline(always)]
93 pub fn variant(self, variant: KICKOFF_TIMER_TIME_OUT_A) -> &'a mut W {
94 self.bit(variant.into())
95 }
96 #[doc = "Mask the interrupt as a wake-up event source"]
97 #[inline(always)]
98 pub fn mask(self) -> &'a mut W {
99 self.variant(KICKOFF_TIMER_TIME_OUT_A::MASK)
100 }
101 #[doc = "Unmask the interrupt as a wake-up event source"]
102 #[inline(always)]
103 pub fn unmask(self) -> &'a mut W {
104 self.variant(KICKOFF_TIMER_TIME_OUT_A::UNMASK)
105 }
106 #[doc = r"Sets the field bit"]
107 #[inline(always)]
108 pub fn set_bit(self) -> &'a mut W {
109 self.bit(true)
110 }
111 #[doc = r"Clears the field bit"]
112 #[inline(always)]
113 pub fn clear_bit(self) -> &'a mut W {
114 self.bit(false)
115 }
116 #[doc = r"Writes raw bits to the field"]
117 #[inline(always)]
118 pub fn bit(self, value: bool) -> &'a mut W {
119 self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
120 self.w
121 }
122}
123#[doc = "If unmasked, GPIO0 interrupt will wake up FFE."]
124pub type SENSOR_GPIO_0_INT_A = KICKOFF_TIMER_TIME_OUT_A;
125#[doc = "Field `Sensor_GPIO_0_INT` reader - If unmasked, GPIO0 interrupt will wake up FFE."]
126pub type SENSOR_GPIO_0_INT_R = KICKOFF_TIMER_TIME_OUT_R;
127#[doc = "Field `Sensor_GPIO_0_INT` writer - If unmasked, GPIO0 interrupt will wake up FFE."]
128pub struct SENSOR_GPIO_0_INT_W<'a> {
129 w: &'a mut W,
130}
131impl<'a> SENSOR_GPIO_0_INT_W<'a> {
132 #[doc = r"Writes `variant` to the field"]
133 #[inline(always)]
134 pub fn variant(self, variant: SENSOR_GPIO_0_INT_A) -> &'a mut W {
135 self.bit(variant.into())
136 }
137 #[doc = "Mask the interrupt as a wake-up event source"]
138 #[inline(always)]
139 pub fn mask(self) -> &'a mut W {
140 self.variant(SENSOR_GPIO_0_INT_A::MASK)
141 }
142 #[doc = "Unmask the interrupt as a wake-up event source"]
143 #[inline(always)]
144 pub fn unmask(self) -> &'a mut W {
145 self.variant(SENSOR_GPIO_0_INT_A::UNMASK)
146 }
147 #[doc = r"Sets the field bit"]
148 #[inline(always)]
149 pub fn set_bit(self) -> &'a mut W {
150 self.bit(true)
151 }
152 #[doc = r"Clears the field bit"]
153 #[inline(always)]
154 pub fn clear_bit(self) -> &'a mut W {
155 self.bit(false)
156 }
157 #[doc = r"Writes raw bits to the field"]
158 #[inline(always)]
159 pub fn bit(self, value: bool) -> &'a mut W {
160 self.w.bits =
161 (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
162 self.w
163 }
164}
165#[doc = "If unmasked, GPIO1 interrupt will wake up FFE."]
166pub type SENSOR_GPIO_1_INT_A = KICKOFF_TIMER_TIME_OUT_A;
167#[doc = "Field `Sensor_GPIO_1_INT` reader - If unmasked, GPIO1 interrupt will wake up FFE."]
168pub type SENSOR_GPIO_1_INT_R = KICKOFF_TIMER_TIME_OUT_R;
169#[doc = "Field `Sensor_GPIO_1_INT` writer - If unmasked, GPIO1 interrupt will wake up FFE."]
170pub struct SENSOR_GPIO_1_INT_W<'a> {
171 w: &'a mut W,
172}
173impl<'a> SENSOR_GPIO_1_INT_W<'a> {
174 #[doc = r"Writes `variant` to the field"]
175 #[inline(always)]
176 pub fn variant(self, variant: SENSOR_GPIO_1_INT_A) -> &'a mut W {
177 self.bit(variant.into())
178 }
179 #[doc = "Mask the interrupt as a wake-up event source"]
180 #[inline(always)]
181 pub fn mask(self) -> &'a mut W {
182 self.variant(SENSOR_GPIO_1_INT_A::MASK)
183 }
184 #[doc = "Unmask the interrupt as a wake-up event source"]
185 #[inline(always)]
186 pub fn unmask(self) -> &'a mut W {
187 self.variant(SENSOR_GPIO_1_INT_A::UNMASK)
188 }
189 #[doc = r"Sets the field bit"]
190 #[inline(always)]
191 pub fn set_bit(self) -> &'a mut W {
192 self.bit(true)
193 }
194 #[doc = r"Clears the field bit"]
195 #[inline(always)]
196 pub fn clear_bit(self) -> &'a mut W {
197 self.bit(false)
198 }
199 #[doc = r"Writes raw bits to the field"]
200 #[inline(always)]
201 pub fn bit(self, value: bool) -> &'a mut W {
202 self.w.bits =
203 (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
204 self.w
205 }
206}
207#[doc = "If unmasked, GPIO2 interrupt will wake up FFE."]
208pub type SENSOR_GPIO_2_INT_A = KICKOFF_TIMER_TIME_OUT_A;
209#[doc = "Field `Sensor_GPIO_2_INT` reader - If unmasked, GPIO2 interrupt will wake up FFE."]
210pub type SENSOR_GPIO_2_INT_R = KICKOFF_TIMER_TIME_OUT_R;
211#[doc = "Field `Sensor_GPIO_2_INT` writer - If unmasked, GPIO2 interrupt will wake up FFE."]
212pub struct SENSOR_GPIO_2_INT_W<'a> {
213 w: &'a mut W,
214}
215impl<'a> SENSOR_GPIO_2_INT_W<'a> {
216 #[doc = r"Writes `variant` to the field"]
217 #[inline(always)]
218 pub fn variant(self, variant: SENSOR_GPIO_2_INT_A) -> &'a mut W {
219 self.bit(variant.into())
220 }
221 #[doc = "Mask the interrupt as a wake-up event source"]
222 #[inline(always)]
223 pub fn mask(self) -> &'a mut W {
224 self.variant(SENSOR_GPIO_2_INT_A::MASK)
225 }
226 #[doc = "Unmask the interrupt as a wake-up event source"]
227 #[inline(always)]
228 pub fn unmask(self) -> &'a mut W {
229 self.variant(SENSOR_GPIO_2_INT_A::UNMASK)
230 }
231 #[doc = r"Sets the field bit"]
232 #[inline(always)]
233 pub fn set_bit(self) -> &'a mut W {
234 self.bit(true)
235 }
236 #[doc = r"Clears the field bit"]
237 #[inline(always)]
238 pub fn clear_bit(self) -> &'a mut W {
239 self.bit(false)
240 }
241 #[doc = r"Writes raw bits to the field"]
242 #[inline(always)]
243 pub fn bit(self, value: bool) -> &'a mut W {
244 self.w.bits =
245 (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
246 self.w
247 }
248}
249#[doc = "If unmasked, GPIO3 interrupt will wake up FFE."]
250pub type SENSOR_GPIO_3_INT_A = KICKOFF_TIMER_TIME_OUT_A;
251#[doc = "Field `Sensor_GPIO_3_INT` reader - If unmasked, GPIO3 interrupt will wake up FFE."]
252pub type SENSOR_GPIO_3_INT_R = KICKOFF_TIMER_TIME_OUT_R;
253#[doc = "Field `Sensor_GPIO_3_INT` writer - If unmasked, GPIO3 interrupt will wake up FFE."]
254pub struct SENSOR_GPIO_3_INT_W<'a> {
255 w: &'a mut W,
256}
257impl<'a> SENSOR_GPIO_3_INT_W<'a> {
258 #[doc = r"Writes `variant` to the field"]
259 #[inline(always)]
260 pub fn variant(self, variant: SENSOR_GPIO_3_INT_A) -> &'a mut W {
261 self.bit(variant.into())
262 }
263 #[doc = "Mask the interrupt as a wake-up event source"]
264 #[inline(always)]
265 pub fn mask(self) -> &'a mut W {
266 self.variant(SENSOR_GPIO_3_INT_A::MASK)
267 }
268 #[doc = "Unmask the interrupt as a wake-up event source"]
269 #[inline(always)]
270 pub fn unmask(self) -> &'a mut W {
271 self.variant(SENSOR_GPIO_3_INT_A::UNMASK)
272 }
273 #[doc = r"Sets the field bit"]
274 #[inline(always)]
275 pub fn set_bit(self) -> &'a mut W {
276 self.bit(true)
277 }
278 #[doc = r"Clears the field bit"]
279 #[inline(always)]
280 pub fn clear_bit(self) -> &'a mut W {
281 self.bit(false)
282 }
283 #[doc = r"Writes raw bits to the field"]
284 #[inline(always)]
285 pub fn bit(self, value: bool) -> &'a mut W {
286 self.w.bits =
287 (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
288 self.w
289 }
290}
291#[doc = "If unmasked, GPIO4 interrupt will wake up FFE."]
292pub type SENSOR_GPIO_4_INT_A = KICKOFF_TIMER_TIME_OUT_A;
293#[doc = "Field `Sensor_GPIO_4_INT` reader - If unmasked, GPIO4 interrupt will wake up FFE."]
294pub type SENSOR_GPIO_4_INT_R = KICKOFF_TIMER_TIME_OUT_R;
295#[doc = "Field `Sensor_GPIO_4_INT` writer - If unmasked, GPIO4 interrupt will wake up FFE."]
296pub struct SENSOR_GPIO_4_INT_W<'a> {
297 w: &'a mut W,
298}
299impl<'a> SENSOR_GPIO_4_INT_W<'a> {
300 #[doc = r"Writes `variant` to the field"]
301 #[inline(always)]
302 pub fn variant(self, variant: SENSOR_GPIO_4_INT_A) -> &'a mut W {
303 self.bit(variant.into())
304 }
305 #[doc = "Mask the interrupt as a wake-up event source"]
306 #[inline(always)]
307 pub fn mask(self) -> &'a mut W {
308 self.variant(SENSOR_GPIO_4_INT_A::MASK)
309 }
310 #[doc = "Unmask the interrupt as a wake-up event source"]
311 #[inline(always)]
312 pub fn unmask(self) -> &'a mut W {
313 self.variant(SENSOR_GPIO_4_INT_A::UNMASK)
314 }
315 #[doc = r"Sets the field bit"]
316 #[inline(always)]
317 pub fn set_bit(self) -> &'a mut W {
318 self.bit(true)
319 }
320 #[doc = r"Clears the field bit"]
321 #[inline(always)]
322 pub fn clear_bit(self) -> &'a mut W {
323 self.bit(false)
324 }
325 #[doc = r"Writes raw bits to the field"]
326 #[inline(always)]
327 pub fn bit(self, value: bool) -> &'a mut W {
328 self.w.bits =
329 (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
330 self.w
331 }
332}
333#[doc = "If unmasked, GPIO5 interrupt will wake up FFE."]
334pub type SENSOR_GPIO_5_INT_A = KICKOFF_TIMER_TIME_OUT_A;
335#[doc = "Field `Sensor_GPIO_5_INT` reader - If unmasked, GPIO5 interrupt will wake up FFE."]
336pub type SENSOR_GPIO_5_INT_R = KICKOFF_TIMER_TIME_OUT_R;
337#[doc = "Field `Sensor_GPIO_5_INT` writer - If unmasked, GPIO5 interrupt will wake up FFE."]
338pub struct SENSOR_GPIO_5_INT_W<'a> {
339 w: &'a mut W,
340}
341impl<'a> SENSOR_GPIO_5_INT_W<'a> {
342 #[doc = r"Writes `variant` to the field"]
343 #[inline(always)]
344 pub fn variant(self, variant: SENSOR_GPIO_5_INT_A) -> &'a mut W {
345 self.bit(variant.into())
346 }
347 #[doc = "Mask the interrupt as a wake-up event source"]
348 #[inline(always)]
349 pub fn mask(self) -> &'a mut W {
350 self.variant(SENSOR_GPIO_5_INT_A::MASK)
351 }
352 #[doc = "Unmask the interrupt as a wake-up event source"]
353 #[inline(always)]
354 pub fn unmask(self) -> &'a mut W {
355 self.variant(SENSOR_GPIO_5_INT_A::UNMASK)
356 }
357 #[doc = r"Sets the field bit"]
358 #[inline(always)]
359 pub fn set_bit(self) -> &'a mut W {
360 self.bit(true)
361 }
362 #[doc = r"Clears the field bit"]
363 #[inline(always)]
364 pub fn clear_bit(self) -> &'a mut W {
365 self.bit(false)
366 }
367 #[doc = r"Writes raw bits to the field"]
368 #[inline(always)]
369 pub fn bit(self, value: bool) -> &'a mut W {
370 self.w.bits =
371 (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
372 self.w
373 }
374}
375#[doc = "If unmasked, GPIO6 interrupt will wake up FFE."]
376pub type SENSOR_GPIO_6_INT_A = KICKOFF_TIMER_TIME_OUT_A;
377#[doc = "Field `Sensor_GPIO_6_INT` reader - If unmasked, GPIO6 interrupt will wake up FFE."]
378pub type SENSOR_GPIO_6_INT_R = KICKOFF_TIMER_TIME_OUT_R;
379#[doc = "Field `Sensor_GPIO_6_INT` writer - If unmasked, GPIO6 interrupt will wake up FFE."]
380pub struct SENSOR_GPIO_6_INT_W<'a> {
381 w: &'a mut W,
382}
383impl<'a> SENSOR_GPIO_6_INT_W<'a> {
384 #[doc = r"Writes `variant` to the field"]
385 #[inline(always)]
386 pub fn variant(self, variant: SENSOR_GPIO_6_INT_A) -> &'a mut W {
387 self.bit(variant.into())
388 }
389 #[doc = "Mask the interrupt as a wake-up event source"]
390 #[inline(always)]
391 pub fn mask(self) -> &'a mut W {
392 self.variant(SENSOR_GPIO_6_INT_A::MASK)
393 }
394 #[doc = "Unmask the interrupt as a wake-up event source"]
395 #[inline(always)]
396 pub fn unmask(self) -> &'a mut W {
397 self.variant(SENSOR_GPIO_6_INT_A::UNMASK)
398 }
399 #[doc = r"Sets the field bit"]
400 #[inline(always)]
401 pub fn set_bit(self) -> &'a mut W {
402 self.bit(true)
403 }
404 #[doc = r"Clears the field bit"]
405 #[inline(always)]
406 pub fn clear_bit(self) -> &'a mut W {
407 self.bit(false)
408 }
409 #[doc = r"Writes raw bits to the field"]
410 #[inline(always)]
411 pub fn bit(self, value: bool) -> &'a mut W {
412 self.w.bits =
413 (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
414 self.w
415 }
416}
417#[doc = "If unmasked, GPIO7 interrupt will wake up FFE."]
418pub type SENSOR_GPIO_7_INT_A = KICKOFF_TIMER_TIME_OUT_A;
419#[doc = "Field `Sensor_GPIO_7_INT` reader - If unmasked, GPIO7 interrupt will wake up FFE."]
420pub type SENSOR_GPIO_7_INT_R = KICKOFF_TIMER_TIME_OUT_R;
421#[doc = "Field `Sensor_GPIO_7_INT` writer - If unmasked, GPIO7 interrupt will wake up FFE."]
422pub struct SENSOR_GPIO_7_INT_W<'a> {
423 w: &'a mut W,
424}
425impl<'a> SENSOR_GPIO_7_INT_W<'a> {
426 #[doc = r"Writes `variant` to the field"]
427 #[inline(always)]
428 pub fn variant(self, variant: SENSOR_GPIO_7_INT_A) -> &'a mut W {
429 self.bit(variant.into())
430 }
431 #[doc = "Mask the interrupt as a wake-up event source"]
432 #[inline(always)]
433 pub fn mask(self) -> &'a mut W {
434 self.variant(SENSOR_GPIO_7_INT_A::MASK)
435 }
436 #[doc = "Unmask the interrupt as a wake-up event source"]
437 #[inline(always)]
438 pub fn unmask(self) -> &'a mut W {
439 self.variant(SENSOR_GPIO_7_INT_A::UNMASK)
440 }
441 #[doc = r"Sets the field bit"]
442 #[inline(always)]
443 pub fn set_bit(self) -> &'a mut W {
444 self.bit(true)
445 }
446 #[doc = r"Clears the field bit"]
447 #[inline(always)]
448 pub fn clear_bit(self) -> &'a mut W {
449 self.bit(false)
450 }
451 #[doc = r"Writes raw bits to the field"]
452 #[inline(always)]
453 pub fn bit(self, value: bool) -> &'a mut W {
454 self.w.bits =
455 (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
456 self.w
457 }
458}
459impl R {
460 #[doc = "Bit 0 - If unmasked, kick off timer time-out event will wake up FFE."]
461 #[inline(always)]
462 pub fn kick_off_timer_time_out(&self) -> KICKOFF_TIMER_TIME_OUT_R {
463 KICKOFF_TIMER_TIME_OUT_R::new((self.bits & 0x01) != 0)
464 }
465 #[doc = "Bit 1 - If unmasked, GPIO0 interrupt will wake up FFE."]
466 #[inline(always)]
467 pub fn sensor_gpio_0_int(&self) -> SENSOR_GPIO_0_INT_R {
468 SENSOR_GPIO_0_INT_R::new(((self.bits >> 1) & 0x01) != 0)
469 }
470 #[doc = "Bit 2 - If unmasked, GPIO1 interrupt will wake up FFE."]
471 #[inline(always)]
472 pub fn sensor_gpio_1_int(&self) -> SENSOR_GPIO_1_INT_R {
473 SENSOR_GPIO_1_INT_R::new(((self.bits >> 2) & 0x01) != 0)
474 }
475 #[doc = "Bit 3 - If unmasked, GPIO2 interrupt will wake up FFE."]
476 #[inline(always)]
477 pub fn sensor_gpio_2_int(&self) -> SENSOR_GPIO_2_INT_R {
478 SENSOR_GPIO_2_INT_R::new(((self.bits >> 3) & 0x01) != 0)
479 }
480 #[doc = "Bit 4 - If unmasked, GPIO3 interrupt will wake up FFE."]
481 #[inline(always)]
482 pub fn sensor_gpio_3_int(&self) -> SENSOR_GPIO_3_INT_R {
483 SENSOR_GPIO_3_INT_R::new(((self.bits >> 4) & 0x01) != 0)
484 }
485 #[doc = "Bit 5 - If unmasked, GPIO4 interrupt will wake up FFE."]
486 #[inline(always)]
487 pub fn sensor_gpio_4_int(&self) -> SENSOR_GPIO_4_INT_R {
488 SENSOR_GPIO_4_INT_R::new(((self.bits >> 5) & 0x01) != 0)
489 }
490 #[doc = "Bit 6 - If unmasked, GPIO5 interrupt will wake up FFE."]
491 #[inline(always)]
492 pub fn sensor_gpio_5_int(&self) -> SENSOR_GPIO_5_INT_R {
493 SENSOR_GPIO_5_INT_R::new(((self.bits >> 6) & 0x01) != 0)
494 }
495 #[doc = "Bit 7 - If unmasked, GPIO6 interrupt will wake up FFE."]
496 #[inline(always)]
497 pub fn sensor_gpio_6_int(&self) -> SENSOR_GPIO_6_INT_R {
498 SENSOR_GPIO_6_INT_R::new(((self.bits >> 7) & 0x01) != 0)
499 }
500 #[doc = "Bit 8 - If unmasked, GPIO7 interrupt will wake up FFE."]
501 #[inline(always)]
502 pub fn sensor_gpio_7_int(&self) -> SENSOR_GPIO_7_INT_R {
503 SENSOR_GPIO_7_INT_R::new(((self.bits >> 8) & 0x01) != 0)
504 }
505}
506impl W {
507 #[doc = "Bit 0 - If unmasked, kick off timer time-out event will wake up FFE."]
508 #[inline(always)]
509 pub fn kick_off_timer_time_out(&mut self) -> KICKOFF_TIMER_TIME_OUT_W {
510 KICKOFF_TIMER_TIME_OUT_W { w: self }
511 }
512 #[doc = "Bit 1 - If unmasked, GPIO0 interrupt will wake up FFE."]
513 #[inline(always)]
514 pub fn sensor_gpio_0_int(&mut self) -> SENSOR_GPIO_0_INT_W {
515 SENSOR_GPIO_0_INT_W { w: self }
516 }
517 #[doc = "Bit 2 - If unmasked, GPIO1 interrupt will wake up FFE."]
518 #[inline(always)]
519 pub fn sensor_gpio_1_int(&mut self) -> SENSOR_GPIO_1_INT_W {
520 SENSOR_GPIO_1_INT_W { w: self }
521 }
522 #[doc = "Bit 3 - If unmasked, GPIO2 interrupt will wake up FFE."]
523 #[inline(always)]
524 pub fn sensor_gpio_2_int(&mut self) -> SENSOR_GPIO_2_INT_W {
525 SENSOR_GPIO_2_INT_W { w: self }
526 }
527 #[doc = "Bit 4 - If unmasked, GPIO3 interrupt will wake up FFE."]
528 #[inline(always)]
529 pub fn sensor_gpio_3_int(&mut self) -> SENSOR_GPIO_3_INT_W {
530 SENSOR_GPIO_3_INT_W { w: self }
531 }
532 #[doc = "Bit 5 - If unmasked, GPIO4 interrupt will wake up FFE."]
533 #[inline(always)]
534 pub fn sensor_gpio_4_int(&mut self) -> SENSOR_GPIO_4_INT_W {
535 SENSOR_GPIO_4_INT_W { w: self }
536 }
537 #[doc = "Bit 6 - If unmasked, GPIO5 interrupt will wake up FFE."]
538 #[inline(always)]
539 pub fn sensor_gpio_5_int(&mut self) -> SENSOR_GPIO_5_INT_W {
540 SENSOR_GPIO_5_INT_W { w: self }
541 }
542 #[doc = "Bit 7 - If unmasked, GPIO6 interrupt will wake up FFE."]
543 #[inline(always)]
544 pub fn sensor_gpio_6_int(&mut self) -> SENSOR_GPIO_6_INT_W {
545 SENSOR_GPIO_6_INT_W { w: self }
546 }
547 #[doc = "Bit 8 - If unmasked, GPIO7 interrupt will wake up FFE."]
548 #[inline(always)]
549 pub fn sensor_gpio_7_int(&mut self) -> SENSOR_GPIO_7_INT_W {
550 SENSOR_GPIO_7_INT_W { w: self }
551 }
552 #[doc = "Writes raw bits to the register."]
553 #[inline(always)]
554 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
555 self.0.bits(bits);
556 self
557 }
558}
559#[doc = "Control the masking of the Flexible Fusion Engine 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 [ffe_wu_src_mask_n](index.html) module"]
560pub struct FFE_WU_SRC_MASK_N_SPEC;
561impl crate::RegisterSpec for FFE_WU_SRC_MASK_N_SPEC {
562 type Ux = u32;
563}
564#[doc = "`read()` method returns [ffe_wu_src_mask_n::R](R) reader structure"]
565impl crate::Readable for FFE_WU_SRC_MASK_N_SPEC {
566 type Reader = R;
567}
568#[doc = "`write(|w| ..)` method takes [ffe_wu_src_mask_n::W](W) writer structure"]
569impl crate::Writable for FFE_WU_SRC_MASK_N_SPEC {
570 type Writer = W;
571}
572#[doc = "`reset()` method sets FFE_WU_SRC_MASK_N to value 0"]
573impl crate::Resettable for FFE_WU_SRC_MASK_N_SPEC {
574 #[inline(always)]
575 fn reset_value() -> Self::Ux {
576 0
577 }
578}