atsamd51n20a/tcc0/
drvctrl.rs

1#[doc = "Reader of register DRVCTRL"]
2pub type R = crate::R<u32, super::DRVCTRL>;
3#[doc = "Writer for register DRVCTRL"]
4pub type W = crate::W<u32, super::DRVCTRL>;
5#[doc = "Register DRVCTRL `reset()`'s with value 0"]
6impl crate::ResetValue for super::DRVCTRL {
7    type Type = u32;
8    #[inline(always)]
9    fn reset_value() -> Self::Type {
10        0
11    }
12}
13#[doc = "Reader of field `NRE0`"]
14pub type NRE0_R = crate::R<bool, bool>;
15#[doc = "Write proxy for field `NRE0`"]
16pub struct NRE0_W<'a> {
17    w: &'a mut W,
18}
19impl<'a> NRE0_W<'a> {
20    #[doc = r"Sets the field bit"]
21    #[inline(always)]
22    pub fn set_bit(self) -> &'a mut W {
23        self.bit(true)
24    }
25    #[doc = r"Clears the field bit"]
26    #[inline(always)]
27    pub fn clear_bit(self) -> &'a mut W {
28        self.bit(false)
29    }
30    #[doc = r"Writes raw bits to the field"]
31    #[inline(always)]
32    pub fn bit(self, value: bool) -> &'a mut W {
33        self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
34        self.w
35    }
36}
37#[doc = "Reader of field `NRE1`"]
38pub type NRE1_R = crate::R<bool, bool>;
39#[doc = "Write proxy for field `NRE1`"]
40pub struct NRE1_W<'a> {
41    w: &'a mut W,
42}
43impl<'a> NRE1_W<'a> {
44    #[doc = r"Sets the field bit"]
45    #[inline(always)]
46    pub fn set_bit(self) -> &'a mut W {
47        self.bit(true)
48    }
49    #[doc = r"Clears the field bit"]
50    #[inline(always)]
51    pub fn clear_bit(self) -> &'a mut W {
52        self.bit(false)
53    }
54    #[doc = r"Writes raw bits to the field"]
55    #[inline(always)]
56    pub fn bit(self, value: bool) -> &'a mut W {
57        self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
58        self.w
59    }
60}
61#[doc = "Reader of field `NRE2`"]
62pub type NRE2_R = crate::R<bool, bool>;
63#[doc = "Write proxy for field `NRE2`"]
64pub struct NRE2_W<'a> {
65    w: &'a mut W,
66}
67impl<'a> NRE2_W<'a> {
68    #[doc = r"Sets the field bit"]
69    #[inline(always)]
70    pub fn set_bit(self) -> &'a mut W {
71        self.bit(true)
72    }
73    #[doc = r"Clears the field bit"]
74    #[inline(always)]
75    pub fn clear_bit(self) -> &'a mut W {
76        self.bit(false)
77    }
78    #[doc = r"Writes raw bits to the field"]
79    #[inline(always)]
80    pub fn bit(self, value: bool) -> &'a mut W {
81        self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
82        self.w
83    }
84}
85#[doc = "Reader of field `NRE3`"]
86pub type NRE3_R = crate::R<bool, bool>;
87#[doc = "Write proxy for field `NRE3`"]
88pub struct NRE3_W<'a> {
89    w: &'a mut W,
90}
91impl<'a> NRE3_W<'a> {
92    #[doc = r"Sets the field bit"]
93    #[inline(always)]
94    pub fn set_bit(self) -> &'a mut W {
95        self.bit(true)
96    }
97    #[doc = r"Clears the field bit"]
98    #[inline(always)]
99    pub fn clear_bit(self) -> &'a mut W {
100        self.bit(false)
101    }
102    #[doc = r"Writes raw bits to the field"]
103    #[inline(always)]
104    pub fn bit(self, value: bool) -> &'a mut W {
105        self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
106        self.w
107    }
108}
109#[doc = "Reader of field `NRE4`"]
110pub type NRE4_R = crate::R<bool, bool>;
111#[doc = "Write proxy for field `NRE4`"]
112pub struct NRE4_W<'a> {
113    w: &'a mut W,
114}
115impl<'a> NRE4_W<'a> {
116    #[doc = r"Sets the field bit"]
117    #[inline(always)]
118    pub fn set_bit(self) -> &'a mut W {
119        self.bit(true)
120    }
121    #[doc = r"Clears the field bit"]
122    #[inline(always)]
123    pub fn clear_bit(self) -> &'a mut W {
124        self.bit(false)
125    }
126    #[doc = r"Writes raw bits to the field"]
127    #[inline(always)]
128    pub fn bit(self, value: bool) -> &'a mut W {
129        self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
130        self.w
131    }
132}
133#[doc = "Reader of field `NRE5`"]
134pub type NRE5_R = crate::R<bool, bool>;
135#[doc = "Write proxy for field `NRE5`"]
136pub struct NRE5_W<'a> {
137    w: &'a mut W,
138}
139impl<'a> NRE5_W<'a> {
140    #[doc = r"Sets the field bit"]
141    #[inline(always)]
142    pub fn set_bit(self) -> &'a mut W {
143        self.bit(true)
144    }
145    #[doc = r"Clears the field bit"]
146    #[inline(always)]
147    pub fn clear_bit(self) -> &'a mut W {
148        self.bit(false)
149    }
150    #[doc = r"Writes raw bits to the field"]
151    #[inline(always)]
152    pub fn bit(self, value: bool) -> &'a mut W {
153        self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
154        self.w
155    }
156}
157#[doc = "Reader of field `NRE6`"]
158pub type NRE6_R = crate::R<bool, bool>;
159#[doc = "Write proxy for field `NRE6`"]
160pub struct NRE6_W<'a> {
161    w: &'a mut W,
162}
163impl<'a> NRE6_W<'a> {
164    #[doc = r"Sets the field bit"]
165    #[inline(always)]
166    pub fn set_bit(self) -> &'a mut W {
167        self.bit(true)
168    }
169    #[doc = r"Clears the field bit"]
170    #[inline(always)]
171    pub fn clear_bit(self) -> &'a mut W {
172        self.bit(false)
173    }
174    #[doc = r"Writes raw bits to the field"]
175    #[inline(always)]
176    pub fn bit(self, value: bool) -> &'a mut W {
177        self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
178        self.w
179    }
180}
181#[doc = "Reader of field `NRE7`"]
182pub type NRE7_R = crate::R<bool, bool>;
183#[doc = "Write proxy for field `NRE7`"]
184pub struct NRE7_W<'a> {
185    w: &'a mut W,
186}
187impl<'a> NRE7_W<'a> {
188    #[doc = r"Sets the field bit"]
189    #[inline(always)]
190    pub fn set_bit(self) -> &'a mut W {
191        self.bit(true)
192    }
193    #[doc = r"Clears the field bit"]
194    #[inline(always)]
195    pub fn clear_bit(self) -> &'a mut W {
196        self.bit(false)
197    }
198    #[doc = r"Writes raw bits to the field"]
199    #[inline(always)]
200    pub fn bit(self, value: bool) -> &'a mut W {
201        self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
202        self.w
203    }
204}
205#[doc = "Reader of field `NRV0`"]
206pub type NRV0_R = crate::R<bool, bool>;
207#[doc = "Write proxy for field `NRV0`"]
208pub struct NRV0_W<'a> {
209    w: &'a mut W,
210}
211impl<'a> NRV0_W<'a> {
212    #[doc = r"Sets the field bit"]
213    #[inline(always)]
214    pub fn set_bit(self) -> &'a mut W {
215        self.bit(true)
216    }
217    #[doc = r"Clears the field bit"]
218    #[inline(always)]
219    pub fn clear_bit(self) -> &'a mut W {
220        self.bit(false)
221    }
222    #[doc = r"Writes raw bits to the field"]
223    #[inline(always)]
224    pub fn bit(self, value: bool) -> &'a mut W {
225        self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
226        self.w
227    }
228}
229#[doc = "Reader of field `NRV1`"]
230pub type NRV1_R = crate::R<bool, bool>;
231#[doc = "Write proxy for field `NRV1`"]
232pub struct NRV1_W<'a> {
233    w: &'a mut W,
234}
235impl<'a> NRV1_W<'a> {
236    #[doc = r"Sets the field bit"]
237    #[inline(always)]
238    pub fn set_bit(self) -> &'a mut W {
239        self.bit(true)
240    }
241    #[doc = r"Clears the field bit"]
242    #[inline(always)]
243    pub fn clear_bit(self) -> &'a mut W {
244        self.bit(false)
245    }
246    #[doc = r"Writes raw bits to the field"]
247    #[inline(always)]
248    pub fn bit(self, value: bool) -> &'a mut W {
249        self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
250        self.w
251    }
252}
253#[doc = "Reader of field `NRV2`"]
254pub type NRV2_R = crate::R<bool, bool>;
255#[doc = "Write proxy for field `NRV2`"]
256pub struct NRV2_W<'a> {
257    w: &'a mut W,
258}
259impl<'a> NRV2_W<'a> {
260    #[doc = r"Sets the field bit"]
261    #[inline(always)]
262    pub fn set_bit(self) -> &'a mut W {
263        self.bit(true)
264    }
265    #[doc = r"Clears the field bit"]
266    #[inline(always)]
267    pub fn clear_bit(self) -> &'a mut W {
268        self.bit(false)
269    }
270    #[doc = r"Writes raw bits to the field"]
271    #[inline(always)]
272    pub fn bit(self, value: bool) -> &'a mut W {
273        self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
274        self.w
275    }
276}
277#[doc = "Reader of field `NRV3`"]
278pub type NRV3_R = crate::R<bool, bool>;
279#[doc = "Write proxy for field `NRV3`"]
280pub struct NRV3_W<'a> {
281    w: &'a mut W,
282}
283impl<'a> NRV3_W<'a> {
284    #[doc = r"Sets the field bit"]
285    #[inline(always)]
286    pub fn set_bit(self) -> &'a mut W {
287        self.bit(true)
288    }
289    #[doc = r"Clears the field bit"]
290    #[inline(always)]
291    pub fn clear_bit(self) -> &'a mut W {
292        self.bit(false)
293    }
294    #[doc = r"Writes raw bits to the field"]
295    #[inline(always)]
296    pub fn bit(self, value: bool) -> &'a mut W {
297        self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
298        self.w
299    }
300}
301#[doc = "Reader of field `NRV4`"]
302pub type NRV4_R = crate::R<bool, bool>;
303#[doc = "Write proxy for field `NRV4`"]
304pub struct NRV4_W<'a> {
305    w: &'a mut W,
306}
307impl<'a> NRV4_W<'a> {
308    #[doc = r"Sets the field bit"]
309    #[inline(always)]
310    pub fn set_bit(self) -> &'a mut W {
311        self.bit(true)
312    }
313    #[doc = r"Clears the field bit"]
314    #[inline(always)]
315    pub fn clear_bit(self) -> &'a mut W {
316        self.bit(false)
317    }
318    #[doc = r"Writes raw bits to the field"]
319    #[inline(always)]
320    pub fn bit(self, value: bool) -> &'a mut W {
321        self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
322        self.w
323    }
324}
325#[doc = "Reader of field `NRV5`"]
326pub type NRV5_R = crate::R<bool, bool>;
327#[doc = "Write proxy for field `NRV5`"]
328pub struct NRV5_W<'a> {
329    w: &'a mut W,
330}
331impl<'a> NRV5_W<'a> {
332    #[doc = r"Sets the field bit"]
333    #[inline(always)]
334    pub fn set_bit(self) -> &'a mut W {
335        self.bit(true)
336    }
337    #[doc = r"Clears the field bit"]
338    #[inline(always)]
339    pub fn clear_bit(self) -> &'a mut W {
340        self.bit(false)
341    }
342    #[doc = r"Writes raw bits to the field"]
343    #[inline(always)]
344    pub fn bit(self, value: bool) -> &'a mut W {
345        self.w.bits = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
346        self.w
347    }
348}
349#[doc = "Reader of field `NRV6`"]
350pub type NRV6_R = crate::R<bool, bool>;
351#[doc = "Write proxy for field `NRV6`"]
352pub struct NRV6_W<'a> {
353    w: &'a mut W,
354}
355impl<'a> NRV6_W<'a> {
356    #[doc = r"Sets the field bit"]
357    #[inline(always)]
358    pub fn set_bit(self) -> &'a mut W {
359        self.bit(true)
360    }
361    #[doc = r"Clears the field bit"]
362    #[inline(always)]
363    pub fn clear_bit(self) -> &'a mut W {
364        self.bit(false)
365    }
366    #[doc = r"Writes raw bits to the field"]
367    #[inline(always)]
368    pub fn bit(self, value: bool) -> &'a mut W {
369        self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
370        self.w
371    }
372}
373#[doc = "Reader of field `NRV7`"]
374pub type NRV7_R = crate::R<bool, bool>;
375#[doc = "Write proxy for field `NRV7`"]
376pub struct NRV7_W<'a> {
377    w: &'a mut W,
378}
379impl<'a> NRV7_W<'a> {
380    #[doc = r"Sets the field bit"]
381    #[inline(always)]
382    pub fn set_bit(self) -> &'a mut W {
383        self.bit(true)
384    }
385    #[doc = r"Clears the field bit"]
386    #[inline(always)]
387    pub fn clear_bit(self) -> &'a mut W {
388        self.bit(false)
389    }
390    #[doc = r"Writes raw bits to the field"]
391    #[inline(always)]
392    pub fn bit(self, value: bool) -> &'a mut W {
393        self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
394        self.w
395    }
396}
397#[doc = "Reader of field `INVEN0`"]
398pub type INVEN0_R = crate::R<bool, bool>;
399#[doc = "Write proxy for field `INVEN0`"]
400pub struct INVEN0_W<'a> {
401    w: &'a mut W,
402}
403impl<'a> INVEN0_W<'a> {
404    #[doc = r"Sets the field bit"]
405    #[inline(always)]
406    pub fn set_bit(self) -> &'a mut W {
407        self.bit(true)
408    }
409    #[doc = r"Clears the field bit"]
410    #[inline(always)]
411    pub fn clear_bit(self) -> &'a mut W {
412        self.bit(false)
413    }
414    #[doc = r"Writes raw bits to the field"]
415    #[inline(always)]
416    pub fn bit(self, value: bool) -> &'a mut W {
417        self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
418        self.w
419    }
420}
421#[doc = "Reader of field `INVEN1`"]
422pub type INVEN1_R = crate::R<bool, bool>;
423#[doc = "Write proxy for field `INVEN1`"]
424pub struct INVEN1_W<'a> {
425    w: &'a mut W,
426}
427impl<'a> INVEN1_W<'a> {
428    #[doc = r"Sets the field bit"]
429    #[inline(always)]
430    pub fn set_bit(self) -> &'a mut W {
431        self.bit(true)
432    }
433    #[doc = r"Clears the field bit"]
434    #[inline(always)]
435    pub fn clear_bit(self) -> &'a mut W {
436        self.bit(false)
437    }
438    #[doc = r"Writes raw bits to the field"]
439    #[inline(always)]
440    pub fn bit(self, value: bool) -> &'a mut W {
441        self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
442        self.w
443    }
444}
445#[doc = "Reader of field `INVEN2`"]
446pub type INVEN2_R = crate::R<bool, bool>;
447#[doc = "Write proxy for field `INVEN2`"]
448pub struct INVEN2_W<'a> {
449    w: &'a mut W,
450}
451impl<'a> INVEN2_W<'a> {
452    #[doc = r"Sets the field bit"]
453    #[inline(always)]
454    pub fn set_bit(self) -> &'a mut W {
455        self.bit(true)
456    }
457    #[doc = r"Clears the field bit"]
458    #[inline(always)]
459    pub fn clear_bit(self) -> &'a mut W {
460        self.bit(false)
461    }
462    #[doc = r"Writes raw bits to the field"]
463    #[inline(always)]
464    pub fn bit(self, value: bool) -> &'a mut W {
465        self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
466        self.w
467    }
468}
469#[doc = "Reader of field `INVEN3`"]
470pub type INVEN3_R = crate::R<bool, bool>;
471#[doc = "Write proxy for field `INVEN3`"]
472pub struct INVEN3_W<'a> {
473    w: &'a mut W,
474}
475impl<'a> INVEN3_W<'a> {
476    #[doc = r"Sets the field bit"]
477    #[inline(always)]
478    pub fn set_bit(self) -> &'a mut W {
479        self.bit(true)
480    }
481    #[doc = r"Clears the field bit"]
482    #[inline(always)]
483    pub fn clear_bit(self) -> &'a mut W {
484        self.bit(false)
485    }
486    #[doc = r"Writes raw bits to the field"]
487    #[inline(always)]
488    pub fn bit(self, value: bool) -> &'a mut W {
489        self.w.bits = (self.w.bits & !(0x01 << 19)) | (((value as u32) & 0x01) << 19);
490        self.w
491    }
492}
493#[doc = "Reader of field `INVEN4`"]
494pub type INVEN4_R = crate::R<bool, bool>;
495#[doc = "Write proxy for field `INVEN4`"]
496pub struct INVEN4_W<'a> {
497    w: &'a mut W,
498}
499impl<'a> INVEN4_W<'a> {
500    #[doc = r"Sets the field bit"]
501    #[inline(always)]
502    pub fn set_bit(self) -> &'a mut W {
503        self.bit(true)
504    }
505    #[doc = r"Clears the field bit"]
506    #[inline(always)]
507    pub fn clear_bit(self) -> &'a mut W {
508        self.bit(false)
509    }
510    #[doc = r"Writes raw bits to the field"]
511    #[inline(always)]
512    pub fn bit(self, value: bool) -> &'a mut W {
513        self.w.bits = (self.w.bits & !(0x01 << 20)) | (((value as u32) & 0x01) << 20);
514        self.w
515    }
516}
517#[doc = "Reader of field `INVEN5`"]
518pub type INVEN5_R = crate::R<bool, bool>;
519#[doc = "Write proxy for field `INVEN5`"]
520pub struct INVEN5_W<'a> {
521    w: &'a mut W,
522}
523impl<'a> INVEN5_W<'a> {
524    #[doc = r"Sets the field bit"]
525    #[inline(always)]
526    pub fn set_bit(self) -> &'a mut W {
527        self.bit(true)
528    }
529    #[doc = r"Clears the field bit"]
530    #[inline(always)]
531    pub fn clear_bit(self) -> &'a mut W {
532        self.bit(false)
533    }
534    #[doc = r"Writes raw bits to the field"]
535    #[inline(always)]
536    pub fn bit(self, value: bool) -> &'a mut W {
537        self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21);
538        self.w
539    }
540}
541#[doc = "Reader of field `INVEN6`"]
542pub type INVEN6_R = crate::R<bool, bool>;
543#[doc = "Write proxy for field `INVEN6`"]
544pub struct INVEN6_W<'a> {
545    w: &'a mut W,
546}
547impl<'a> INVEN6_W<'a> {
548    #[doc = r"Sets the field bit"]
549    #[inline(always)]
550    pub fn set_bit(self) -> &'a mut W {
551        self.bit(true)
552    }
553    #[doc = r"Clears the field bit"]
554    #[inline(always)]
555    pub fn clear_bit(self) -> &'a mut W {
556        self.bit(false)
557    }
558    #[doc = r"Writes raw bits to the field"]
559    #[inline(always)]
560    pub fn bit(self, value: bool) -> &'a mut W {
561        self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22);
562        self.w
563    }
564}
565#[doc = "Reader of field `INVEN7`"]
566pub type INVEN7_R = crate::R<bool, bool>;
567#[doc = "Write proxy for field `INVEN7`"]
568pub struct INVEN7_W<'a> {
569    w: &'a mut W,
570}
571impl<'a> INVEN7_W<'a> {
572    #[doc = r"Sets the field bit"]
573    #[inline(always)]
574    pub fn set_bit(self) -> &'a mut W {
575        self.bit(true)
576    }
577    #[doc = r"Clears the field bit"]
578    #[inline(always)]
579    pub fn clear_bit(self) -> &'a mut W {
580        self.bit(false)
581    }
582    #[doc = r"Writes raw bits to the field"]
583    #[inline(always)]
584    pub fn bit(self, value: bool) -> &'a mut W {
585        self.w.bits = (self.w.bits & !(0x01 << 23)) | (((value as u32) & 0x01) << 23);
586        self.w
587    }
588}
589#[doc = "Reader of field `FILTERVAL0`"]
590pub type FILTERVAL0_R = crate::R<u8, u8>;
591#[doc = "Write proxy for field `FILTERVAL0`"]
592pub struct FILTERVAL0_W<'a> {
593    w: &'a mut W,
594}
595impl<'a> FILTERVAL0_W<'a> {
596    #[doc = r"Writes raw bits to the field"]
597    #[inline(always)]
598    pub unsafe fn bits(self, value: u8) -> &'a mut W {
599        self.w.bits = (self.w.bits & !(0x0f << 24)) | (((value as u32) & 0x0f) << 24);
600        self.w
601    }
602}
603#[doc = "Reader of field `FILTERVAL1`"]
604pub type FILTERVAL1_R = crate::R<u8, u8>;
605#[doc = "Write proxy for field `FILTERVAL1`"]
606pub struct FILTERVAL1_W<'a> {
607    w: &'a mut W,
608}
609impl<'a> FILTERVAL1_W<'a> {
610    #[doc = r"Writes raw bits to the field"]
611    #[inline(always)]
612    pub unsafe fn bits(self, value: u8) -> &'a mut W {
613        self.w.bits = (self.w.bits & !(0x0f << 28)) | (((value as u32) & 0x0f) << 28);
614        self.w
615    }
616}
617impl R {
618    #[doc = "Bit 0 - Non-Recoverable State 0 Output Enable"]
619    #[inline(always)]
620    pub fn nre0(&self) -> NRE0_R {
621        NRE0_R::new((self.bits & 0x01) != 0)
622    }
623    #[doc = "Bit 1 - Non-Recoverable State 1 Output Enable"]
624    #[inline(always)]
625    pub fn nre1(&self) -> NRE1_R {
626        NRE1_R::new(((self.bits >> 1) & 0x01) != 0)
627    }
628    #[doc = "Bit 2 - Non-Recoverable State 2 Output Enable"]
629    #[inline(always)]
630    pub fn nre2(&self) -> NRE2_R {
631        NRE2_R::new(((self.bits >> 2) & 0x01) != 0)
632    }
633    #[doc = "Bit 3 - Non-Recoverable State 3 Output Enable"]
634    #[inline(always)]
635    pub fn nre3(&self) -> NRE3_R {
636        NRE3_R::new(((self.bits >> 3) & 0x01) != 0)
637    }
638    #[doc = "Bit 4 - Non-Recoverable State 4 Output Enable"]
639    #[inline(always)]
640    pub fn nre4(&self) -> NRE4_R {
641        NRE4_R::new(((self.bits >> 4) & 0x01) != 0)
642    }
643    #[doc = "Bit 5 - Non-Recoverable State 5 Output Enable"]
644    #[inline(always)]
645    pub fn nre5(&self) -> NRE5_R {
646        NRE5_R::new(((self.bits >> 5) & 0x01) != 0)
647    }
648    #[doc = "Bit 6 - Non-Recoverable State 6 Output Enable"]
649    #[inline(always)]
650    pub fn nre6(&self) -> NRE6_R {
651        NRE6_R::new(((self.bits >> 6) & 0x01) != 0)
652    }
653    #[doc = "Bit 7 - Non-Recoverable State 7 Output Enable"]
654    #[inline(always)]
655    pub fn nre7(&self) -> NRE7_R {
656        NRE7_R::new(((self.bits >> 7) & 0x01) != 0)
657    }
658    #[doc = "Bit 8 - Non-Recoverable State 0 Output Value"]
659    #[inline(always)]
660    pub fn nrv0(&self) -> NRV0_R {
661        NRV0_R::new(((self.bits >> 8) & 0x01) != 0)
662    }
663    #[doc = "Bit 9 - Non-Recoverable State 1 Output Value"]
664    #[inline(always)]
665    pub fn nrv1(&self) -> NRV1_R {
666        NRV1_R::new(((self.bits >> 9) & 0x01) != 0)
667    }
668    #[doc = "Bit 10 - Non-Recoverable State 2 Output Value"]
669    #[inline(always)]
670    pub fn nrv2(&self) -> NRV2_R {
671        NRV2_R::new(((self.bits >> 10) & 0x01) != 0)
672    }
673    #[doc = "Bit 11 - Non-Recoverable State 3 Output Value"]
674    #[inline(always)]
675    pub fn nrv3(&self) -> NRV3_R {
676        NRV3_R::new(((self.bits >> 11) & 0x01) != 0)
677    }
678    #[doc = "Bit 12 - Non-Recoverable State 4 Output Value"]
679    #[inline(always)]
680    pub fn nrv4(&self) -> NRV4_R {
681        NRV4_R::new(((self.bits >> 12) & 0x01) != 0)
682    }
683    #[doc = "Bit 13 - Non-Recoverable State 5 Output Value"]
684    #[inline(always)]
685    pub fn nrv5(&self) -> NRV5_R {
686        NRV5_R::new(((self.bits >> 13) & 0x01) != 0)
687    }
688    #[doc = "Bit 14 - Non-Recoverable State 6 Output Value"]
689    #[inline(always)]
690    pub fn nrv6(&self) -> NRV6_R {
691        NRV6_R::new(((self.bits >> 14) & 0x01) != 0)
692    }
693    #[doc = "Bit 15 - Non-Recoverable State 7 Output Value"]
694    #[inline(always)]
695    pub fn nrv7(&self) -> NRV7_R {
696        NRV7_R::new(((self.bits >> 15) & 0x01) != 0)
697    }
698    #[doc = "Bit 16 - Output Waveform 0 Inversion"]
699    #[inline(always)]
700    pub fn inven0(&self) -> INVEN0_R {
701        INVEN0_R::new(((self.bits >> 16) & 0x01) != 0)
702    }
703    #[doc = "Bit 17 - Output Waveform 1 Inversion"]
704    #[inline(always)]
705    pub fn inven1(&self) -> INVEN1_R {
706        INVEN1_R::new(((self.bits >> 17) & 0x01) != 0)
707    }
708    #[doc = "Bit 18 - Output Waveform 2 Inversion"]
709    #[inline(always)]
710    pub fn inven2(&self) -> INVEN2_R {
711        INVEN2_R::new(((self.bits >> 18) & 0x01) != 0)
712    }
713    #[doc = "Bit 19 - Output Waveform 3 Inversion"]
714    #[inline(always)]
715    pub fn inven3(&self) -> INVEN3_R {
716        INVEN3_R::new(((self.bits >> 19) & 0x01) != 0)
717    }
718    #[doc = "Bit 20 - Output Waveform 4 Inversion"]
719    #[inline(always)]
720    pub fn inven4(&self) -> INVEN4_R {
721        INVEN4_R::new(((self.bits >> 20) & 0x01) != 0)
722    }
723    #[doc = "Bit 21 - Output Waveform 5 Inversion"]
724    #[inline(always)]
725    pub fn inven5(&self) -> INVEN5_R {
726        INVEN5_R::new(((self.bits >> 21) & 0x01) != 0)
727    }
728    #[doc = "Bit 22 - Output Waveform 6 Inversion"]
729    #[inline(always)]
730    pub fn inven6(&self) -> INVEN6_R {
731        INVEN6_R::new(((self.bits >> 22) & 0x01) != 0)
732    }
733    #[doc = "Bit 23 - Output Waveform 7 Inversion"]
734    #[inline(always)]
735    pub fn inven7(&self) -> INVEN7_R {
736        INVEN7_R::new(((self.bits >> 23) & 0x01) != 0)
737    }
738    #[doc = "Bits 24:27 - Non-Recoverable Fault Input 0 Filter Value"]
739    #[inline(always)]
740    pub fn filterval0(&self) -> FILTERVAL0_R {
741        FILTERVAL0_R::new(((self.bits >> 24) & 0x0f) as u8)
742    }
743    #[doc = "Bits 28:31 - Non-Recoverable Fault Input 1 Filter Value"]
744    #[inline(always)]
745    pub fn filterval1(&self) -> FILTERVAL1_R {
746        FILTERVAL1_R::new(((self.bits >> 28) & 0x0f) as u8)
747    }
748}
749impl W {
750    #[doc = "Bit 0 - Non-Recoverable State 0 Output Enable"]
751    #[inline(always)]
752    pub fn nre0(&mut self) -> NRE0_W {
753        NRE0_W { w: self }
754    }
755    #[doc = "Bit 1 - Non-Recoverable State 1 Output Enable"]
756    #[inline(always)]
757    pub fn nre1(&mut self) -> NRE1_W {
758        NRE1_W { w: self }
759    }
760    #[doc = "Bit 2 - Non-Recoverable State 2 Output Enable"]
761    #[inline(always)]
762    pub fn nre2(&mut self) -> NRE2_W {
763        NRE2_W { w: self }
764    }
765    #[doc = "Bit 3 - Non-Recoverable State 3 Output Enable"]
766    #[inline(always)]
767    pub fn nre3(&mut self) -> NRE3_W {
768        NRE3_W { w: self }
769    }
770    #[doc = "Bit 4 - Non-Recoverable State 4 Output Enable"]
771    #[inline(always)]
772    pub fn nre4(&mut self) -> NRE4_W {
773        NRE4_W { w: self }
774    }
775    #[doc = "Bit 5 - Non-Recoverable State 5 Output Enable"]
776    #[inline(always)]
777    pub fn nre5(&mut self) -> NRE5_W {
778        NRE5_W { w: self }
779    }
780    #[doc = "Bit 6 - Non-Recoverable State 6 Output Enable"]
781    #[inline(always)]
782    pub fn nre6(&mut self) -> NRE6_W {
783        NRE6_W { w: self }
784    }
785    #[doc = "Bit 7 - Non-Recoverable State 7 Output Enable"]
786    #[inline(always)]
787    pub fn nre7(&mut self) -> NRE7_W {
788        NRE7_W { w: self }
789    }
790    #[doc = "Bit 8 - Non-Recoverable State 0 Output Value"]
791    #[inline(always)]
792    pub fn nrv0(&mut self) -> NRV0_W {
793        NRV0_W { w: self }
794    }
795    #[doc = "Bit 9 - Non-Recoverable State 1 Output Value"]
796    #[inline(always)]
797    pub fn nrv1(&mut self) -> NRV1_W {
798        NRV1_W { w: self }
799    }
800    #[doc = "Bit 10 - Non-Recoverable State 2 Output Value"]
801    #[inline(always)]
802    pub fn nrv2(&mut self) -> NRV2_W {
803        NRV2_W { w: self }
804    }
805    #[doc = "Bit 11 - Non-Recoverable State 3 Output Value"]
806    #[inline(always)]
807    pub fn nrv3(&mut self) -> NRV3_W {
808        NRV3_W { w: self }
809    }
810    #[doc = "Bit 12 - Non-Recoverable State 4 Output Value"]
811    #[inline(always)]
812    pub fn nrv4(&mut self) -> NRV4_W {
813        NRV4_W { w: self }
814    }
815    #[doc = "Bit 13 - Non-Recoverable State 5 Output Value"]
816    #[inline(always)]
817    pub fn nrv5(&mut self) -> NRV5_W {
818        NRV5_W { w: self }
819    }
820    #[doc = "Bit 14 - Non-Recoverable State 6 Output Value"]
821    #[inline(always)]
822    pub fn nrv6(&mut self) -> NRV6_W {
823        NRV6_W { w: self }
824    }
825    #[doc = "Bit 15 - Non-Recoverable State 7 Output Value"]
826    #[inline(always)]
827    pub fn nrv7(&mut self) -> NRV7_W {
828        NRV7_W { w: self }
829    }
830    #[doc = "Bit 16 - Output Waveform 0 Inversion"]
831    #[inline(always)]
832    pub fn inven0(&mut self) -> INVEN0_W {
833        INVEN0_W { w: self }
834    }
835    #[doc = "Bit 17 - Output Waveform 1 Inversion"]
836    #[inline(always)]
837    pub fn inven1(&mut self) -> INVEN1_W {
838        INVEN1_W { w: self }
839    }
840    #[doc = "Bit 18 - Output Waveform 2 Inversion"]
841    #[inline(always)]
842    pub fn inven2(&mut self) -> INVEN2_W {
843        INVEN2_W { w: self }
844    }
845    #[doc = "Bit 19 - Output Waveform 3 Inversion"]
846    #[inline(always)]
847    pub fn inven3(&mut self) -> INVEN3_W {
848        INVEN3_W { w: self }
849    }
850    #[doc = "Bit 20 - Output Waveform 4 Inversion"]
851    #[inline(always)]
852    pub fn inven4(&mut self) -> INVEN4_W {
853        INVEN4_W { w: self }
854    }
855    #[doc = "Bit 21 - Output Waveform 5 Inversion"]
856    #[inline(always)]
857    pub fn inven5(&mut self) -> INVEN5_W {
858        INVEN5_W { w: self }
859    }
860    #[doc = "Bit 22 - Output Waveform 6 Inversion"]
861    #[inline(always)]
862    pub fn inven6(&mut self) -> INVEN6_W {
863        INVEN6_W { w: self }
864    }
865    #[doc = "Bit 23 - Output Waveform 7 Inversion"]
866    #[inline(always)]
867    pub fn inven7(&mut self) -> INVEN7_W {
868        INVEN7_W { w: self }
869    }
870    #[doc = "Bits 24:27 - Non-Recoverable Fault Input 0 Filter Value"]
871    #[inline(always)]
872    pub fn filterval0(&mut self) -> FILTERVAL0_W {
873        FILTERVAL0_W { w: self }
874    }
875    #[doc = "Bits 28:31 - Non-Recoverable Fault Input 1 Filter Value"]
876    #[inline(always)]
877    pub fn filterval1(&mut self) -> FILTERVAL1_W {
878        FILTERVAL1_W { w: self }
879    }
880}