efm32pg12_pac/lesense/
ien.rs

1#[doc = "Reader of register IEN"]
2pub type R = crate::R<u32, super::IEN>;
3#[doc = "Writer for register IEN"]
4pub type W = crate::W<u32, super::IEN>;
5#[doc = "Register IEN `reset()`'s with value 0"]
6impl crate::ResetValue for super::IEN {
7    type Type = u32;
8    #[inline(always)]
9    fn reset_value() -> Self::Type {
10        0
11    }
12}
13#[doc = "Reader of field `CH0`"]
14pub type CH0_R = crate::R<bool, bool>;
15#[doc = "Write proxy for field `CH0`"]
16pub struct CH0_W<'a> {
17    w: &'a mut W,
18}
19impl<'a> CH0_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 `CH1`"]
38pub type CH1_R = crate::R<bool, bool>;
39#[doc = "Write proxy for field `CH1`"]
40pub struct CH1_W<'a> {
41    w: &'a mut W,
42}
43impl<'a> CH1_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 `CH2`"]
62pub type CH2_R = crate::R<bool, bool>;
63#[doc = "Write proxy for field `CH2`"]
64pub struct CH2_W<'a> {
65    w: &'a mut W,
66}
67impl<'a> CH2_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 `CH3`"]
86pub type CH3_R = crate::R<bool, bool>;
87#[doc = "Write proxy for field `CH3`"]
88pub struct CH3_W<'a> {
89    w: &'a mut W,
90}
91impl<'a> CH3_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 `CH4`"]
110pub type CH4_R = crate::R<bool, bool>;
111#[doc = "Write proxy for field `CH4`"]
112pub struct CH4_W<'a> {
113    w: &'a mut W,
114}
115impl<'a> CH4_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 `CH5`"]
134pub type CH5_R = crate::R<bool, bool>;
135#[doc = "Write proxy for field `CH5`"]
136pub struct CH5_W<'a> {
137    w: &'a mut W,
138}
139impl<'a> CH5_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 `CH6`"]
158pub type CH6_R = crate::R<bool, bool>;
159#[doc = "Write proxy for field `CH6`"]
160pub struct CH6_W<'a> {
161    w: &'a mut W,
162}
163impl<'a> CH6_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 `CH7`"]
182pub type CH7_R = crate::R<bool, bool>;
183#[doc = "Write proxy for field `CH7`"]
184pub struct CH7_W<'a> {
185    w: &'a mut W,
186}
187impl<'a> CH7_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 `CH8`"]
206pub type CH8_R = crate::R<bool, bool>;
207#[doc = "Write proxy for field `CH8`"]
208pub struct CH8_W<'a> {
209    w: &'a mut W,
210}
211impl<'a> CH8_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 `CH9`"]
230pub type CH9_R = crate::R<bool, bool>;
231#[doc = "Write proxy for field `CH9`"]
232pub struct CH9_W<'a> {
233    w: &'a mut W,
234}
235impl<'a> CH9_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 `CH10`"]
254pub type CH10_R = crate::R<bool, bool>;
255#[doc = "Write proxy for field `CH10`"]
256pub struct CH10_W<'a> {
257    w: &'a mut W,
258}
259impl<'a> CH10_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 `CH11`"]
278pub type CH11_R = crate::R<bool, bool>;
279#[doc = "Write proxy for field `CH11`"]
280pub struct CH11_W<'a> {
281    w: &'a mut W,
282}
283impl<'a> CH11_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 `CH12`"]
302pub type CH12_R = crate::R<bool, bool>;
303#[doc = "Write proxy for field `CH12`"]
304pub struct CH12_W<'a> {
305    w: &'a mut W,
306}
307impl<'a> CH12_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 `CH13`"]
326pub type CH13_R = crate::R<bool, bool>;
327#[doc = "Write proxy for field `CH13`"]
328pub struct CH13_W<'a> {
329    w: &'a mut W,
330}
331impl<'a> CH13_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 `CH14`"]
350pub type CH14_R = crate::R<bool, bool>;
351#[doc = "Write proxy for field `CH14`"]
352pub struct CH14_W<'a> {
353    w: &'a mut W,
354}
355impl<'a> CH14_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 `CH15`"]
374pub type CH15_R = crate::R<bool, bool>;
375#[doc = "Write proxy for field `CH15`"]
376pub struct CH15_W<'a> {
377    w: &'a mut W,
378}
379impl<'a> CH15_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 `SCANCOMPLETE`"]
398pub type SCANCOMPLETE_R = crate::R<bool, bool>;
399#[doc = "Write proxy for field `SCANCOMPLETE`"]
400pub struct SCANCOMPLETE_W<'a> {
401    w: &'a mut W,
402}
403impl<'a> SCANCOMPLETE_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 `DEC`"]
422pub type DEC_R = crate::R<bool, bool>;
423#[doc = "Write proxy for field `DEC`"]
424pub struct DEC_W<'a> {
425    w: &'a mut W,
426}
427impl<'a> DEC_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 `DECERR`"]
446pub type DECERR_R = crate::R<bool, bool>;
447#[doc = "Write proxy for field `DECERR`"]
448pub struct DECERR_W<'a> {
449    w: &'a mut W,
450}
451impl<'a> DECERR_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 `BUFDATAV`"]
470pub type BUFDATAV_R = crate::R<bool, bool>;
471#[doc = "Write proxy for field `BUFDATAV`"]
472pub struct BUFDATAV_W<'a> {
473    w: &'a mut W,
474}
475impl<'a> BUFDATAV_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 `BUFLEVEL`"]
494pub type BUFLEVEL_R = crate::R<bool, bool>;
495#[doc = "Write proxy for field `BUFLEVEL`"]
496pub struct BUFLEVEL_W<'a> {
497    w: &'a mut W,
498}
499impl<'a> BUFLEVEL_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 `BUFOF`"]
518pub type BUFOF_R = crate::R<bool, bool>;
519#[doc = "Write proxy for field `BUFOF`"]
520pub struct BUFOF_W<'a> {
521    w: &'a mut W,
522}
523impl<'a> BUFOF_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 `CNTOF`"]
542pub type CNTOF_R = crate::R<bool, bool>;
543#[doc = "Write proxy for field `CNTOF`"]
544pub struct CNTOF_W<'a> {
545    w: &'a mut W,
546}
547impl<'a> CNTOF_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}
565impl R {
566    #[doc = "Bit 0 - CH0 Interrupt Enable"]
567    #[inline(always)]
568    pub fn ch0(&self) -> CH0_R {
569        CH0_R::new((self.bits & 0x01) != 0)
570    }
571    #[doc = "Bit 1 - CH1 Interrupt Enable"]
572    #[inline(always)]
573    pub fn ch1(&self) -> CH1_R {
574        CH1_R::new(((self.bits >> 1) & 0x01) != 0)
575    }
576    #[doc = "Bit 2 - CH2 Interrupt Enable"]
577    #[inline(always)]
578    pub fn ch2(&self) -> CH2_R {
579        CH2_R::new(((self.bits >> 2) & 0x01) != 0)
580    }
581    #[doc = "Bit 3 - CH3 Interrupt Enable"]
582    #[inline(always)]
583    pub fn ch3(&self) -> CH3_R {
584        CH3_R::new(((self.bits >> 3) & 0x01) != 0)
585    }
586    #[doc = "Bit 4 - CH4 Interrupt Enable"]
587    #[inline(always)]
588    pub fn ch4(&self) -> CH4_R {
589        CH4_R::new(((self.bits >> 4) & 0x01) != 0)
590    }
591    #[doc = "Bit 5 - CH5 Interrupt Enable"]
592    #[inline(always)]
593    pub fn ch5(&self) -> CH5_R {
594        CH5_R::new(((self.bits >> 5) & 0x01) != 0)
595    }
596    #[doc = "Bit 6 - CH6 Interrupt Enable"]
597    #[inline(always)]
598    pub fn ch6(&self) -> CH6_R {
599        CH6_R::new(((self.bits >> 6) & 0x01) != 0)
600    }
601    #[doc = "Bit 7 - CH7 Interrupt Enable"]
602    #[inline(always)]
603    pub fn ch7(&self) -> CH7_R {
604        CH7_R::new(((self.bits >> 7) & 0x01) != 0)
605    }
606    #[doc = "Bit 8 - CH8 Interrupt Enable"]
607    #[inline(always)]
608    pub fn ch8(&self) -> CH8_R {
609        CH8_R::new(((self.bits >> 8) & 0x01) != 0)
610    }
611    #[doc = "Bit 9 - CH9 Interrupt Enable"]
612    #[inline(always)]
613    pub fn ch9(&self) -> CH9_R {
614        CH9_R::new(((self.bits >> 9) & 0x01) != 0)
615    }
616    #[doc = "Bit 10 - CH10 Interrupt Enable"]
617    #[inline(always)]
618    pub fn ch10(&self) -> CH10_R {
619        CH10_R::new(((self.bits >> 10) & 0x01) != 0)
620    }
621    #[doc = "Bit 11 - CH11 Interrupt Enable"]
622    #[inline(always)]
623    pub fn ch11(&self) -> CH11_R {
624        CH11_R::new(((self.bits >> 11) & 0x01) != 0)
625    }
626    #[doc = "Bit 12 - CH12 Interrupt Enable"]
627    #[inline(always)]
628    pub fn ch12(&self) -> CH12_R {
629        CH12_R::new(((self.bits >> 12) & 0x01) != 0)
630    }
631    #[doc = "Bit 13 - CH13 Interrupt Enable"]
632    #[inline(always)]
633    pub fn ch13(&self) -> CH13_R {
634        CH13_R::new(((self.bits >> 13) & 0x01) != 0)
635    }
636    #[doc = "Bit 14 - CH14 Interrupt Enable"]
637    #[inline(always)]
638    pub fn ch14(&self) -> CH14_R {
639        CH14_R::new(((self.bits >> 14) & 0x01) != 0)
640    }
641    #[doc = "Bit 15 - CH15 Interrupt Enable"]
642    #[inline(always)]
643    pub fn ch15(&self) -> CH15_R {
644        CH15_R::new(((self.bits >> 15) & 0x01) != 0)
645    }
646    #[doc = "Bit 16 - SCANCOMPLETE Interrupt Enable"]
647    #[inline(always)]
648    pub fn scancomplete(&self) -> SCANCOMPLETE_R {
649        SCANCOMPLETE_R::new(((self.bits >> 16) & 0x01) != 0)
650    }
651    #[doc = "Bit 17 - DEC Interrupt Enable"]
652    #[inline(always)]
653    pub fn dec(&self) -> DEC_R {
654        DEC_R::new(((self.bits >> 17) & 0x01) != 0)
655    }
656    #[doc = "Bit 18 - DECERR Interrupt Enable"]
657    #[inline(always)]
658    pub fn decerr(&self) -> DECERR_R {
659        DECERR_R::new(((self.bits >> 18) & 0x01) != 0)
660    }
661    #[doc = "Bit 19 - BUFDATAV Interrupt Enable"]
662    #[inline(always)]
663    pub fn bufdatav(&self) -> BUFDATAV_R {
664        BUFDATAV_R::new(((self.bits >> 19) & 0x01) != 0)
665    }
666    #[doc = "Bit 20 - BUFLEVEL Interrupt Enable"]
667    #[inline(always)]
668    pub fn buflevel(&self) -> BUFLEVEL_R {
669        BUFLEVEL_R::new(((self.bits >> 20) & 0x01) != 0)
670    }
671    #[doc = "Bit 21 - BUFOF Interrupt Enable"]
672    #[inline(always)]
673    pub fn bufof(&self) -> BUFOF_R {
674        BUFOF_R::new(((self.bits >> 21) & 0x01) != 0)
675    }
676    #[doc = "Bit 22 - CNTOF Interrupt Enable"]
677    #[inline(always)]
678    pub fn cntof(&self) -> CNTOF_R {
679        CNTOF_R::new(((self.bits >> 22) & 0x01) != 0)
680    }
681}
682impl W {
683    #[doc = "Bit 0 - CH0 Interrupt Enable"]
684    #[inline(always)]
685    pub fn ch0(&mut self) -> CH0_W {
686        CH0_W { w: self }
687    }
688    #[doc = "Bit 1 - CH1 Interrupt Enable"]
689    #[inline(always)]
690    pub fn ch1(&mut self) -> CH1_W {
691        CH1_W { w: self }
692    }
693    #[doc = "Bit 2 - CH2 Interrupt Enable"]
694    #[inline(always)]
695    pub fn ch2(&mut self) -> CH2_W {
696        CH2_W { w: self }
697    }
698    #[doc = "Bit 3 - CH3 Interrupt Enable"]
699    #[inline(always)]
700    pub fn ch3(&mut self) -> CH3_W {
701        CH3_W { w: self }
702    }
703    #[doc = "Bit 4 - CH4 Interrupt Enable"]
704    #[inline(always)]
705    pub fn ch4(&mut self) -> CH4_W {
706        CH4_W { w: self }
707    }
708    #[doc = "Bit 5 - CH5 Interrupt Enable"]
709    #[inline(always)]
710    pub fn ch5(&mut self) -> CH5_W {
711        CH5_W { w: self }
712    }
713    #[doc = "Bit 6 - CH6 Interrupt Enable"]
714    #[inline(always)]
715    pub fn ch6(&mut self) -> CH6_W {
716        CH6_W { w: self }
717    }
718    #[doc = "Bit 7 - CH7 Interrupt Enable"]
719    #[inline(always)]
720    pub fn ch7(&mut self) -> CH7_W {
721        CH7_W { w: self }
722    }
723    #[doc = "Bit 8 - CH8 Interrupt Enable"]
724    #[inline(always)]
725    pub fn ch8(&mut self) -> CH8_W {
726        CH8_W { w: self }
727    }
728    #[doc = "Bit 9 - CH9 Interrupt Enable"]
729    #[inline(always)]
730    pub fn ch9(&mut self) -> CH9_W {
731        CH9_W { w: self }
732    }
733    #[doc = "Bit 10 - CH10 Interrupt Enable"]
734    #[inline(always)]
735    pub fn ch10(&mut self) -> CH10_W {
736        CH10_W { w: self }
737    }
738    #[doc = "Bit 11 - CH11 Interrupt Enable"]
739    #[inline(always)]
740    pub fn ch11(&mut self) -> CH11_W {
741        CH11_W { w: self }
742    }
743    #[doc = "Bit 12 - CH12 Interrupt Enable"]
744    #[inline(always)]
745    pub fn ch12(&mut self) -> CH12_W {
746        CH12_W { w: self }
747    }
748    #[doc = "Bit 13 - CH13 Interrupt Enable"]
749    #[inline(always)]
750    pub fn ch13(&mut self) -> CH13_W {
751        CH13_W { w: self }
752    }
753    #[doc = "Bit 14 - CH14 Interrupt Enable"]
754    #[inline(always)]
755    pub fn ch14(&mut self) -> CH14_W {
756        CH14_W { w: self }
757    }
758    #[doc = "Bit 15 - CH15 Interrupt Enable"]
759    #[inline(always)]
760    pub fn ch15(&mut self) -> CH15_W {
761        CH15_W { w: self }
762    }
763    #[doc = "Bit 16 - SCANCOMPLETE Interrupt Enable"]
764    #[inline(always)]
765    pub fn scancomplete(&mut self) -> SCANCOMPLETE_W {
766        SCANCOMPLETE_W { w: self }
767    }
768    #[doc = "Bit 17 - DEC Interrupt Enable"]
769    #[inline(always)]
770    pub fn dec(&mut self) -> DEC_W {
771        DEC_W { w: self }
772    }
773    #[doc = "Bit 18 - DECERR Interrupt Enable"]
774    #[inline(always)]
775    pub fn decerr(&mut self) -> DECERR_W {
776        DECERR_W { w: self }
777    }
778    #[doc = "Bit 19 - BUFDATAV Interrupt Enable"]
779    #[inline(always)]
780    pub fn bufdatav(&mut self) -> BUFDATAV_W {
781        BUFDATAV_W { w: self }
782    }
783    #[doc = "Bit 20 - BUFLEVEL Interrupt Enable"]
784    #[inline(always)]
785    pub fn buflevel(&mut self) -> BUFLEVEL_W {
786        BUFLEVEL_W { w: self }
787    }
788    #[doc = "Bit 21 - BUFOF Interrupt Enable"]
789    #[inline(always)]
790    pub fn bufof(&mut self) -> BUFOF_W {
791        BUFOF_W { w: self }
792    }
793    #[doc = "Bit 22 - CNTOF Interrupt Enable"]
794    #[inline(always)]
795    pub fn cntof(&mut self) -> CNTOF_W {
796        CNTOF_W { w: self }
797    }
798}