s32k118_pac/dma/
err.rs

1#[doc = "Register `ERR` reader"]
2pub struct R(crate::R<ERR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<ERR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<ERR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<ERR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `ERR` writer"]
17pub struct W(crate::W<ERR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<ERR_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<ERR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<ERR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Error In Channel 0\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39pub enum ERR0_A {
40    #[doc = "0: An error in this channel has not occurred"]
41    _0 = 0,
42    #[doc = "1: An error in this channel has occurred"]
43    _1 = 1,
44}
45impl From<ERR0_A> for bool {
46    #[inline(always)]
47    fn from(variant: ERR0_A) -> Self {
48        variant as u8 != 0
49    }
50}
51#[doc = "Field `ERR0` reader - Error In Channel 0"]
52pub struct ERR0_R(crate::FieldReader<bool, ERR0_A>);
53impl ERR0_R {
54    #[inline(always)]
55    pub(crate) fn new(bits: bool) -> Self {
56        ERR0_R(crate::FieldReader::new(bits))
57    }
58    #[doc = r"Get enumerated values variant"]
59    #[inline(always)]
60    pub fn variant(&self) -> ERR0_A {
61        match self.bits {
62            false => ERR0_A::_0,
63            true => ERR0_A::_1,
64        }
65    }
66    #[doc = "Checks if the value of the field is `_0`"]
67    #[inline(always)]
68    pub fn is_0(&self) -> bool {
69        **self == ERR0_A::_0
70    }
71    #[doc = "Checks if the value of the field is `_1`"]
72    #[inline(always)]
73    pub fn is_1(&self) -> bool {
74        **self == ERR0_A::_1
75    }
76}
77impl core::ops::Deref for ERR0_R {
78    type Target = crate::FieldReader<bool, ERR0_A>;
79    #[inline(always)]
80    fn deref(&self) -> &Self::Target {
81        &self.0
82    }
83}
84#[doc = "Field `ERR0` writer - Error In Channel 0"]
85pub struct ERR0_W<'a> {
86    w: &'a mut W,
87}
88impl<'a> ERR0_W<'a> {
89    #[doc = r"Writes `variant` to the field"]
90    #[inline(always)]
91    pub fn variant(self, variant: ERR0_A) -> &'a mut W {
92        self.bit(variant.into())
93    }
94    #[doc = "An error in this channel has not occurred"]
95    #[inline(always)]
96    pub fn _0(self) -> &'a mut W {
97        self.variant(ERR0_A::_0)
98    }
99    #[doc = "An error in this channel has occurred"]
100    #[inline(always)]
101    pub fn _1(self) -> &'a mut W {
102        self.variant(ERR0_A::_1)
103    }
104    #[doc = r"Sets the field bit"]
105    #[inline(always)]
106    pub fn set_bit(self) -> &'a mut W {
107        self.bit(true)
108    }
109    #[doc = r"Clears the field bit"]
110    #[inline(always)]
111    pub fn clear_bit(self) -> &'a mut W {
112        self.bit(false)
113    }
114    #[doc = r"Writes raw bits to the field"]
115    #[inline(always)]
116    pub fn bit(self, value: bool) -> &'a mut W {
117        self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
118        self.w
119    }
120}
121#[doc = "Error In Channel 1\n\nValue on reset: 0"]
122#[derive(Clone, Copy, Debug, PartialEq)]
123pub enum ERR1_A {
124    #[doc = "0: An error in this channel has not occurred"]
125    _0 = 0,
126    #[doc = "1: An error in this channel has occurred"]
127    _1 = 1,
128}
129impl From<ERR1_A> for bool {
130    #[inline(always)]
131    fn from(variant: ERR1_A) -> Self {
132        variant as u8 != 0
133    }
134}
135#[doc = "Field `ERR1` reader - Error In Channel 1"]
136pub struct ERR1_R(crate::FieldReader<bool, ERR1_A>);
137impl ERR1_R {
138    #[inline(always)]
139    pub(crate) fn new(bits: bool) -> Self {
140        ERR1_R(crate::FieldReader::new(bits))
141    }
142    #[doc = r"Get enumerated values variant"]
143    #[inline(always)]
144    pub fn variant(&self) -> ERR1_A {
145        match self.bits {
146            false => ERR1_A::_0,
147            true => ERR1_A::_1,
148        }
149    }
150    #[doc = "Checks if the value of the field is `_0`"]
151    #[inline(always)]
152    pub fn is_0(&self) -> bool {
153        **self == ERR1_A::_0
154    }
155    #[doc = "Checks if the value of the field is `_1`"]
156    #[inline(always)]
157    pub fn is_1(&self) -> bool {
158        **self == ERR1_A::_1
159    }
160}
161impl core::ops::Deref for ERR1_R {
162    type Target = crate::FieldReader<bool, ERR1_A>;
163    #[inline(always)]
164    fn deref(&self) -> &Self::Target {
165        &self.0
166    }
167}
168#[doc = "Field `ERR1` writer - Error In Channel 1"]
169pub struct ERR1_W<'a> {
170    w: &'a mut W,
171}
172impl<'a> ERR1_W<'a> {
173    #[doc = r"Writes `variant` to the field"]
174    #[inline(always)]
175    pub fn variant(self, variant: ERR1_A) -> &'a mut W {
176        self.bit(variant.into())
177    }
178    #[doc = "An error in this channel has not occurred"]
179    #[inline(always)]
180    pub fn _0(self) -> &'a mut W {
181        self.variant(ERR1_A::_0)
182    }
183    #[doc = "An error in this channel has occurred"]
184    #[inline(always)]
185    pub fn _1(self) -> &'a mut W {
186        self.variant(ERR1_A::_1)
187    }
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 << 1)) | ((value as u32 & 0x01) << 1);
202        self.w
203    }
204}
205#[doc = "Error In Channel 2\n\nValue on reset: 0"]
206#[derive(Clone, Copy, Debug, PartialEq)]
207pub enum ERR2_A {
208    #[doc = "0: An error in this channel has not occurred"]
209    _0 = 0,
210    #[doc = "1: An error in this channel has occurred"]
211    _1 = 1,
212}
213impl From<ERR2_A> for bool {
214    #[inline(always)]
215    fn from(variant: ERR2_A) -> Self {
216        variant as u8 != 0
217    }
218}
219#[doc = "Field `ERR2` reader - Error In Channel 2"]
220pub struct ERR2_R(crate::FieldReader<bool, ERR2_A>);
221impl ERR2_R {
222    #[inline(always)]
223    pub(crate) fn new(bits: bool) -> Self {
224        ERR2_R(crate::FieldReader::new(bits))
225    }
226    #[doc = r"Get enumerated values variant"]
227    #[inline(always)]
228    pub fn variant(&self) -> ERR2_A {
229        match self.bits {
230            false => ERR2_A::_0,
231            true => ERR2_A::_1,
232        }
233    }
234    #[doc = "Checks if the value of the field is `_0`"]
235    #[inline(always)]
236    pub fn is_0(&self) -> bool {
237        **self == ERR2_A::_0
238    }
239    #[doc = "Checks if the value of the field is `_1`"]
240    #[inline(always)]
241    pub fn is_1(&self) -> bool {
242        **self == ERR2_A::_1
243    }
244}
245impl core::ops::Deref for ERR2_R {
246    type Target = crate::FieldReader<bool, ERR2_A>;
247    #[inline(always)]
248    fn deref(&self) -> &Self::Target {
249        &self.0
250    }
251}
252#[doc = "Field `ERR2` writer - Error In Channel 2"]
253pub struct ERR2_W<'a> {
254    w: &'a mut W,
255}
256impl<'a> ERR2_W<'a> {
257    #[doc = r"Writes `variant` to the field"]
258    #[inline(always)]
259    pub fn variant(self, variant: ERR2_A) -> &'a mut W {
260        self.bit(variant.into())
261    }
262    #[doc = "An error in this channel has not occurred"]
263    #[inline(always)]
264    pub fn _0(self) -> &'a mut W {
265        self.variant(ERR2_A::_0)
266    }
267    #[doc = "An error in this channel has occurred"]
268    #[inline(always)]
269    pub fn _1(self) -> &'a mut W {
270        self.variant(ERR2_A::_1)
271    }
272    #[doc = r"Sets the field bit"]
273    #[inline(always)]
274    pub fn set_bit(self) -> &'a mut W {
275        self.bit(true)
276    }
277    #[doc = r"Clears the field bit"]
278    #[inline(always)]
279    pub fn clear_bit(self) -> &'a mut W {
280        self.bit(false)
281    }
282    #[doc = r"Writes raw bits to the field"]
283    #[inline(always)]
284    pub fn bit(self, value: bool) -> &'a mut W {
285        self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
286        self.w
287    }
288}
289#[doc = "Error In Channel 3\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum ERR3_A {
292    #[doc = "0: An error in this channel has not occurred"]
293    _0 = 0,
294    #[doc = "1: An error in this channel has occurred"]
295    _1 = 1,
296}
297impl From<ERR3_A> for bool {
298    #[inline(always)]
299    fn from(variant: ERR3_A) -> Self {
300        variant as u8 != 0
301    }
302}
303#[doc = "Field `ERR3` reader - Error In Channel 3"]
304pub struct ERR3_R(crate::FieldReader<bool, ERR3_A>);
305impl ERR3_R {
306    #[inline(always)]
307    pub(crate) fn new(bits: bool) -> Self {
308        ERR3_R(crate::FieldReader::new(bits))
309    }
310    #[doc = r"Get enumerated values variant"]
311    #[inline(always)]
312    pub fn variant(&self) -> ERR3_A {
313        match self.bits {
314            false => ERR3_A::_0,
315            true => ERR3_A::_1,
316        }
317    }
318    #[doc = "Checks if the value of the field is `_0`"]
319    #[inline(always)]
320    pub fn is_0(&self) -> bool {
321        **self == ERR3_A::_0
322    }
323    #[doc = "Checks if the value of the field is `_1`"]
324    #[inline(always)]
325    pub fn is_1(&self) -> bool {
326        **self == ERR3_A::_1
327    }
328}
329impl core::ops::Deref for ERR3_R {
330    type Target = crate::FieldReader<bool, ERR3_A>;
331    #[inline(always)]
332    fn deref(&self) -> &Self::Target {
333        &self.0
334    }
335}
336#[doc = "Field `ERR3` writer - Error In Channel 3"]
337pub struct ERR3_W<'a> {
338    w: &'a mut W,
339}
340impl<'a> ERR3_W<'a> {
341    #[doc = r"Writes `variant` to the field"]
342    #[inline(always)]
343    pub fn variant(self, variant: ERR3_A) -> &'a mut W {
344        self.bit(variant.into())
345    }
346    #[doc = "An error in this channel has not occurred"]
347    #[inline(always)]
348    pub fn _0(self) -> &'a mut W {
349        self.variant(ERR3_A::_0)
350    }
351    #[doc = "An error in this channel has occurred"]
352    #[inline(always)]
353    pub fn _1(self) -> &'a mut W {
354        self.variant(ERR3_A::_1)
355    }
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 << 3)) | ((value as u32 & 0x01) << 3);
370        self.w
371    }
372}
373#[doc = "Error In Channel 4\n\nValue on reset: 0"]
374#[derive(Clone, Copy, Debug, PartialEq)]
375pub enum ERR4_A {
376    #[doc = "0: An error in this channel has not occurred"]
377    _0 = 0,
378    #[doc = "1: An error in this channel has occurred"]
379    _1 = 1,
380}
381impl From<ERR4_A> for bool {
382    #[inline(always)]
383    fn from(variant: ERR4_A) -> Self {
384        variant as u8 != 0
385    }
386}
387#[doc = "Field `ERR4` reader - Error In Channel 4"]
388pub struct ERR4_R(crate::FieldReader<bool, ERR4_A>);
389impl ERR4_R {
390    #[inline(always)]
391    pub(crate) fn new(bits: bool) -> Self {
392        ERR4_R(crate::FieldReader::new(bits))
393    }
394    #[doc = r"Get enumerated values variant"]
395    #[inline(always)]
396    pub fn variant(&self) -> ERR4_A {
397        match self.bits {
398            false => ERR4_A::_0,
399            true => ERR4_A::_1,
400        }
401    }
402    #[doc = "Checks if the value of the field is `_0`"]
403    #[inline(always)]
404    pub fn is_0(&self) -> bool {
405        **self == ERR4_A::_0
406    }
407    #[doc = "Checks if the value of the field is `_1`"]
408    #[inline(always)]
409    pub fn is_1(&self) -> bool {
410        **self == ERR4_A::_1
411    }
412}
413impl core::ops::Deref for ERR4_R {
414    type Target = crate::FieldReader<bool, ERR4_A>;
415    #[inline(always)]
416    fn deref(&self) -> &Self::Target {
417        &self.0
418    }
419}
420#[doc = "Field `ERR4` writer - Error In Channel 4"]
421pub struct ERR4_W<'a> {
422    w: &'a mut W,
423}
424impl<'a> ERR4_W<'a> {
425    #[doc = r"Writes `variant` to the field"]
426    #[inline(always)]
427    pub fn variant(self, variant: ERR4_A) -> &'a mut W {
428        self.bit(variant.into())
429    }
430    #[doc = "An error in this channel has not occurred"]
431    #[inline(always)]
432    pub fn _0(self) -> &'a mut W {
433        self.variant(ERR4_A::_0)
434    }
435    #[doc = "An error in this channel has occurred"]
436    #[inline(always)]
437    pub fn _1(self) -> &'a mut W {
438        self.variant(ERR4_A::_1)
439    }
440    #[doc = r"Sets the field bit"]
441    #[inline(always)]
442    pub fn set_bit(self) -> &'a mut W {
443        self.bit(true)
444    }
445    #[doc = r"Clears the field bit"]
446    #[inline(always)]
447    pub fn clear_bit(self) -> &'a mut W {
448        self.bit(false)
449    }
450    #[doc = r"Writes raw bits to the field"]
451    #[inline(always)]
452    pub fn bit(self, value: bool) -> &'a mut W {
453        self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
454        self.w
455    }
456}
457#[doc = "Error In Channel 5\n\nValue on reset: 0"]
458#[derive(Clone, Copy, Debug, PartialEq)]
459pub enum ERR5_A {
460    #[doc = "0: An error in this channel has not occurred"]
461    _0 = 0,
462    #[doc = "1: An error in this channel has occurred"]
463    _1 = 1,
464}
465impl From<ERR5_A> for bool {
466    #[inline(always)]
467    fn from(variant: ERR5_A) -> Self {
468        variant as u8 != 0
469    }
470}
471#[doc = "Field `ERR5` reader - Error In Channel 5"]
472pub struct ERR5_R(crate::FieldReader<bool, ERR5_A>);
473impl ERR5_R {
474    #[inline(always)]
475    pub(crate) fn new(bits: bool) -> Self {
476        ERR5_R(crate::FieldReader::new(bits))
477    }
478    #[doc = r"Get enumerated values variant"]
479    #[inline(always)]
480    pub fn variant(&self) -> ERR5_A {
481        match self.bits {
482            false => ERR5_A::_0,
483            true => ERR5_A::_1,
484        }
485    }
486    #[doc = "Checks if the value of the field is `_0`"]
487    #[inline(always)]
488    pub fn is_0(&self) -> bool {
489        **self == ERR5_A::_0
490    }
491    #[doc = "Checks if the value of the field is `_1`"]
492    #[inline(always)]
493    pub fn is_1(&self) -> bool {
494        **self == ERR5_A::_1
495    }
496}
497impl core::ops::Deref for ERR5_R {
498    type Target = crate::FieldReader<bool, ERR5_A>;
499    #[inline(always)]
500    fn deref(&self) -> &Self::Target {
501        &self.0
502    }
503}
504#[doc = "Field `ERR5` writer - Error In Channel 5"]
505pub struct ERR5_W<'a> {
506    w: &'a mut W,
507}
508impl<'a> ERR5_W<'a> {
509    #[doc = r"Writes `variant` to the field"]
510    #[inline(always)]
511    pub fn variant(self, variant: ERR5_A) -> &'a mut W {
512        self.bit(variant.into())
513    }
514    #[doc = "An error in this channel has not occurred"]
515    #[inline(always)]
516    pub fn _0(self) -> &'a mut W {
517        self.variant(ERR5_A::_0)
518    }
519    #[doc = "An error in this channel has occurred"]
520    #[inline(always)]
521    pub fn _1(self) -> &'a mut W {
522        self.variant(ERR5_A::_1)
523    }
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 << 5)) | ((value as u32 & 0x01) << 5);
538        self.w
539    }
540}
541#[doc = "Error In Channel 6\n\nValue on reset: 0"]
542#[derive(Clone, Copy, Debug, PartialEq)]
543pub enum ERR6_A {
544    #[doc = "0: An error in this channel has not occurred"]
545    _0 = 0,
546    #[doc = "1: An error in this channel has occurred"]
547    _1 = 1,
548}
549impl From<ERR6_A> for bool {
550    #[inline(always)]
551    fn from(variant: ERR6_A) -> Self {
552        variant as u8 != 0
553    }
554}
555#[doc = "Field `ERR6` reader - Error In Channel 6"]
556pub struct ERR6_R(crate::FieldReader<bool, ERR6_A>);
557impl ERR6_R {
558    #[inline(always)]
559    pub(crate) fn new(bits: bool) -> Self {
560        ERR6_R(crate::FieldReader::new(bits))
561    }
562    #[doc = r"Get enumerated values variant"]
563    #[inline(always)]
564    pub fn variant(&self) -> ERR6_A {
565        match self.bits {
566            false => ERR6_A::_0,
567            true => ERR6_A::_1,
568        }
569    }
570    #[doc = "Checks if the value of the field is `_0`"]
571    #[inline(always)]
572    pub fn is_0(&self) -> bool {
573        **self == ERR6_A::_0
574    }
575    #[doc = "Checks if the value of the field is `_1`"]
576    #[inline(always)]
577    pub fn is_1(&self) -> bool {
578        **self == ERR6_A::_1
579    }
580}
581impl core::ops::Deref for ERR6_R {
582    type Target = crate::FieldReader<bool, ERR6_A>;
583    #[inline(always)]
584    fn deref(&self) -> &Self::Target {
585        &self.0
586    }
587}
588#[doc = "Field `ERR6` writer - Error In Channel 6"]
589pub struct ERR6_W<'a> {
590    w: &'a mut W,
591}
592impl<'a> ERR6_W<'a> {
593    #[doc = r"Writes `variant` to the field"]
594    #[inline(always)]
595    pub fn variant(self, variant: ERR6_A) -> &'a mut W {
596        self.bit(variant.into())
597    }
598    #[doc = "An error in this channel has not occurred"]
599    #[inline(always)]
600    pub fn _0(self) -> &'a mut W {
601        self.variant(ERR6_A::_0)
602    }
603    #[doc = "An error in this channel has occurred"]
604    #[inline(always)]
605    pub fn _1(self) -> &'a mut W {
606        self.variant(ERR6_A::_1)
607    }
608    #[doc = r"Sets the field bit"]
609    #[inline(always)]
610    pub fn set_bit(self) -> &'a mut W {
611        self.bit(true)
612    }
613    #[doc = r"Clears the field bit"]
614    #[inline(always)]
615    pub fn clear_bit(self) -> &'a mut W {
616        self.bit(false)
617    }
618    #[doc = r"Writes raw bits to the field"]
619    #[inline(always)]
620    pub fn bit(self, value: bool) -> &'a mut W {
621        self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
622        self.w
623    }
624}
625#[doc = "Error In Channel 7\n\nValue on reset: 0"]
626#[derive(Clone, Copy, Debug, PartialEq)]
627pub enum ERR7_A {
628    #[doc = "0: An error in this channel has not occurred"]
629    _0 = 0,
630    #[doc = "1: An error in this channel has occurred"]
631    _1 = 1,
632}
633impl From<ERR7_A> for bool {
634    #[inline(always)]
635    fn from(variant: ERR7_A) -> Self {
636        variant as u8 != 0
637    }
638}
639#[doc = "Field `ERR7` reader - Error In Channel 7"]
640pub struct ERR7_R(crate::FieldReader<bool, ERR7_A>);
641impl ERR7_R {
642    #[inline(always)]
643    pub(crate) fn new(bits: bool) -> Self {
644        ERR7_R(crate::FieldReader::new(bits))
645    }
646    #[doc = r"Get enumerated values variant"]
647    #[inline(always)]
648    pub fn variant(&self) -> ERR7_A {
649        match self.bits {
650            false => ERR7_A::_0,
651            true => ERR7_A::_1,
652        }
653    }
654    #[doc = "Checks if the value of the field is `_0`"]
655    #[inline(always)]
656    pub fn is_0(&self) -> bool {
657        **self == ERR7_A::_0
658    }
659    #[doc = "Checks if the value of the field is `_1`"]
660    #[inline(always)]
661    pub fn is_1(&self) -> bool {
662        **self == ERR7_A::_1
663    }
664}
665impl core::ops::Deref for ERR7_R {
666    type Target = crate::FieldReader<bool, ERR7_A>;
667    #[inline(always)]
668    fn deref(&self) -> &Self::Target {
669        &self.0
670    }
671}
672#[doc = "Field `ERR7` writer - Error In Channel 7"]
673pub struct ERR7_W<'a> {
674    w: &'a mut W,
675}
676impl<'a> ERR7_W<'a> {
677    #[doc = r"Writes `variant` to the field"]
678    #[inline(always)]
679    pub fn variant(self, variant: ERR7_A) -> &'a mut W {
680        self.bit(variant.into())
681    }
682    #[doc = "An error in this channel has not occurred"]
683    #[inline(always)]
684    pub fn _0(self) -> &'a mut W {
685        self.variant(ERR7_A::_0)
686    }
687    #[doc = "An error in this channel has occurred"]
688    #[inline(always)]
689    pub fn _1(self) -> &'a mut W {
690        self.variant(ERR7_A::_1)
691    }
692    #[doc = r"Sets the field bit"]
693    #[inline(always)]
694    pub fn set_bit(self) -> &'a mut W {
695        self.bit(true)
696    }
697    #[doc = r"Clears the field bit"]
698    #[inline(always)]
699    pub fn clear_bit(self) -> &'a mut W {
700        self.bit(false)
701    }
702    #[doc = r"Writes raw bits to the field"]
703    #[inline(always)]
704    pub fn bit(self, value: bool) -> &'a mut W {
705        self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
706        self.w
707    }
708}
709#[doc = "Error In Channel 8\n\nValue on reset: 0"]
710#[derive(Clone, Copy, Debug, PartialEq)]
711pub enum ERR8_A {
712    #[doc = "0: An error in this channel has not occurred"]
713    _0 = 0,
714    #[doc = "1: An error in this channel has occurred"]
715    _1 = 1,
716}
717impl From<ERR8_A> for bool {
718    #[inline(always)]
719    fn from(variant: ERR8_A) -> Self {
720        variant as u8 != 0
721    }
722}
723#[doc = "Field `ERR8` reader - Error In Channel 8"]
724pub struct ERR8_R(crate::FieldReader<bool, ERR8_A>);
725impl ERR8_R {
726    #[inline(always)]
727    pub(crate) fn new(bits: bool) -> Self {
728        ERR8_R(crate::FieldReader::new(bits))
729    }
730    #[doc = r"Get enumerated values variant"]
731    #[inline(always)]
732    pub fn variant(&self) -> ERR8_A {
733        match self.bits {
734            false => ERR8_A::_0,
735            true => ERR8_A::_1,
736        }
737    }
738    #[doc = "Checks if the value of the field is `_0`"]
739    #[inline(always)]
740    pub fn is_0(&self) -> bool {
741        **self == ERR8_A::_0
742    }
743    #[doc = "Checks if the value of the field is `_1`"]
744    #[inline(always)]
745    pub fn is_1(&self) -> bool {
746        **self == ERR8_A::_1
747    }
748}
749impl core::ops::Deref for ERR8_R {
750    type Target = crate::FieldReader<bool, ERR8_A>;
751    #[inline(always)]
752    fn deref(&self) -> &Self::Target {
753        &self.0
754    }
755}
756#[doc = "Field `ERR8` writer - Error In Channel 8"]
757pub struct ERR8_W<'a> {
758    w: &'a mut W,
759}
760impl<'a> ERR8_W<'a> {
761    #[doc = r"Writes `variant` to the field"]
762    #[inline(always)]
763    pub fn variant(self, variant: ERR8_A) -> &'a mut W {
764        self.bit(variant.into())
765    }
766    #[doc = "An error in this channel has not occurred"]
767    #[inline(always)]
768    pub fn _0(self) -> &'a mut W {
769        self.variant(ERR8_A::_0)
770    }
771    #[doc = "An error in this channel has occurred"]
772    #[inline(always)]
773    pub fn _1(self) -> &'a mut W {
774        self.variant(ERR8_A::_1)
775    }
776    #[doc = r"Sets the field bit"]
777    #[inline(always)]
778    pub fn set_bit(self) -> &'a mut W {
779        self.bit(true)
780    }
781    #[doc = r"Clears the field bit"]
782    #[inline(always)]
783    pub fn clear_bit(self) -> &'a mut W {
784        self.bit(false)
785    }
786    #[doc = r"Writes raw bits to the field"]
787    #[inline(always)]
788    pub fn bit(self, value: bool) -> &'a mut W {
789        self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
790        self.w
791    }
792}
793#[doc = "Error In Channel 9\n\nValue on reset: 0"]
794#[derive(Clone, Copy, Debug, PartialEq)]
795pub enum ERR9_A {
796    #[doc = "0: An error in this channel has not occurred"]
797    _0 = 0,
798    #[doc = "1: An error in this channel has occurred"]
799    _1 = 1,
800}
801impl From<ERR9_A> for bool {
802    #[inline(always)]
803    fn from(variant: ERR9_A) -> Self {
804        variant as u8 != 0
805    }
806}
807#[doc = "Field `ERR9` reader - Error In Channel 9"]
808pub struct ERR9_R(crate::FieldReader<bool, ERR9_A>);
809impl ERR9_R {
810    #[inline(always)]
811    pub(crate) fn new(bits: bool) -> Self {
812        ERR9_R(crate::FieldReader::new(bits))
813    }
814    #[doc = r"Get enumerated values variant"]
815    #[inline(always)]
816    pub fn variant(&self) -> ERR9_A {
817        match self.bits {
818            false => ERR9_A::_0,
819            true => ERR9_A::_1,
820        }
821    }
822    #[doc = "Checks if the value of the field is `_0`"]
823    #[inline(always)]
824    pub fn is_0(&self) -> bool {
825        **self == ERR9_A::_0
826    }
827    #[doc = "Checks if the value of the field is `_1`"]
828    #[inline(always)]
829    pub fn is_1(&self) -> bool {
830        **self == ERR9_A::_1
831    }
832}
833impl core::ops::Deref for ERR9_R {
834    type Target = crate::FieldReader<bool, ERR9_A>;
835    #[inline(always)]
836    fn deref(&self) -> &Self::Target {
837        &self.0
838    }
839}
840#[doc = "Field `ERR9` writer - Error In Channel 9"]
841pub struct ERR9_W<'a> {
842    w: &'a mut W,
843}
844impl<'a> ERR9_W<'a> {
845    #[doc = r"Writes `variant` to the field"]
846    #[inline(always)]
847    pub fn variant(self, variant: ERR9_A) -> &'a mut W {
848        self.bit(variant.into())
849    }
850    #[doc = "An error in this channel has not occurred"]
851    #[inline(always)]
852    pub fn _0(self) -> &'a mut W {
853        self.variant(ERR9_A::_0)
854    }
855    #[doc = "An error in this channel has occurred"]
856    #[inline(always)]
857    pub fn _1(self) -> &'a mut W {
858        self.variant(ERR9_A::_1)
859    }
860    #[doc = r"Sets the field bit"]
861    #[inline(always)]
862    pub fn set_bit(self) -> &'a mut W {
863        self.bit(true)
864    }
865    #[doc = r"Clears the field bit"]
866    #[inline(always)]
867    pub fn clear_bit(self) -> &'a mut W {
868        self.bit(false)
869    }
870    #[doc = r"Writes raw bits to the field"]
871    #[inline(always)]
872    pub fn bit(self, value: bool) -> &'a mut W {
873        self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
874        self.w
875    }
876}
877#[doc = "Error In Channel 10\n\nValue on reset: 0"]
878#[derive(Clone, Copy, Debug, PartialEq)]
879pub enum ERR10_A {
880    #[doc = "0: An error in this channel has not occurred"]
881    _0 = 0,
882    #[doc = "1: An error in this channel has occurred"]
883    _1 = 1,
884}
885impl From<ERR10_A> for bool {
886    #[inline(always)]
887    fn from(variant: ERR10_A) -> Self {
888        variant as u8 != 0
889    }
890}
891#[doc = "Field `ERR10` reader - Error In Channel 10"]
892pub struct ERR10_R(crate::FieldReader<bool, ERR10_A>);
893impl ERR10_R {
894    #[inline(always)]
895    pub(crate) fn new(bits: bool) -> Self {
896        ERR10_R(crate::FieldReader::new(bits))
897    }
898    #[doc = r"Get enumerated values variant"]
899    #[inline(always)]
900    pub fn variant(&self) -> ERR10_A {
901        match self.bits {
902            false => ERR10_A::_0,
903            true => ERR10_A::_1,
904        }
905    }
906    #[doc = "Checks if the value of the field is `_0`"]
907    #[inline(always)]
908    pub fn is_0(&self) -> bool {
909        **self == ERR10_A::_0
910    }
911    #[doc = "Checks if the value of the field is `_1`"]
912    #[inline(always)]
913    pub fn is_1(&self) -> bool {
914        **self == ERR10_A::_1
915    }
916}
917impl core::ops::Deref for ERR10_R {
918    type Target = crate::FieldReader<bool, ERR10_A>;
919    #[inline(always)]
920    fn deref(&self) -> &Self::Target {
921        &self.0
922    }
923}
924#[doc = "Field `ERR10` writer - Error In Channel 10"]
925pub struct ERR10_W<'a> {
926    w: &'a mut W,
927}
928impl<'a> ERR10_W<'a> {
929    #[doc = r"Writes `variant` to the field"]
930    #[inline(always)]
931    pub fn variant(self, variant: ERR10_A) -> &'a mut W {
932        self.bit(variant.into())
933    }
934    #[doc = "An error in this channel has not occurred"]
935    #[inline(always)]
936    pub fn _0(self) -> &'a mut W {
937        self.variant(ERR10_A::_0)
938    }
939    #[doc = "An error in this channel has occurred"]
940    #[inline(always)]
941    pub fn _1(self) -> &'a mut W {
942        self.variant(ERR10_A::_1)
943    }
944    #[doc = r"Sets the field bit"]
945    #[inline(always)]
946    pub fn set_bit(self) -> &'a mut W {
947        self.bit(true)
948    }
949    #[doc = r"Clears the field bit"]
950    #[inline(always)]
951    pub fn clear_bit(self) -> &'a mut W {
952        self.bit(false)
953    }
954    #[doc = r"Writes raw bits to the field"]
955    #[inline(always)]
956    pub fn bit(self, value: bool) -> &'a mut W {
957        self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
958        self.w
959    }
960}
961#[doc = "Error In Channel 11\n\nValue on reset: 0"]
962#[derive(Clone, Copy, Debug, PartialEq)]
963pub enum ERR11_A {
964    #[doc = "0: An error in this channel has not occurred"]
965    _0 = 0,
966    #[doc = "1: An error in this channel has occurred"]
967    _1 = 1,
968}
969impl From<ERR11_A> for bool {
970    #[inline(always)]
971    fn from(variant: ERR11_A) -> Self {
972        variant as u8 != 0
973    }
974}
975#[doc = "Field `ERR11` reader - Error In Channel 11"]
976pub struct ERR11_R(crate::FieldReader<bool, ERR11_A>);
977impl ERR11_R {
978    #[inline(always)]
979    pub(crate) fn new(bits: bool) -> Self {
980        ERR11_R(crate::FieldReader::new(bits))
981    }
982    #[doc = r"Get enumerated values variant"]
983    #[inline(always)]
984    pub fn variant(&self) -> ERR11_A {
985        match self.bits {
986            false => ERR11_A::_0,
987            true => ERR11_A::_1,
988        }
989    }
990    #[doc = "Checks if the value of the field is `_0`"]
991    #[inline(always)]
992    pub fn is_0(&self) -> bool {
993        **self == ERR11_A::_0
994    }
995    #[doc = "Checks if the value of the field is `_1`"]
996    #[inline(always)]
997    pub fn is_1(&self) -> bool {
998        **self == ERR11_A::_1
999    }
1000}
1001impl core::ops::Deref for ERR11_R {
1002    type Target = crate::FieldReader<bool, ERR11_A>;
1003    #[inline(always)]
1004    fn deref(&self) -> &Self::Target {
1005        &self.0
1006    }
1007}
1008#[doc = "Field `ERR11` writer - Error In Channel 11"]
1009pub struct ERR11_W<'a> {
1010    w: &'a mut W,
1011}
1012impl<'a> ERR11_W<'a> {
1013    #[doc = r"Writes `variant` to the field"]
1014    #[inline(always)]
1015    pub fn variant(self, variant: ERR11_A) -> &'a mut W {
1016        self.bit(variant.into())
1017    }
1018    #[doc = "An error in this channel has not occurred"]
1019    #[inline(always)]
1020    pub fn _0(self) -> &'a mut W {
1021        self.variant(ERR11_A::_0)
1022    }
1023    #[doc = "An error in this channel has occurred"]
1024    #[inline(always)]
1025    pub fn _1(self) -> &'a mut W {
1026        self.variant(ERR11_A::_1)
1027    }
1028    #[doc = r"Sets the field bit"]
1029    #[inline(always)]
1030    pub fn set_bit(self) -> &'a mut W {
1031        self.bit(true)
1032    }
1033    #[doc = r"Clears the field bit"]
1034    #[inline(always)]
1035    pub fn clear_bit(self) -> &'a mut W {
1036        self.bit(false)
1037    }
1038    #[doc = r"Writes raw bits to the field"]
1039    #[inline(always)]
1040    pub fn bit(self, value: bool) -> &'a mut W {
1041        self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
1042        self.w
1043    }
1044}
1045#[doc = "Error In Channel 12\n\nValue on reset: 0"]
1046#[derive(Clone, Copy, Debug, PartialEq)]
1047pub enum ERR12_A {
1048    #[doc = "0: An error in this channel has not occurred"]
1049    _0 = 0,
1050    #[doc = "1: An error in this channel has occurred"]
1051    _1 = 1,
1052}
1053impl From<ERR12_A> for bool {
1054    #[inline(always)]
1055    fn from(variant: ERR12_A) -> Self {
1056        variant as u8 != 0
1057    }
1058}
1059#[doc = "Field `ERR12` reader - Error In Channel 12"]
1060pub struct ERR12_R(crate::FieldReader<bool, ERR12_A>);
1061impl ERR12_R {
1062    #[inline(always)]
1063    pub(crate) fn new(bits: bool) -> Self {
1064        ERR12_R(crate::FieldReader::new(bits))
1065    }
1066    #[doc = r"Get enumerated values variant"]
1067    #[inline(always)]
1068    pub fn variant(&self) -> ERR12_A {
1069        match self.bits {
1070            false => ERR12_A::_0,
1071            true => ERR12_A::_1,
1072        }
1073    }
1074    #[doc = "Checks if the value of the field is `_0`"]
1075    #[inline(always)]
1076    pub fn is_0(&self) -> bool {
1077        **self == ERR12_A::_0
1078    }
1079    #[doc = "Checks if the value of the field is `_1`"]
1080    #[inline(always)]
1081    pub fn is_1(&self) -> bool {
1082        **self == ERR12_A::_1
1083    }
1084}
1085impl core::ops::Deref for ERR12_R {
1086    type Target = crate::FieldReader<bool, ERR12_A>;
1087    #[inline(always)]
1088    fn deref(&self) -> &Self::Target {
1089        &self.0
1090    }
1091}
1092#[doc = "Field `ERR12` writer - Error In Channel 12"]
1093pub struct ERR12_W<'a> {
1094    w: &'a mut W,
1095}
1096impl<'a> ERR12_W<'a> {
1097    #[doc = r"Writes `variant` to the field"]
1098    #[inline(always)]
1099    pub fn variant(self, variant: ERR12_A) -> &'a mut W {
1100        self.bit(variant.into())
1101    }
1102    #[doc = "An error in this channel has not occurred"]
1103    #[inline(always)]
1104    pub fn _0(self) -> &'a mut W {
1105        self.variant(ERR12_A::_0)
1106    }
1107    #[doc = "An error in this channel has occurred"]
1108    #[inline(always)]
1109    pub fn _1(self) -> &'a mut W {
1110        self.variant(ERR12_A::_1)
1111    }
1112    #[doc = r"Sets the field bit"]
1113    #[inline(always)]
1114    pub fn set_bit(self) -> &'a mut W {
1115        self.bit(true)
1116    }
1117    #[doc = r"Clears the field bit"]
1118    #[inline(always)]
1119    pub fn clear_bit(self) -> &'a mut W {
1120        self.bit(false)
1121    }
1122    #[doc = r"Writes raw bits to the field"]
1123    #[inline(always)]
1124    pub fn bit(self, value: bool) -> &'a mut W {
1125        self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
1126        self.w
1127    }
1128}
1129#[doc = "Error In Channel 13\n\nValue on reset: 0"]
1130#[derive(Clone, Copy, Debug, PartialEq)]
1131pub enum ERR13_A {
1132    #[doc = "0: An error in this channel has not occurred"]
1133    _0 = 0,
1134    #[doc = "1: An error in this channel has occurred"]
1135    _1 = 1,
1136}
1137impl From<ERR13_A> for bool {
1138    #[inline(always)]
1139    fn from(variant: ERR13_A) -> Self {
1140        variant as u8 != 0
1141    }
1142}
1143#[doc = "Field `ERR13` reader - Error In Channel 13"]
1144pub struct ERR13_R(crate::FieldReader<bool, ERR13_A>);
1145impl ERR13_R {
1146    #[inline(always)]
1147    pub(crate) fn new(bits: bool) -> Self {
1148        ERR13_R(crate::FieldReader::new(bits))
1149    }
1150    #[doc = r"Get enumerated values variant"]
1151    #[inline(always)]
1152    pub fn variant(&self) -> ERR13_A {
1153        match self.bits {
1154            false => ERR13_A::_0,
1155            true => ERR13_A::_1,
1156        }
1157    }
1158    #[doc = "Checks if the value of the field is `_0`"]
1159    #[inline(always)]
1160    pub fn is_0(&self) -> bool {
1161        **self == ERR13_A::_0
1162    }
1163    #[doc = "Checks if the value of the field is `_1`"]
1164    #[inline(always)]
1165    pub fn is_1(&self) -> bool {
1166        **self == ERR13_A::_1
1167    }
1168}
1169impl core::ops::Deref for ERR13_R {
1170    type Target = crate::FieldReader<bool, ERR13_A>;
1171    #[inline(always)]
1172    fn deref(&self) -> &Self::Target {
1173        &self.0
1174    }
1175}
1176#[doc = "Field `ERR13` writer - Error In Channel 13"]
1177pub struct ERR13_W<'a> {
1178    w: &'a mut W,
1179}
1180impl<'a> ERR13_W<'a> {
1181    #[doc = r"Writes `variant` to the field"]
1182    #[inline(always)]
1183    pub fn variant(self, variant: ERR13_A) -> &'a mut W {
1184        self.bit(variant.into())
1185    }
1186    #[doc = "An error in this channel has not occurred"]
1187    #[inline(always)]
1188    pub fn _0(self) -> &'a mut W {
1189        self.variant(ERR13_A::_0)
1190    }
1191    #[doc = "An error in this channel has occurred"]
1192    #[inline(always)]
1193    pub fn _1(self) -> &'a mut W {
1194        self.variant(ERR13_A::_1)
1195    }
1196    #[doc = r"Sets the field bit"]
1197    #[inline(always)]
1198    pub fn set_bit(self) -> &'a mut W {
1199        self.bit(true)
1200    }
1201    #[doc = r"Clears the field bit"]
1202    #[inline(always)]
1203    pub fn clear_bit(self) -> &'a mut W {
1204        self.bit(false)
1205    }
1206    #[doc = r"Writes raw bits to the field"]
1207    #[inline(always)]
1208    pub fn bit(self, value: bool) -> &'a mut W {
1209        self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
1210        self.w
1211    }
1212}
1213#[doc = "Error In Channel 14\n\nValue on reset: 0"]
1214#[derive(Clone, Copy, Debug, PartialEq)]
1215pub enum ERR14_A {
1216    #[doc = "0: An error in this channel has not occurred"]
1217    _0 = 0,
1218    #[doc = "1: An error in this channel has occurred"]
1219    _1 = 1,
1220}
1221impl From<ERR14_A> for bool {
1222    #[inline(always)]
1223    fn from(variant: ERR14_A) -> Self {
1224        variant as u8 != 0
1225    }
1226}
1227#[doc = "Field `ERR14` reader - Error In Channel 14"]
1228pub struct ERR14_R(crate::FieldReader<bool, ERR14_A>);
1229impl ERR14_R {
1230    #[inline(always)]
1231    pub(crate) fn new(bits: bool) -> Self {
1232        ERR14_R(crate::FieldReader::new(bits))
1233    }
1234    #[doc = r"Get enumerated values variant"]
1235    #[inline(always)]
1236    pub fn variant(&self) -> ERR14_A {
1237        match self.bits {
1238            false => ERR14_A::_0,
1239            true => ERR14_A::_1,
1240        }
1241    }
1242    #[doc = "Checks if the value of the field is `_0`"]
1243    #[inline(always)]
1244    pub fn is_0(&self) -> bool {
1245        **self == ERR14_A::_0
1246    }
1247    #[doc = "Checks if the value of the field is `_1`"]
1248    #[inline(always)]
1249    pub fn is_1(&self) -> bool {
1250        **self == ERR14_A::_1
1251    }
1252}
1253impl core::ops::Deref for ERR14_R {
1254    type Target = crate::FieldReader<bool, ERR14_A>;
1255    #[inline(always)]
1256    fn deref(&self) -> &Self::Target {
1257        &self.0
1258    }
1259}
1260#[doc = "Field `ERR14` writer - Error In Channel 14"]
1261pub struct ERR14_W<'a> {
1262    w: &'a mut W,
1263}
1264impl<'a> ERR14_W<'a> {
1265    #[doc = r"Writes `variant` to the field"]
1266    #[inline(always)]
1267    pub fn variant(self, variant: ERR14_A) -> &'a mut W {
1268        self.bit(variant.into())
1269    }
1270    #[doc = "An error in this channel has not occurred"]
1271    #[inline(always)]
1272    pub fn _0(self) -> &'a mut W {
1273        self.variant(ERR14_A::_0)
1274    }
1275    #[doc = "An error in this channel has occurred"]
1276    #[inline(always)]
1277    pub fn _1(self) -> &'a mut W {
1278        self.variant(ERR14_A::_1)
1279    }
1280    #[doc = r"Sets the field bit"]
1281    #[inline(always)]
1282    pub fn set_bit(self) -> &'a mut W {
1283        self.bit(true)
1284    }
1285    #[doc = r"Clears the field bit"]
1286    #[inline(always)]
1287    pub fn clear_bit(self) -> &'a mut W {
1288        self.bit(false)
1289    }
1290    #[doc = r"Writes raw bits to the field"]
1291    #[inline(always)]
1292    pub fn bit(self, value: bool) -> &'a mut W {
1293        self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
1294        self.w
1295    }
1296}
1297#[doc = "Error In Channel 15\n\nValue on reset: 0"]
1298#[derive(Clone, Copy, Debug, PartialEq)]
1299pub enum ERR15_A {
1300    #[doc = "0: An error in this channel has not occurred"]
1301    _0 = 0,
1302    #[doc = "1: An error in this channel has occurred"]
1303    _1 = 1,
1304}
1305impl From<ERR15_A> for bool {
1306    #[inline(always)]
1307    fn from(variant: ERR15_A) -> Self {
1308        variant as u8 != 0
1309    }
1310}
1311#[doc = "Field `ERR15` reader - Error In Channel 15"]
1312pub struct ERR15_R(crate::FieldReader<bool, ERR15_A>);
1313impl ERR15_R {
1314    #[inline(always)]
1315    pub(crate) fn new(bits: bool) -> Self {
1316        ERR15_R(crate::FieldReader::new(bits))
1317    }
1318    #[doc = r"Get enumerated values variant"]
1319    #[inline(always)]
1320    pub fn variant(&self) -> ERR15_A {
1321        match self.bits {
1322            false => ERR15_A::_0,
1323            true => ERR15_A::_1,
1324        }
1325    }
1326    #[doc = "Checks if the value of the field is `_0`"]
1327    #[inline(always)]
1328    pub fn is_0(&self) -> bool {
1329        **self == ERR15_A::_0
1330    }
1331    #[doc = "Checks if the value of the field is `_1`"]
1332    #[inline(always)]
1333    pub fn is_1(&self) -> bool {
1334        **self == ERR15_A::_1
1335    }
1336}
1337impl core::ops::Deref for ERR15_R {
1338    type Target = crate::FieldReader<bool, ERR15_A>;
1339    #[inline(always)]
1340    fn deref(&self) -> &Self::Target {
1341        &self.0
1342    }
1343}
1344#[doc = "Field `ERR15` writer - Error In Channel 15"]
1345pub struct ERR15_W<'a> {
1346    w: &'a mut W,
1347}
1348impl<'a> ERR15_W<'a> {
1349    #[doc = r"Writes `variant` to the field"]
1350    #[inline(always)]
1351    pub fn variant(self, variant: ERR15_A) -> &'a mut W {
1352        self.bit(variant.into())
1353    }
1354    #[doc = "An error in this channel has not occurred"]
1355    #[inline(always)]
1356    pub fn _0(self) -> &'a mut W {
1357        self.variant(ERR15_A::_0)
1358    }
1359    #[doc = "An error in this channel has occurred"]
1360    #[inline(always)]
1361    pub fn _1(self) -> &'a mut W {
1362        self.variant(ERR15_A::_1)
1363    }
1364    #[doc = r"Sets the field bit"]
1365    #[inline(always)]
1366    pub fn set_bit(self) -> &'a mut W {
1367        self.bit(true)
1368    }
1369    #[doc = r"Clears the field bit"]
1370    #[inline(always)]
1371    pub fn clear_bit(self) -> &'a mut W {
1372        self.bit(false)
1373    }
1374    #[doc = r"Writes raw bits to the field"]
1375    #[inline(always)]
1376    pub fn bit(self, value: bool) -> &'a mut W {
1377        self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
1378        self.w
1379    }
1380}
1381impl R {
1382    #[doc = "Bit 0 - Error In Channel 0"]
1383    #[inline(always)]
1384    pub fn err0(&self) -> ERR0_R {
1385        ERR0_R::new((self.bits & 0x01) != 0)
1386    }
1387    #[doc = "Bit 1 - Error In Channel 1"]
1388    #[inline(always)]
1389    pub fn err1(&self) -> ERR1_R {
1390        ERR1_R::new(((self.bits >> 1) & 0x01) != 0)
1391    }
1392    #[doc = "Bit 2 - Error In Channel 2"]
1393    #[inline(always)]
1394    pub fn err2(&self) -> ERR2_R {
1395        ERR2_R::new(((self.bits >> 2) & 0x01) != 0)
1396    }
1397    #[doc = "Bit 3 - Error In Channel 3"]
1398    #[inline(always)]
1399    pub fn err3(&self) -> ERR3_R {
1400        ERR3_R::new(((self.bits >> 3) & 0x01) != 0)
1401    }
1402    #[doc = "Bit 4 - Error In Channel 4"]
1403    #[inline(always)]
1404    pub fn err4(&self) -> ERR4_R {
1405        ERR4_R::new(((self.bits >> 4) & 0x01) != 0)
1406    }
1407    #[doc = "Bit 5 - Error In Channel 5"]
1408    #[inline(always)]
1409    pub fn err5(&self) -> ERR5_R {
1410        ERR5_R::new(((self.bits >> 5) & 0x01) != 0)
1411    }
1412    #[doc = "Bit 6 - Error In Channel 6"]
1413    #[inline(always)]
1414    pub fn err6(&self) -> ERR6_R {
1415        ERR6_R::new(((self.bits >> 6) & 0x01) != 0)
1416    }
1417    #[doc = "Bit 7 - Error In Channel 7"]
1418    #[inline(always)]
1419    pub fn err7(&self) -> ERR7_R {
1420        ERR7_R::new(((self.bits >> 7) & 0x01) != 0)
1421    }
1422    #[doc = "Bit 8 - Error In Channel 8"]
1423    #[inline(always)]
1424    pub fn err8(&self) -> ERR8_R {
1425        ERR8_R::new(((self.bits >> 8) & 0x01) != 0)
1426    }
1427    #[doc = "Bit 9 - Error In Channel 9"]
1428    #[inline(always)]
1429    pub fn err9(&self) -> ERR9_R {
1430        ERR9_R::new(((self.bits >> 9) & 0x01) != 0)
1431    }
1432    #[doc = "Bit 10 - Error In Channel 10"]
1433    #[inline(always)]
1434    pub fn err10(&self) -> ERR10_R {
1435        ERR10_R::new(((self.bits >> 10) & 0x01) != 0)
1436    }
1437    #[doc = "Bit 11 - Error In Channel 11"]
1438    #[inline(always)]
1439    pub fn err11(&self) -> ERR11_R {
1440        ERR11_R::new(((self.bits >> 11) & 0x01) != 0)
1441    }
1442    #[doc = "Bit 12 - Error In Channel 12"]
1443    #[inline(always)]
1444    pub fn err12(&self) -> ERR12_R {
1445        ERR12_R::new(((self.bits >> 12) & 0x01) != 0)
1446    }
1447    #[doc = "Bit 13 - Error In Channel 13"]
1448    #[inline(always)]
1449    pub fn err13(&self) -> ERR13_R {
1450        ERR13_R::new(((self.bits >> 13) & 0x01) != 0)
1451    }
1452    #[doc = "Bit 14 - Error In Channel 14"]
1453    #[inline(always)]
1454    pub fn err14(&self) -> ERR14_R {
1455        ERR14_R::new(((self.bits >> 14) & 0x01) != 0)
1456    }
1457    #[doc = "Bit 15 - Error In Channel 15"]
1458    #[inline(always)]
1459    pub fn err15(&self) -> ERR15_R {
1460        ERR15_R::new(((self.bits >> 15) & 0x01) != 0)
1461    }
1462}
1463impl W {
1464    #[doc = "Bit 0 - Error In Channel 0"]
1465    #[inline(always)]
1466    pub fn err0(&mut self) -> ERR0_W {
1467        ERR0_W { w: self }
1468    }
1469    #[doc = "Bit 1 - Error In Channel 1"]
1470    #[inline(always)]
1471    pub fn err1(&mut self) -> ERR1_W {
1472        ERR1_W { w: self }
1473    }
1474    #[doc = "Bit 2 - Error In Channel 2"]
1475    #[inline(always)]
1476    pub fn err2(&mut self) -> ERR2_W {
1477        ERR2_W { w: self }
1478    }
1479    #[doc = "Bit 3 - Error In Channel 3"]
1480    #[inline(always)]
1481    pub fn err3(&mut self) -> ERR3_W {
1482        ERR3_W { w: self }
1483    }
1484    #[doc = "Bit 4 - Error In Channel 4"]
1485    #[inline(always)]
1486    pub fn err4(&mut self) -> ERR4_W {
1487        ERR4_W { w: self }
1488    }
1489    #[doc = "Bit 5 - Error In Channel 5"]
1490    #[inline(always)]
1491    pub fn err5(&mut self) -> ERR5_W {
1492        ERR5_W { w: self }
1493    }
1494    #[doc = "Bit 6 - Error In Channel 6"]
1495    #[inline(always)]
1496    pub fn err6(&mut self) -> ERR6_W {
1497        ERR6_W { w: self }
1498    }
1499    #[doc = "Bit 7 - Error In Channel 7"]
1500    #[inline(always)]
1501    pub fn err7(&mut self) -> ERR7_W {
1502        ERR7_W { w: self }
1503    }
1504    #[doc = "Bit 8 - Error In Channel 8"]
1505    #[inline(always)]
1506    pub fn err8(&mut self) -> ERR8_W {
1507        ERR8_W { w: self }
1508    }
1509    #[doc = "Bit 9 - Error In Channel 9"]
1510    #[inline(always)]
1511    pub fn err9(&mut self) -> ERR9_W {
1512        ERR9_W { w: self }
1513    }
1514    #[doc = "Bit 10 - Error In Channel 10"]
1515    #[inline(always)]
1516    pub fn err10(&mut self) -> ERR10_W {
1517        ERR10_W { w: self }
1518    }
1519    #[doc = "Bit 11 - Error In Channel 11"]
1520    #[inline(always)]
1521    pub fn err11(&mut self) -> ERR11_W {
1522        ERR11_W { w: self }
1523    }
1524    #[doc = "Bit 12 - Error In Channel 12"]
1525    #[inline(always)]
1526    pub fn err12(&mut self) -> ERR12_W {
1527        ERR12_W { w: self }
1528    }
1529    #[doc = "Bit 13 - Error In Channel 13"]
1530    #[inline(always)]
1531    pub fn err13(&mut self) -> ERR13_W {
1532        ERR13_W { w: self }
1533    }
1534    #[doc = "Bit 14 - Error In Channel 14"]
1535    #[inline(always)]
1536    pub fn err14(&mut self) -> ERR14_W {
1537        ERR14_W { w: self }
1538    }
1539    #[doc = "Bit 15 - Error In Channel 15"]
1540    #[inline(always)]
1541    pub fn err15(&mut self) -> ERR15_W {
1542        ERR15_W { w: self }
1543    }
1544    #[doc = "Writes raw bits to the register."]
1545    #[inline(always)]
1546    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1547        self.0.bits(bits);
1548        self
1549    }
1550}
1551#[doc = "Error Register\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 [err](index.html) module"]
1552pub struct ERR_SPEC;
1553impl crate::RegisterSpec for ERR_SPEC {
1554    type Ux = u32;
1555}
1556#[doc = "`read()` method returns [err::R](R) reader structure"]
1557impl crate::Readable for ERR_SPEC {
1558    type Reader = R;
1559}
1560#[doc = "`write(|w| ..)` method takes [err::W](W) writer structure"]
1561impl crate::Writable for ERR_SPEC {
1562    type Writer = W;
1563}
1564#[doc = "`reset()` method sets ERR to value 0"]
1565impl crate::Resettable for ERR_SPEC {
1566    #[inline(always)]
1567    fn reset_value() -> Self::Ux {
1568        0
1569    }
1570}