Skip to main content

mcxa_pac/i3c0/
merrwarn.rs

1#[doc = "Register `MERRWARN` reader"]
2pub type R = crate::R<MerrwarnSpec>;
3#[doc = "Register `MERRWARN` writer"]
4pub type W = crate::W<MerrwarnSpec>;
5#[doc = "Underrun Error Flag\n\nValue on reset: 0"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum Urun {
9    #[doc = "0: No error"]
10    NoError = 0,
11    #[doc = "1: Error"]
12    Error = 1,
13}
14impl From<Urun> for bool {
15    #[inline(always)]
16    fn from(variant: Urun) -> Self {
17        variant as u8 != 0
18    }
19}
20#[doc = "Field `URUN` reader - Underrun Error Flag"]
21pub type UrunR = crate::BitReader<Urun>;
22impl UrunR {
23    #[doc = "Get enumerated values variant"]
24    #[inline(always)]
25    pub const fn variant(&self) -> Urun {
26        match self.bits {
27            false => Urun::NoError,
28            true => Urun::Error,
29        }
30    }
31    #[doc = "No error"]
32    #[inline(always)]
33    pub fn is_no_error(&self) -> bool {
34        *self == Urun::NoError
35    }
36    #[doc = "Error"]
37    #[inline(always)]
38    pub fn is_error(&self) -> bool {
39        *self == Urun::Error
40    }
41}
42#[doc = "Field `URUN` writer - Underrun Error Flag"]
43pub type UrunW<'a, REG> = crate::BitWriter1C<'a, REG, Urun>;
44impl<'a, REG> UrunW<'a, REG>
45where
46    REG: crate::Writable + crate::RegisterSpec,
47{
48    #[doc = "No error"]
49    #[inline(always)]
50    pub fn no_error(self) -> &'a mut crate::W<REG> {
51        self.variant(Urun::NoError)
52    }
53    #[doc = "Error"]
54    #[inline(always)]
55    pub fn error(self) -> &'a mut crate::W<REG> {
56        self.variant(Urun::Error)
57    }
58}
59#[doc = "Not Acknowledge Error Flag\n\nValue on reset: 0"]
60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum Nack {
63    #[doc = "0: No error"]
64    NoError = 0,
65    #[doc = "1: Error"]
66    Error = 1,
67}
68impl From<Nack> for bool {
69    #[inline(always)]
70    fn from(variant: Nack) -> Self {
71        variant as u8 != 0
72    }
73}
74#[doc = "Field `NACK` reader - Not Acknowledge Error Flag"]
75pub type NackR = crate::BitReader<Nack>;
76impl NackR {
77    #[doc = "Get enumerated values variant"]
78    #[inline(always)]
79    pub const fn variant(&self) -> Nack {
80        match self.bits {
81            false => Nack::NoError,
82            true => Nack::Error,
83        }
84    }
85    #[doc = "No error"]
86    #[inline(always)]
87    pub fn is_no_error(&self) -> bool {
88        *self == Nack::NoError
89    }
90    #[doc = "Error"]
91    #[inline(always)]
92    pub fn is_error(&self) -> bool {
93        *self == Nack::Error
94    }
95}
96#[doc = "Field `NACK` writer - Not Acknowledge Error Flag"]
97pub type NackW<'a, REG> = crate::BitWriter1C<'a, REG, Nack>;
98impl<'a, REG> NackW<'a, REG>
99where
100    REG: crate::Writable + crate::RegisterSpec,
101{
102    #[doc = "No error"]
103    #[inline(always)]
104    pub fn no_error(self) -> &'a mut crate::W<REG> {
105        self.variant(Nack::NoError)
106    }
107    #[doc = "Error"]
108    #[inline(always)]
109    pub fn error(self) -> &'a mut crate::W<REG> {
110        self.variant(Nack::Error)
111    }
112}
113#[doc = "Write Abort Error Flag\n\nValue on reset: 0"]
114#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum Wrabt {
117    #[doc = "0: No error"]
118    NoError = 0,
119    #[doc = "1: Error"]
120    Error = 1,
121}
122impl From<Wrabt> for bool {
123    #[inline(always)]
124    fn from(variant: Wrabt) -> Self {
125        variant as u8 != 0
126    }
127}
128#[doc = "Field `WRABT` reader - Write Abort Error Flag"]
129pub type WrabtR = crate::BitReader<Wrabt>;
130impl WrabtR {
131    #[doc = "Get enumerated values variant"]
132    #[inline(always)]
133    pub const fn variant(&self) -> Wrabt {
134        match self.bits {
135            false => Wrabt::NoError,
136            true => Wrabt::Error,
137        }
138    }
139    #[doc = "No error"]
140    #[inline(always)]
141    pub fn is_no_error(&self) -> bool {
142        *self == Wrabt::NoError
143    }
144    #[doc = "Error"]
145    #[inline(always)]
146    pub fn is_error(&self) -> bool {
147        *self == Wrabt::Error
148    }
149}
150#[doc = "Field `WRABT` writer - Write Abort Error Flag"]
151pub type WrabtW<'a, REG> = crate::BitWriter1C<'a, REG, Wrabt>;
152impl<'a, REG> WrabtW<'a, REG>
153where
154    REG: crate::Writable + crate::RegisterSpec,
155{
156    #[doc = "No error"]
157    #[inline(always)]
158    pub fn no_error(self) -> &'a mut crate::W<REG> {
159        self.variant(Wrabt::NoError)
160    }
161    #[doc = "Error"]
162    #[inline(always)]
163    pub fn error(self) -> &'a mut crate::W<REG> {
164        self.variant(Wrabt::Error)
165    }
166}
167#[doc = "Terminate Error Flag\n\nValue on reset: 0"]
168#[cfg_attr(feature = "defmt", derive(defmt::Format))]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum Term {
171    #[doc = "0: No error"]
172    NoError = 0,
173    #[doc = "1: Error"]
174    Error = 1,
175}
176impl From<Term> for bool {
177    #[inline(always)]
178    fn from(variant: Term) -> Self {
179        variant as u8 != 0
180    }
181}
182#[doc = "Field `TERM` reader - Terminate Error Flag"]
183pub type TermR = crate::BitReader<Term>;
184impl TermR {
185    #[doc = "Get enumerated values variant"]
186    #[inline(always)]
187    pub const fn variant(&self) -> Term {
188        match self.bits {
189            false => Term::NoError,
190            true => Term::Error,
191        }
192    }
193    #[doc = "No error"]
194    #[inline(always)]
195    pub fn is_no_error(&self) -> bool {
196        *self == Term::NoError
197    }
198    #[doc = "Error"]
199    #[inline(always)]
200    pub fn is_error(&self) -> bool {
201        *self == Term::Error
202    }
203}
204#[doc = "Field `TERM` writer - Terminate Error Flag"]
205pub type TermW<'a, REG> = crate::BitWriter1C<'a, REG, Term>;
206impl<'a, REG> TermW<'a, REG>
207where
208    REG: crate::Writable + crate::RegisterSpec,
209{
210    #[doc = "No error"]
211    #[inline(always)]
212    pub fn no_error(self) -> &'a mut crate::W<REG> {
213        self.variant(Term::NoError)
214    }
215    #[doc = "Error"]
216    #[inline(always)]
217    pub fn error(self) -> &'a mut crate::W<REG> {
218        self.variant(Term::Error)
219    }
220}
221#[doc = "High Data Rate Parity Flag\n\nValue on reset: 0"]
222#[cfg_attr(feature = "defmt", derive(defmt::Format))]
223#[derive(Clone, Copy, Debug, PartialEq, Eq)]
224pub enum Hpar {
225    #[doc = "0: No error"]
226    NoError = 0,
227    #[doc = "1: Error"]
228    Error = 1,
229}
230impl From<Hpar> for bool {
231    #[inline(always)]
232    fn from(variant: Hpar) -> Self {
233        variant as u8 != 0
234    }
235}
236#[doc = "Field `HPAR` reader - High Data Rate Parity Flag"]
237pub type HparR = crate::BitReader<Hpar>;
238impl HparR {
239    #[doc = "Get enumerated values variant"]
240    #[inline(always)]
241    pub const fn variant(&self) -> Hpar {
242        match self.bits {
243            false => Hpar::NoError,
244            true => Hpar::Error,
245        }
246    }
247    #[doc = "No error"]
248    #[inline(always)]
249    pub fn is_no_error(&self) -> bool {
250        *self == Hpar::NoError
251    }
252    #[doc = "Error"]
253    #[inline(always)]
254    pub fn is_error(&self) -> bool {
255        *self == Hpar::Error
256    }
257}
258#[doc = "Field `HPAR` writer - High Data Rate Parity Flag"]
259pub type HparW<'a, REG> = crate::BitWriter1C<'a, REG, Hpar>;
260impl<'a, REG> HparW<'a, REG>
261where
262    REG: crate::Writable + crate::RegisterSpec,
263{
264    #[doc = "No error"]
265    #[inline(always)]
266    pub fn no_error(self) -> &'a mut crate::W<REG> {
267        self.variant(Hpar::NoError)
268    }
269    #[doc = "Error"]
270    #[inline(always)]
271    pub fn error(self) -> &'a mut crate::W<REG> {
272        self.variant(Hpar::Error)
273    }
274}
275#[doc = "High Data Rate CRC Error Flag\n\nValue on reset: 0"]
276#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum Hcrc {
279    #[doc = "0: No error"]
280    NoError = 0,
281    #[doc = "1: Error"]
282    Error = 1,
283}
284impl From<Hcrc> for bool {
285    #[inline(always)]
286    fn from(variant: Hcrc) -> Self {
287        variant as u8 != 0
288    }
289}
290#[doc = "Field `HCRC` reader - High Data Rate CRC Error Flag"]
291pub type HcrcR = crate::BitReader<Hcrc>;
292impl HcrcR {
293    #[doc = "Get enumerated values variant"]
294    #[inline(always)]
295    pub const fn variant(&self) -> Hcrc {
296        match self.bits {
297            false => Hcrc::NoError,
298            true => Hcrc::Error,
299        }
300    }
301    #[doc = "No error"]
302    #[inline(always)]
303    pub fn is_no_error(&self) -> bool {
304        *self == Hcrc::NoError
305    }
306    #[doc = "Error"]
307    #[inline(always)]
308    pub fn is_error(&self) -> bool {
309        *self == Hcrc::Error
310    }
311}
312#[doc = "Field `HCRC` writer - High Data Rate CRC Error Flag"]
313pub type HcrcW<'a, REG> = crate::BitWriter1C<'a, REG, Hcrc>;
314impl<'a, REG> HcrcW<'a, REG>
315where
316    REG: crate::Writable + crate::RegisterSpec,
317{
318    #[doc = "No error"]
319    #[inline(always)]
320    pub fn no_error(self) -> &'a mut crate::W<REG> {
321        self.variant(Hcrc::NoError)
322    }
323    #[doc = "Error"]
324    #[inline(always)]
325    pub fn error(self) -> &'a mut crate::W<REG> {
326        self.variant(Hcrc::Error)
327    }
328}
329#[doc = "Overread Error Flag\n\nValue on reset: 0"]
330#[cfg_attr(feature = "defmt", derive(defmt::Format))]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum Oread {
333    #[doc = "0: No error"]
334    NoError = 0,
335    #[doc = "1: Error"]
336    Error = 1,
337}
338impl From<Oread> for bool {
339    #[inline(always)]
340    fn from(variant: Oread) -> Self {
341        variant as u8 != 0
342    }
343}
344#[doc = "Field `OREAD` reader - Overread Error Flag"]
345pub type OreadR = crate::BitReader<Oread>;
346impl OreadR {
347    #[doc = "Get enumerated values variant"]
348    #[inline(always)]
349    pub const fn variant(&self) -> Oread {
350        match self.bits {
351            false => Oread::NoError,
352            true => Oread::Error,
353        }
354    }
355    #[doc = "No error"]
356    #[inline(always)]
357    pub fn is_no_error(&self) -> bool {
358        *self == Oread::NoError
359    }
360    #[doc = "Error"]
361    #[inline(always)]
362    pub fn is_error(&self) -> bool {
363        *self == Oread::Error
364    }
365}
366#[doc = "Field `OREAD` writer - Overread Error Flag"]
367pub type OreadW<'a, REG> = crate::BitWriter1C<'a, REG, Oread>;
368impl<'a, REG> OreadW<'a, REG>
369where
370    REG: crate::Writable + crate::RegisterSpec,
371{
372    #[doc = "No error"]
373    #[inline(always)]
374    pub fn no_error(self) -> &'a mut crate::W<REG> {
375        self.variant(Oread::NoError)
376    }
377    #[doc = "Error"]
378    #[inline(always)]
379    pub fn error(self) -> &'a mut crate::W<REG> {
380        self.variant(Oread::Error)
381    }
382}
383#[doc = "Overwrite Error Flag\n\nValue on reset: 0"]
384#[cfg_attr(feature = "defmt", derive(defmt::Format))]
385#[derive(Clone, Copy, Debug, PartialEq, Eq)]
386pub enum Owrite {
387    #[doc = "0: No error"]
388    NoError = 0,
389    #[doc = "1: Error"]
390    Error = 1,
391}
392impl From<Owrite> for bool {
393    #[inline(always)]
394    fn from(variant: Owrite) -> Self {
395        variant as u8 != 0
396    }
397}
398#[doc = "Field `OWRITE` reader - Overwrite Error Flag"]
399pub type OwriteR = crate::BitReader<Owrite>;
400impl OwriteR {
401    #[doc = "Get enumerated values variant"]
402    #[inline(always)]
403    pub const fn variant(&self) -> Owrite {
404        match self.bits {
405            false => Owrite::NoError,
406            true => Owrite::Error,
407        }
408    }
409    #[doc = "No error"]
410    #[inline(always)]
411    pub fn is_no_error(&self) -> bool {
412        *self == Owrite::NoError
413    }
414    #[doc = "Error"]
415    #[inline(always)]
416    pub fn is_error(&self) -> bool {
417        *self == Owrite::Error
418    }
419}
420#[doc = "Field `OWRITE` writer - Overwrite Error Flag"]
421pub type OwriteW<'a, REG> = crate::BitWriter1C<'a, REG, Owrite>;
422impl<'a, REG> OwriteW<'a, REG>
423where
424    REG: crate::Writable + crate::RegisterSpec,
425{
426    #[doc = "No error"]
427    #[inline(always)]
428    pub fn no_error(self) -> &'a mut crate::W<REG> {
429        self.variant(Owrite::NoError)
430    }
431    #[doc = "Error"]
432    #[inline(always)]
433    pub fn error(self) -> &'a mut crate::W<REG> {
434        self.variant(Owrite::Error)
435    }
436}
437#[doc = "Message Error Flag\n\nValue on reset: 0"]
438#[cfg_attr(feature = "defmt", derive(defmt::Format))]
439#[derive(Clone, Copy, Debug, PartialEq, Eq)]
440pub enum Msgerr {
441    #[doc = "0: No error"]
442    NoError = 0,
443    #[doc = "1: Error"]
444    Error = 1,
445}
446impl From<Msgerr> for bool {
447    #[inline(always)]
448    fn from(variant: Msgerr) -> Self {
449        variant as u8 != 0
450    }
451}
452#[doc = "Field `MSGERR` reader - Message Error Flag"]
453pub type MsgerrR = crate::BitReader<Msgerr>;
454impl MsgerrR {
455    #[doc = "Get enumerated values variant"]
456    #[inline(always)]
457    pub const fn variant(&self) -> Msgerr {
458        match self.bits {
459            false => Msgerr::NoError,
460            true => Msgerr::Error,
461        }
462    }
463    #[doc = "No error"]
464    #[inline(always)]
465    pub fn is_no_error(&self) -> bool {
466        *self == Msgerr::NoError
467    }
468    #[doc = "Error"]
469    #[inline(always)]
470    pub fn is_error(&self) -> bool {
471        *self == Msgerr::Error
472    }
473}
474#[doc = "Field `MSGERR` writer - Message Error Flag"]
475pub type MsgerrW<'a, REG> = crate::BitWriter1C<'a, REG, Msgerr>;
476impl<'a, REG> MsgerrW<'a, REG>
477where
478    REG: crate::Writable + crate::RegisterSpec,
479{
480    #[doc = "No error"]
481    #[inline(always)]
482    pub fn no_error(self) -> &'a mut crate::W<REG> {
483        self.variant(Msgerr::NoError)
484    }
485    #[doc = "Error"]
486    #[inline(always)]
487    pub fn error(self) -> &'a mut crate::W<REG> {
488        self.variant(Msgerr::Error)
489    }
490}
491#[doc = "Invalid Request Error Flag\n\nValue on reset: 0"]
492#[cfg_attr(feature = "defmt", derive(defmt::Format))]
493#[derive(Clone, Copy, Debug, PartialEq, Eq)]
494pub enum Invreq {
495    #[doc = "0: No error"]
496    NoError = 0,
497    #[doc = "1: Error"]
498    Error = 1,
499}
500impl From<Invreq> for bool {
501    #[inline(always)]
502    fn from(variant: Invreq) -> Self {
503        variant as u8 != 0
504    }
505}
506#[doc = "Field `INVREQ` reader - Invalid Request Error Flag"]
507pub type InvreqR = crate::BitReader<Invreq>;
508impl InvreqR {
509    #[doc = "Get enumerated values variant"]
510    #[inline(always)]
511    pub const fn variant(&self) -> Invreq {
512        match self.bits {
513            false => Invreq::NoError,
514            true => Invreq::Error,
515        }
516    }
517    #[doc = "No error"]
518    #[inline(always)]
519    pub fn is_no_error(&self) -> bool {
520        *self == Invreq::NoError
521    }
522    #[doc = "Error"]
523    #[inline(always)]
524    pub fn is_error(&self) -> bool {
525        *self == Invreq::Error
526    }
527}
528#[doc = "Field `INVREQ` writer - Invalid Request Error Flag"]
529pub type InvreqW<'a, REG> = crate::BitWriter1C<'a, REG, Invreq>;
530impl<'a, REG> InvreqW<'a, REG>
531where
532    REG: crate::Writable + crate::RegisterSpec,
533{
534    #[doc = "No error"]
535    #[inline(always)]
536    pub fn no_error(self) -> &'a mut crate::W<REG> {
537        self.variant(Invreq::NoError)
538    }
539    #[doc = "Error"]
540    #[inline(always)]
541    pub fn error(self) -> &'a mut crate::W<REG> {
542        self.variant(Invreq::Error)
543    }
544}
545#[doc = "Timeout Error Flag\n\nValue on reset: 0"]
546#[cfg_attr(feature = "defmt", derive(defmt::Format))]
547#[derive(Clone, Copy, Debug, PartialEq, Eq)]
548pub enum Timeout {
549    #[doc = "0: No error"]
550    NoError = 0,
551    #[doc = "1: Error"]
552    Error = 1,
553}
554impl From<Timeout> for bool {
555    #[inline(always)]
556    fn from(variant: Timeout) -> Self {
557        variant as u8 != 0
558    }
559}
560#[doc = "Field `TIMEOUT` reader - Timeout Error Flag"]
561pub type TimeoutR = crate::BitReader<Timeout>;
562impl TimeoutR {
563    #[doc = "Get enumerated values variant"]
564    #[inline(always)]
565    pub const fn variant(&self) -> Timeout {
566        match self.bits {
567            false => Timeout::NoError,
568            true => Timeout::Error,
569        }
570    }
571    #[doc = "No error"]
572    #[inline(always)]
573    pub fn is_no_error(&self) -> bool {
574        *self == Timeout::NoError
575    }
576    #[doc = "Error"]
577    #[inline(always)]
578    pub fn is_error(&self) -> bool {
579        *self == Timeout::Error
580    }
581}
582#[doc = "Field `TIMEOUT` writer - Timeout Error Flag"]
583pub type TimeoutW<'a, REG> = crate::BitWriter1C<'a, REG, Timeout>;
584impl<'a, REG> TimeoutW<'a, REG>
585where
586    REG: crate::Writable + crate::RegisterSpec,
587{
588    #[doc = "No error"]
589    #[inline(always)]
590    pub fn no_error(self) -> &'a mut crate::W<REG> {
591        self.variant(Timeout::NoError)
592    }
593    #[doc = "Error"]
594    #[inline(always)]
595    pub fn error(self) -> &'a mut crate::W<REG> {
596        self.variant(Timeout::Error)
597    }
598}
599impl R {
600    #[doc = "Bit 1 - Underrun Error Flag"]
601    #[inline(always)]
602    pub fn urun(&self) -> UrunR {
603        UrunR::new(((self.bits >> 1) & 1) != 0)
604    }
605    #[doc = "Bit 2 - Not Acknowledge Error Flag"]
606    #[inline(always)]
607    pub fn nack(&self) -> NackR {
608        NackR::new(((self.bits >> 2) & 1) != 0)
609    }
610    #[doc = "Bit 3 - Write Abort Error Flag"]
611    #[inline(always)]
612    pub fn wrabt(&self) -> WrabtR {
613        WrabtR::new(((self.bits >> 3) & 1) != 0)
614    }
615    #[doc = "Bit 4 - Terminate Error Flag"]
616    #[inline(always)]
617    pub fn term(&self) -> TermR {
618        TermR::new(((self.bits >> 4) & 1) != 0)
619    }
620    #[doc = "Bit 9 - High Data Rate Parity Flag"]
621    #[inline(always)]
622    pub fn hpar(&self) -> HparR {
623        HparR::new(((self.bits >> 9) & 1) != 0)
624    }
625    #[doc = "Bit 10 - High Data Rate CRC Error Flag"]
626    #[inline(always)]
627    pub fn hcrc(&self) -> HcrcR {
628        HcrcR::new(((self.bits >> 10) & 1) != 0)
629    }
630    #[doc = "Bit 16 - Overread Error Flag"]
631    #[inline(always)]
632    pub fn oread(&self) -> OreadR {
633        OreadR::new(((self.bits >> 16) & 1) != 0)
634    }
635    #[doc = "Bit 17 - Overwrite Error Flag"]
636    #[inline(always)]
637    pub fn owrite(&self) -> OwriteR {
638        OwriteR::new(((self.bits >> 17) & 1) != 0)
639    }
640    #[doc = "Bit 18 - Message Error Flag"]
641    #[inline(always)]
642    pub fn msgerr(&self) -> MsgerrR {
643        MsgerrR::new(((self.bits >> 18) & 1) != 0)
644    }
645    #[doc = "Bit 19 - Invalid Request Error Flag"]
646    #[inline(always)]
647    pub fn invreq(&self) -> InvreqR {
648        InvreqR::new(((self.bits >> 19) & 1) != 0)
649    }
650    #[doc = "Bit 20 - Timeout Error Flag"]
651    #[inline(always)]
652    pub fn timeout(&self) -> TimeoutR {
653        TimeoutR::new(((self.bits >> 20) & 1) != 0)
654    }
655}
656#[cfg(feature = "debug")]
657impl core::fmt::Debug for R {
658    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
659        f.debug_struct("MERRWARN")
660            .field("urun", &self.urun())
661            .field("nack", &self.nack())
662            .field("wrabt", &self.wrabt())
663            .field("term", &self.term())
664            .field("hpar", &self.hpar())
665            .field("hcrc", &self.hcrc())
666            .field("oread", &self.oread())
667            .field("owrite", &self.owrite())
668            .field("msgerr", &self.msgerr())
669            .field("invreq", &self.invreq())
670            .field("timeout", &self.timeout())
671            .finish()
672    }
673}
674impl W {
675    #[doc = "Bit 1 - Underrun Error Flag"]
676    #[inline(always)]
677    pub fn urun(&mut self) -> UrunW<'_, MerrwarnSpec> {
678        UrunW::new(self, 1)
679    }
680    #[doc = "Bit 2 - Not Acknowledge Error Flag"]
681    #[inline(always)]
682    pub fn nack(&mut self) -> NackW<'_, MerrwarnSpec> {
683        NackW::new(self, 2)
684    }
685    #[doc = "Bit 3 - Write Abort Error Flag"]
686    #[inline(always)]
687    pub fn wrabt(&mut self) -> WrabtW<'_, MerrwarnSpec> {
688        WrabtW::new(self, 3)
689    }
690    #[doc = "Bit 4 - Terminate Error Flag"]
691    #[inline(always)]
692    pub fn term(&mut self) -> TermW<'_, MerrwarnSpec> {
693        TermW::new(self, 4)
694    }
695    #[doc = "Bit 9 - High Data Rate Parity Flag"]
696    #[inline(always)]
697    pub fn hpar(&mut self) -> HparW<'_, MerrwarnSpec> {
698        HparW::new(self, 9)
699    }
700    #[doc = "Bit 10 - High Data Rate CRC Error Flag"]
701    #[inline(always)]
702    pub fn hcrc(&mut self) -> HcrcW<'_, MerrwarnSpec> {
703        HcrcW::new(self, 10)
704    }
705    #[doc = "Bit 16 - Overread Error Flag"]
706    #[inline(always)]
707    pub fn oread(&mut self) -> OreadW<'_, MerrwarnSpec> {
708        OreadW::new(self, 16)
709    }
710    #[doc = "Bit 17 - Overwrite Error Flag"]
711    #[inline(always)]
712    pub fn owrite(&mut self) -> OwriteW<'_, MerrwarnSpec> {
713        OwriteW::new(self, 17)
714    }
715    #[doc = "Bit 18 - Message Error Flag"]
716    #[inline(always)]
717    pub fn msgerr(&mut self) -> MsgerrW<'_, MerrwarnSpec> {
718        MsgerrW::new(self, 18)
719    }
720    #[doc = "Bit 19 - Invalid Request Error Flag"]
721    #[inline(always)]
722    pub fn invreq(&mut self) -> InvreqW<'_, MerrwarnSpec> {
723        InvreqW::new(self, 19)
724    }
725    #[doc = "Bit 20 - Timeout Error Flag"]
726    #[inline(always)]
727    pub fn timeout(&mut self) -> TimeoutW<'_, MerrwarnSpec> {
728        TimeoutW::new(self, 20)
729    }
730}
731#[doc = "Controller Errors and Warnings\n\nYou can [`read`](crate::Reg::read) this register and get [`merrwarn::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`merrwarn::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
732pub struct MerrwarnSpec;
733impl crate::RegisterSpec for MerrwarnSpec {
734    type Ux = u32;
735}
736#[doc = "`read()` method returns [`merrwarn::R`](R) reader structure"]
737impl crate::Readable for MerrwarnSpec {}
738#[doc = "`write(|w| ..)` method takes [`merrwarn::W`](W) writer structure"]
739impl crate::Writable for MerrwarnSpec {
740    type Safety = crate::Unsafe;
741    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x001f_061e;
742}
743#[doc = "`reset()` method sets MERRWARN to value 0"]
744impl crate::Resettable for MerrwarnSpec {}