ra6t2/adc_b/
adccmpcr.rs

1#[doc = "Register `ADCCMPCR%s` reader"]
2pub struct R(crate::R<ADCCMPCR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<ADCCMPCR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<ADCCMPCR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<ADCCMPCR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `ADCCMPCR%s` writer"]
17pub struct W(crate::W<ADCCMPCR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<ADCCMPCR_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<ADCCMPCR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<ADCCMPCR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CCMPCND` reader - Composite Compare Match Condition Selection"]
38pub type CCMPCND_R = crate::FieldReader<u8, CCMPCND_A>;
39#[doc = "Composite Compare Match Condition Selection\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u8)]
42pub enum CCMPCND_A {
43    #[doc = "0: Logical disjunction (OR) conditions"]
44    _00 = 0,
45    #[doc = "1: Logical conjunction (AND) conditions"]
46    _01 = 1,
47    #[doc = "2: Logical exclusive disjunction (EXOR) conditions"]
48    _10 = 2,
49    #[doc = "3: Setting prohibited"]
50    _11 = 3,
51}
52impl From<CCMPCND_A> for u8 {
53    #[inline(always)]
54    fn from(variant: CCMPCND_A) -> Self {
55        variant as _
56    }
57}
58impl CCMPCND_R {
59    #[doc = "Get enumerated values variant"]
60    #[inline(always)]
61    pub fn variant(&self) -> CCMPCND_A {
62        match self.bits {
63            0 => CCMPCND_A::_00,
64            1 => CCMPCND_A::_01,
65            2 => CCMPCND_A::_10,
66            3 => CCMPCND_A::_11,
67            _ => unreachable!(),
68        }
69    }
70    #[doc = "Checks if the value of the field is `_00`"]
71    #[inline(always)]
72    pub fn is_00(&self) -> bool {
73        *self == CCMPCND_A::_00
74    }
75    #[doc = "Checks if the value of the field is `_01`"]
76    #[inline(always)]
77    pub fn is_01(&self) -> bool {
78        *self == CCMPCND_A::_01
79    }
80    #[doc = "Checks if the value of the field is `_10`"]
81    #[inline(always)]
82    pub fn is_10(&self) -> bool {
83        *self == CCMPCND_A::_10
84    }
85    #[doc = "Checks if the value of the field is `_11`"]
86    #[inline(always)]
87    pub fn is_11(&self) -> bool {
88        *self == CCMPCND_A::_11
89    }
90}
91#[doc = "Field `CCMPCND` writer - Composite Compare Match Condition Selection"]
92pub type CCMPCND_W<'a, const O: u8> =
93    crate::FieldWriterSafe<'a, u32, ADCCMPCR_SPEC, u8, CCMPCND_A, 2, O>;
94impl<'a, const O: u8> CCMPCND_W<'a, O> {
95    #[doc = "Logical disjunction (OR) conditions"]
96    #[inline(always)]
97    pub fn _00(self) -> &'a mut W {
98        self.variant(CCMPCND_A::_00)
99    }
100    #[doc = "Logical conjunction (AND) conditions"]
101    #[inline(always)]
102    pub fn _01(self) -> &'a mut W {
103        self.variant(CCMPCND_A::_01)
104    }
105    #[doc = "Logical exclusive disjunction (EXOR) conditions"]
106    #[inline(always)]
107    pub fn _10(self) -> &'a mut W {
108        self.variant(CCMPCND_A::_10)
109    }
110    #[doc = "Setting prohibited"]
111    #[inline(always)]
112    pub fn _11(self) -> &'a mut W {
113        self.variant(CCMPCND_A::_11)
114    }
115}
116#[doc = "Field `CCMPTBL0` reader - Composite Compare Match Condition Table Selection"]
117pub type CCMPTBL0_R = crate::BitReader<CCMPTBL0_A>;
118#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
119#[derive(Clone, Copy, Debug, PartialEq, Eq)]
120pub enum CCMPTBL0_A {
121    #[doc = "0: Not use the compare match table m"]
122    _0 = 0,
123    #[doc = "1: Use the compare match table m"]
124    _1 = 1,
125}
126impl From<CCMPTBL0_A> for bool {
127    #[inline(always)]
128    fn from(variant: CCMPTBL0_A) -> Self {
129        variant as u8 != 0
130    }
131}
132impl CCMPTBL0_R {
133    #[doc = "Get enumerated values variant"]
134    #[inline(always)]
135    pub fn variant(&self) -> CCMPTBL0_A {
136        match self.bits {
137            false => CCMPTBL0_A::_0,
138            true => CCMPTBL0_A::_1,
139        }
140    }
141    #[doc = "Checks if the value of the field is `_0`"]
142    #[inline(always)]
143    pub fn is_0(&self) -> bool {
144        *self == CCMPTBL0_A::_0
145    }
146    #[doc = "Checks if the value of the field is `_1`"]
147    #[inline(always)]
148    pub fn is_1(&self) -> bool {
149        *self == CCMPTBL0_A::_1
150    }
151}
152#[doc = "Field `CCMPTBL0` writer - Composite Compare Match Condition Table Selection"]
153pub type CCMPTBL0_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL0_A, O>;
154impl<'a, const O: u8> CCMPTBL0_W<'a, O> {
155    #[doc = "Not use the compare match table m"]
156    #[inline(always)]
157    pub fn _0(self) -> &'a mut W {
158        self.variant(CCMPTBL0_A::_0)
159    }
160    #[doc = "Use the compare match table m"]
161    #[inline(always)]
162    pub fn _1(self) -> &'a mut W {
163        self.variant(CCMPTBL0_A::_1)
164    }
165}
166#[doc = "Field `CCMPTBL1` reader - Composite Compare Match Condition Table Selection"]
167pub type CCMPTBL1_R = crate::BitReader<CCMPTBL1_A>;
168#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum CCMPTBL1_A {
171    #[doc = "0: Not use the compare match table m"]
172    _0 = 0,
173    #[doc = "1: Use the compare match table m"]
174    _1 = 1,
175}
176impl From<CCMPTBL1_A> for bool {
177    #[inline(always)]
178    fn from(variant: CCMPTBL1_A) -> Self {
179        variant as u8 != 0
180    }
181}
182impl CCMPTBL1_R {
183    #[doc = "Get enumerated values variant"]
184    #[inline(always)]
185    pub fn variant(&self) -> CCMPTBL1_A {
186        match self.bits {
187            false => CCMPTBL1_A::_0,
188            true => CCMPTBL1_A::_1,
189        }
190    }
191    #[doc = "Checks if the value of the field is `_0`"]
192    #[inline(always)]
193    pub fn is_0(&self) -> bool {
194        *self == CCMPTBL1_A::_0
195    }
196    #[doc = "Checks if the value of the field is `_1`"]
197    #[inline(always)]
198    pub fn is_1(&self) -> bool {
199        *self == CCMPTBL1_A::_1
200    }
201}
202#[doc = "Field `CCMPTBL1` writer - Composite Compare Match Condition Table Selection"]
203pub type CCMPTBL1_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL1_A, O>;
204impl<'a, const O: u8> CCMPTBL1_W<'a, O> {
205    #[doc = "Not use the compare match table m"]
206    #[inline(always)]
207    pub fn _0(self) -> &'a mut W {
208        self.variant(CCMPTBL1_A::_0)
209    }
210    #[doc = "Use the compare match table m"]
211    #[inline(always)]
212    pub fn _1(self) -> &'a mut W {
213        self.variant(CCMPTBL1_A::_1)
214    }
215}
216#[doc = "Field `CCMPTBL2` reader - Composite Compare Match Condition Table Selection"]
217pub type CCMPTBL2_R = crate::BitReader<CCMPTBL2_A>;
218#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
219#[derive(Clone, Copy, Debug, PartialEq, Eq)]
220pub enum CCMPTBL2_A {
221    #[doc = "0: Not use the compare match table m"]
222    _0 = 0,
223    #[doc = "1: Use the compare match table m"]
224    _1 = 1,
225}
226impl From<CCMPTBL2_A> for bool {
227    #[inline(always)]
228    fn from(variant: CCMPTBL2_A) -> Self {
229        variant as u8 != 0
230    }
231}
232impl CCMPTBL2_R {
233    #[doc = "Get enumerated values variant"]
234    #[inline(always)]
235    pub fn variant(&self) -> CCMPTBL2_A {
236        match self.bits {
237            false => CCMPTBL2_A::_0,
238            true => CCMPTBL2_A::_1,
239        }
240    }
241    #[doc = "Checks if the value of the field is `_0`"]
242    #[inline(always)]
243    pub fn is_0(&self) -> bool {
244        *self == CCMPTBL2_A::_0
245    }
246    #[doc = "Checks if the value of the field is `_1`"]
247    #[inline(always)]
248    pub fn is_1(&self) -> bool {
249        *self == CCMPTBL2_A::_1
250    }
251}
252#[doc = "Field `CCMPTBL2` writer - Composite Compare Match Condition Table Selection"]
253pub type CCMPTBL2_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL2_A, O>;
254impl<'a, const O: u8> CCMPTBL2_W<'a, O> {
255    #[doc = "Not use the compare match table m"]
256    #[inline(always)]
257    pub fn _0(self) -> &'a mut W {
258        self.variant(CCMPTBL2_A::_0)
259    }
260    #[doc = "Use the compare match table m"]
261    #[inline(always)]
262    pub fn _1(self) -> &'a mut W {
263        self.variant(CCMPTBL2_A::_1)
264    }
265}
266#[doc = "Field `CCMPTBL3` reader - Composite Compare Match Condition Table Selection"]
267pub type CCMPTBL3_R = crate::BitReader<CCMPTBL3_A>;
268#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
269#[derive(Clone, Copy, Debug, PartialEq, Eq)]
270pub enum CCMPTBL3_A {
271    #[doc = "0: Not use the compare match table m"]
272    _0 = 0,
273    #[doc = "1: Use the compare match table m"]
274    _1 = 1,
275}
276impl From<CCMPTBL3_A> for bool {
277    #[inline(always)]
278    fn from(variant: CCMPTBL3_A) -> Self {
279        variant as u8 != 0
280    }
281}
282impl CCMPTBL3_R {
283    #[doc = "Get enumerated values variant"]
284    #[inline(always)]
285    pub fn variant(&self) -> CCMPTBL3_A {
286        match self.bits {
287            false => CCMPTBL3_A::_0,
288            true => CCMPTBL3_A::_1,
289        }
290    }
291    #[doc = "Checks if the value of the field is `_0`"]
292    #[inline(always)]
293    pub fn is_0(&self) -> bool {
294        *self == CCMPTBL3_A::_0
295    }
296    #[doc = "Checks if the value of the field is `_1`"]
297    #[inline(always)]
298    pub fn is_1(&self) -> bool {
299        *self == CCMPTBL3_A::_1
300    }
301}
302#[doc = "Field `CCMPTBL3` writer - Composite Compare Match Condition Table Selection"]
303pub type CCMPTBL3_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL3_A, O>;
304impl<'a, const O: u8> CCMPTBL3_W<'a, O> {
305    #[doc = "Not use the compare match table m"]
306    #[inline(always)]
307    pub fn _0(self) -> &'a mut W {
308        self.variant(CCMPTBL3_A::_0)
309    }
310    #[doc = "Use the compare match table m"]
311    #[inline(always)]
312    pub fn _1(self) -> &'a mut W {
313        self.variant(CCMPTBL3_A::_1)
314    }
315}
316#[doc = "Field `CCMPTBL4` reader - Composite Compare Match Condition Table Selection"]
317pub type CCMPTBL4_R = crate::BitReader<CCMPTBL4_A>;
318#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
319#[derive(Clone, Copy, Debug, PartialEq, Eq)]
320pub enum CCMPTBL4_A {
321    #[doc = "0: Not use the compare match table m"]
322    _0 = 0,
323    #[doc = "1: Use the compare match table m"]
324    _1 = 1,
325}
326impl From<CCMPTBL4_A> for bool {
327    #[inline(always)]
328    fn from(variant: CCMPTBL4_A) -> Self {
329        variant as u8 != 0
330    }
331}
332impl CCMPTBL4_R {
333    #[doc = "Get enumerated values variant"]
334    #[inline(always)]
335    pub fn variant(&self) -> CCMPTBL4_A {
336        match self.bits {
337            false => CCMPTBL4_A::_0,
338            true => CCMPTBL4_A::_1,
339        }
340    }
341    #[doc = "Checks if the value of the field is `_0`"]
342    #[inline(always)]
343    pub fn is_0(&self) -> bool {
344        *self == CCMPTBL4_A::_0
345    }
346    #[doc = "Checks if the value of the field is `_1`"]
347    #[inline(always)]
348    pub fn is_1(&self) -> bool {
349        *self == CCMPTBL4_A::_1
350    }
351}
352#[doc = "Field `CCMPTBL4` writer - Composite Compare Match Condition Table Selection"]
353pub type CCMPTBL4_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL4_A, O>;
354impl<'a, const O: u8> CCMPTBL4_W<'a, O> {
355    #[doc = "Not use the compare match table m"]
356    #[inline(always)]
357    pub fn _0(self) -> &'a mut W {
358        self.variant(CCMPTBL4_A::_0)
359    }
360    #[doc = "Use the compare match table m"]
361    #[inline(always)]
362    pub fn _1(self) -> &'a mut W {
363        self.variant(CCMPTBL4_A::_1)
364    }
365}
366#[doc = "Field `CCMPTBL5` reader - Composite Compare Match Condition Table Selection"]
367pub type CCMPTBL5_R = crate::BitReader<CCMPTBL5_A>;
368#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
369#[derive(Clone, Copy, Debug, PartialEq, Eq)]
370pub enum CCMPTBL5_A {
371    #[doc = "0: Not use the compare match table m"]
372    _0 = 0,
373    #[doc = "1: Use the compare match table m"]
374    _1 = 1,
375}
376impl From<CCMPTBL5_A> for bool {
377    #[inline(always)]
378    fn from(variant: CCMPTBL5_A) -> Self {
379        variant as u8 != 0
380    }
381}
382impl CCMPTBL5_R {
383    #[doc = "Get enumerated values variant"]
384    #[inline(always)]
385    pub fn variant(&self) -> CCMPTBL5_A {
386        match self.bits {
387            false => CCMPTBL5_A::_0,
388            true => CCMPTBL5_A::_1,
389        }
390    }
391    #[doc = "Checks if the value of the field is `_0`"]
392    #[inline(always)]
393    pub fn is_0(&self) -> bool {
394        *self == CCMPTBL5_A::_0
395    }
396    #[doc = "Checks if the value of the field is `_1`"]
397    #[inline(always)]
398    pub fn is_1(&self) -> bool {
399        *self == CCMPTBL5_A::_1
400    }
401}
402#[doc = "Field `CCMPTBL5` writer - Composite Compare Match Condition Table Selection"]
403pub type CCMPTBL5_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL5_A, O>;
404impl<'a, const O: u8> CCMPTBL5_W<'a, O> {
405    #[doc = "Not use the compare match table m"]
406    #[inline(always)]
407    pub fn _0(self) -> &'a mut W {
408        self.variant(CCMPTBL5_A::_0)
409    }
410    #[doc = "Use the compare match table m"]
411    #[inline(always)]
412    pub fn _1(self) -> &'a mut W {
413        self.variant(CCMPTBL5_A::_1)
414    }
415}
416#[doc = "Field `CCMPTBL6` reader - Composite Compare Match Condition Table Selection"]
417pub type CCMPTBL6_R = crate::BitReader<CCMPTBL6_A>;
418#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
419#[derive(Clone, Copy, Debug, PartialEq, Eq)]
420pub enum CCMPTBL6_A {
421    #[doc = "0: Not use the compare match table m"]
422    _0 = 0,
423    #[doc = "1: Use the compare match table m"]
424    _1 = 1,
425}
426impl From<CCMPTBL6_A> for bool {
427    #[inline(always)]
428    fn from(variant: CCMPTBL6_A) -> Self {
429        variant as u8 != 0
430    }
431}
432impl CCMPTBL6_R {
433    #[doc = "Get enumerated values variant"]
434    #[inline(always)]
435    pub fn variant(&self) -> CCMPTBL6_A {
436        match self.bits {
437            false => CCMPTBL6_A::_0,
438            true => CCMPTBL6_A::_1,
439        }
440    }
441    #[doc = "Checks if the value of the field is `_0`"]
442    #[inline(always)]
443    pub fn is_0(&self) -> bool {
444        *self == CCMPTBL6_A::_0
445    }
446    #[doc = "Checks if the value of the field is `_1`"]
447    #[inline(always)]
448    pub fn is_1(&self) -> bool {
449        *self == CCMPTBL6_A::_1
450    }
451}
452#[doc = "Field `CCMPTBL6` writer - Composite Compare Match Condition Table Selection"]
453pub type CCMPTBL6_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL6_A, O>;
454impl<'a, const O: u8> CCMPTBL6_W<'a, O> {
455    #[doc = "Not use the compare match table m"]
456    #[inline(always)]
457    pub fn _0(self) -> &'a mut W {
458        self.variant(CCMPTBL6_A::_0)
459    }
460    #[doc = "Use the compare match table m"]
461    #[inline(always)]
462    pub fn _1(self) -> &'a mut W {
463        self.variant(CCMPTBL6_A::_1)
464    }
465}
466#[doc = "Field `CCMPTBL7` reader - Composite Compare Match Condition Table Selection"]
467pub type CCMPTBL7_R = crate::BitReader<CCMPTBL7_A>;
468#[doc = "Composite Compare Match Condition Table Selection\n\nValue on reset: 0"]
469#[derive(Clone, Copy, Debug, PartialEq, Eq)]
470pub enum CCMPTBL7_A {
471    #[doc = "0: Not use the compare match table m"]
472    _0 = 0,
473    #[doc = "1: Use the compare match table m"]
474    _1 = 1,
475}
476impl From<CCMPTBL7_A> for bool {
477    #[inline(always)]
478    fn from(variant: CCMPTBL7_A) -> Self {
479        variant as u8 != 0
480    }
481}
482impl CCMPTBL7_R {
483    #[doc = "Get enumerated values variant"]
484    #[inline(always)]
485    pub fn variant(&self) -> CCMPTBL7_A {
486        match self.bits {
487            false => CCMPTBL7_A::_0,
488            true => CCMPTBL7_A::_1,
489        }
490    }
491    #[doc = "Checks if the value of the field is `_0`"]
492    #[inline(always)]
493    pub fn is_0(&self) -> bool {
494        *self == CCMPTBL7_A::_0
495    }
496    #[doc = "Checks if the value of the field is `_1`"]
497    #[inline(always)]
498    pub fn is_1(&self) -> bool {
499        *self == CCMPTBL7_A::_1
500    }
501}
502#[doc = "Field `CCMPTBL7` writer - Composite Compare Match Condition Table Selection"]
503pub type CCMPTBL7_W<'a, const O: u8> = crate::BitWriter<'a, u32, ADCCMPCR_SPEC, CCMPTBL7_A, O>;
504impl<'a, const O: u8> CCMPTBL7_W<'a, O> {
505    #[doc = "Not use the compare match table m"]
506    #[inline(always)]
507    pub fn _0(self) -> &'a mut W {
508        self.variant(CCMPTBL7_A::_0)
509    }
510    #[doc = "Use the compare match table m"]
511    #[inline(always)]
512    pub fn _1(self) -> &'a mut W {
513        self.variant(CCMPTBL7_A::_1)
514    }
515}
516impl R {
517    #[doc = "Bits 0:1 - Composite Compare Match Condition Selection"]
518    #[inline(always)]
519    pub fn ccmpcnd(&self) -> CCMPCND_R {
520        CCMPCND_R::new((self.bits & 3) as u8)
521    }
522    #[doc = "Bit 16 - Composite Compare Match Condition Table Selection"]
523    #[inline(always)]
524    pub fn ccmptbl0(&self) -> CCMPTBL0_R {
525        CCMPTBL0_R::new(((self.bits >> 16) & 1) != 0)
526    }
527    #[doc = "Bit 17 - Composite Compare Match Condition Table Selection"]
528    #[inline(always)]
529    pub fn ccmptbl1(&self) -> CCMPTBL1_R {
530        CCMPTBL1_R::new(((self.bits >> 17) & 1) != 0)
531    }
532    #[doc = "Bit 18 - Composite Compare Match Condition Table Selection"]
533    #[inline(always)]
534    pub fn ccmptbl2(&self) -> CCMPTBL2_R {
535        CCMPTBL2_R::new(((self.bits >> 18) & 1) != 0)
536    }
537    #[doc = "Bit 19 - Composite Compare Match Condition Table Selection"]
538    #[inline(always)]
539    pub fn ccmptbl3(&self) -> CCMPTBL3_R {
540        CCMPTBL3_R::new(((self.bits >> 19) & 1) != 0)
541    }
542    #[doc = "Bit 20 - Composite Compare Match Condition Table Selection"]
543    #[inline(always)]
544    pub fn ccmptbl4(&self) -> CCMPTBL4_R {
545        CCMPTBL4_R::new(((self.bits >> 20) & 1) != 0)
546    }
547    #[doc = "Bit 21 - Composite Compare Match Condition Table Selection"]
548    #[inline(always)]
549    pub fn ccmptbl5(&self) -> CCMPTBL5_R {
550        CCMPTBL5_R::new(((self.bits >> 21) & 1) != 0)
551    }
552    #[doc = "Bit 22 - Composite Compare Match Condition Table Selection"]
553    #[inline(always)]
554    pub fn ccmptbl6(&self) -> CCMPTBL6_R {
555        CCMPTBL6_R::new(((self.bits >> 22) & 1) != 0)
556    }
557    #[doc = "Bit 23 - Composite Compare Match Condition Table Selection"]
558    #[inline(always)]
559    pub fn ccmptbl7(&self) -> CCMPTBL7_R {
560        CCMPTBL7_R::new(((self.bits >> 23) & 1) != 0)
561    }
562}
563impl W {
564    #[doc = "Bits 0:1 - Composite Compare Match Condition Selection"]
565    #[inline(always)]
566    #[must_use]
567    pub fn ccmpcnd(&mut self) -> CCMPCND_W<0> {
568        CCMPCND_W::new(self)
569    }
570    #[doc = "Bit 16 - Composite Compare Match Condition Table Selection"]
571    #[inline(always)]
572    #[must_use]
573    pub fn ccmptbl0(&mut self) -> CCMPTBL0_W<16> {
574        CCMPTBL0_W::new(self)
575    }
576    #[doc = "Bit 17 - Composite Compare Match Condition Table Selection"]
577    #[inline(always)]
578    #[must_use]
579    pub fn ccmptbl1(&mut self) -> CCMPTBL1_W<17> {
580        CCMPTBL1_W::new(self)
581    }
582    #[doc = "Bit 18 - Composite Compare Match Condition Table Selection"]
583    #[inline(always)]
584    #[must_use]
585    pub fn ccmptbl2(&mut self) -> CCMPTBL2_W<18> {
586        CCMPTBL2_W::new(self)
587    }
588    #[doc = "Bit 19 - Composite Compare Match Condition Table Selection"]
589    #[inline(always)]
590    #[must_use]
591    pub fn ccmptbl3(&mut self) -> CCMPTBL3_W<19> {
592        CCMPTBL3_W::new(self)
593    }
594    #[doc = "Bit 20 - Composite Compare Match Condition Table Selection"]
595    #[inline(always)]
596    #[must_use]
597    pub fn ccmptbl4(&mut self) -> CCMPTBL4_W<20> {
598        CCMPTBL4_W::new(self)
599    }
600    #[doc = "Bit 21 - Composite Compare Match Condition Table Selection"]
601    #[inline(always)]
602    #[must_use]
603    pub fn ccmptbl5(&mut self) -> CCMPTBL5_W<21> {
604        CCMPTBL5_W::new(self)
605    }
606    #[doc = "Bit 22 - Composite Compare Match Condition Table Selection"]
607    #[inline(always)]
608    #[must_use]
609    pub fn ccmptbl6(&mut self) -> CCMPTBL6_W<22> {
610        CCMPTBL6_W::new(self)
611    }
612    #[doc = "Bit 23 - Composite Compare Match Condition Table Selection"]
613    #[inline(always)]
614    #[must_use]
615    pub fn ccmptbl7(&mut self) -> CCMPTBL7_W<23> {
616        CCMPTBL7_W::new(self)
617    }
618    #[doc = "Writes raw bits to the register."]
619    #[inline(always)]
620    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
621        self.0.bits(bits);
622        self
623    }
624}
625#[doc = "Composite Compare Match Configuration Register %s\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 [adccmpcr](index.html) module"]
626pub struct ADCCMPCR_SPEC;
627impl crate::RegisterSpec for ADCCMPCR_SPEC {
628    type Ux = u32;
629}
630#[doc = "`read()` method returns [adccmpcr::R](R) reader structure"]
631impl crate::Readable for ADCCMPCR_SPEC {
632    type Reader = R;
633}
634#[doc = "`write(|w| ..)` method takes [adccmpcr::W](W) writer structure"]
635impl crate::Writable for ADCCMPCR_SPEC {
636    type Writer = W;
637    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
638    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
639}
640#[doc = "`reset()` method sets ADCCMPCR%s to value 0"]
641impl crate::Resettable for ADCCMPCR_SPEC {
642    const RESET_VALUE: Self::Ux = 0;
643}