xmc4300/sdmmc/
int_status_err.rs

1#[doc = "Register `INT_STATUS_ERR` reader"]
2pub type R = crate::R<INT_STATUS_ERR_SPEC>;
3#[doc = "Register `INT_STATUS_ERR` writer"]
4pub type W = crate::W<INT_STATUS_ERR_SPEC>;
5#[doc = "Command Timeout Error\n\nValue on reset: 0"]
6#[derive(Clone, Copy, Debug, PartialEq, Eq)]
7pub enum CMD_TIMEOUT_ERR_A {
8    #[doc = "0: No Error"]
9    VALUE1 = 0,
10    #[doc = "1: Timeout"]
11    VALUE2 = 1,
12}
13impl From<CMD_TIMEOUT_ERR_A> for bool {
14    #[inline(always)]
15    fn from(variant: CMD_TIMEOUT_ERR_A) -> Self {
16        variant as u8 != 0
17    }
18}
19#[doc = "Field `CMD_TIMEOUT_ERR` reader - Command Timeout Error"]
20pub type CMD_TIMEOUT_ERR_R = crate::BitReader<CMD_TIMEOUT_ERR_A>;
21impl CMD_TIMEOUT_ERR_R {
22    #[doc = "Get enumerated values variant"]
23    #[inline(always)]
24    pub const fn variant(&self) -> CMD_TIMEOUT_ERR_A {
25        match self.bits {
26            false => CMD_TIMEOUT_ERR_A::VALUE1,
27            true => CMD_TIMEOUT_ERR_A::VALUE2,
28        }
29    }
30    #[doc = "No Error"]
31    #[inline(always)]
32    pub fn is_value1(&self) -> bool {
33        *self == CMD_TIMEOUT_ERR_A::VALUE1
34    }
35    #[doc = "Timeout"]
36    #[inline(always)]
37    pub fn is_value2(&self) -> bool {
38        *self == CMD_TIMEOUT_ERR_A::VALUE2
39    }
40}
41#[doc = "Field `CMD_TIMEOUT_ERR` writer - Command Timeout Error"]
42pub type CMD_TIMEOUT_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CMD_TIMEOUT_ERR_A>;
43impl<'a, REG> CMD_TIMEOUT_ERR_W<'a, REG>
44where
45    REG: crate::Writable + crate::RegisterSpec,
46{
47    #[doc = "No Error"]
48    #[inline(always)]
49    pub fn value1(self) -> &'a mut crate::W<REG> {
50        self.variant(CMD_TIMEOUT_ERR_A::VALUE1)
51    }
52    #[doc = "Timeout"]
53    #[inline(always)]
54    pub fn value2(self) -> &'a mut crate::W<REG> {
55        self.variant(CMD_TIMEOUT_ERR_A::VALUE2)
56    }
57}
58#[doc = "Command CRC Error\n\nValue on reset: 0"]
59#[derive(Clone, Copy, Debug, PartialEq, Eq)]
60pub enum CMD_CRC_ERR_A {
61    #[doc = "0: No Error"]
62    VALUE1 = 0,
63    #[doc = "1: CRC Error Generated"]
64    VALUE2 = 1,
65}
66impl From<CMD_CRC_ERR_A> for bool {
67    #[inline(always)]
68    fn from(variant: CMD_CRC_ERR_A) -> Self {
69        variant as u8 != 0
70    }
71}
72#[doc = "Field `CMD_CRC_ERR` reader - Command CRC Error"]
73pub type CMD_CRC_ERR_R = crate::BitReader<CMD_CRC_ERR_A>;
74impl CMD_CRC_ERR_R {
75    #[doc = "Get enumerated values variant"]
76    #[inline(always)]
77    pub const fn variant(&self) -> CMD_CRC_ERR_A {
78        match self.bits {
79            false => CMD_CRC_ERR_A::VALUE1,
80            true => CMD_CRC_ERR_A::VALUE2,
81        }
82    }
83    #[doc = "No Error"]
84    #[inline(always)]
85    pub fn is_value1(&self) -> bool {
86        *self == CMD_CRC_ERR_A::VALUE1
87    }
88    #[doc = "CRC Error Generated"]
89    #[inline(always)]
90    pub fn is_value2(&self) -> bool {
91        *self == CMD_CRC_ERR_A::VALUE2
92    }
93}
94#[doc = "Field `CMD_CRC_ERR` writer - Command CRC Error"]
95pub type CMD_CRC_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CMD_CRC_ERR_A>;
96impl<'a, REG> CMD_CRC_ERR_W<'a, REG>
97where
98    REG: crate::Writable + crate::RegisterSpec,
99{
100    #[doc = "No Error"]
101    #[inline(always)]
102    pub fn value1(self) -> &'a mut crate::W<REG> {
103        self.variant(CMD_CRC_ERR_A::VALUE1)
104    }
105    #[doc = "CRC Error Generated"]
106    #[inline(always)]
107    pub fn value2(self) -> &'a mut crate::W<REG> {
108        self.variant(CMD_CRC_ERR_A::VALUE2)
109    }
110}
111#[doc = "Command End Bit Error\n\nValue on reset: 0"]
112#[derive(Clone, Copy, Debug, PartialEq, Eq)]
113pub enum CMD_END_BIT_ERR_A {
114    #[doc = "0: No Error"]
115    VALUE1 = 0,
116    #[doc = "1: End Bit Error Generated"]
117    VALUE2 = 1,
118}
119impl From<CMD_END_BIT_ERR_A> for bool {
120    #[inline(always)]
121    fn from(variant: CMD_END_BIT_ERR_A) -> Self {
122        variant as u8 != 0
123    }
124}
125#[doc = "Field `CMD_END_BIT_ERR` reader - Command End Bit Error"]
126pub type CMD_END_BIT_ERR_R = crate::BitReader<CMD_END_BIT_ERR_A>;
127impl CMD_END_BIT_ERR_R {
128    #[doc = "Get enumerated values variant"]
129    #[inline(always)]
130    pub const fn variant(&self) -> CMD_END_BIT_ERR_A {
131        match self.bits {
132            false => CMD_END_BIT_ERR_A::VALUE1,
133            true => CMD_END_BIT_ERR_A::VALUE2,
134        }
135    }
136    #[doc = "No Error"]
137    #[inline(always)]
138    pub fn is_value1(&self) -> bool {
139        *self == CMD_END_BIT_ERR_A::VALUE1
140    }
141    #[doc = "End Bit Error Generated"]
142    #[inline(always)]
143    pub fn is_value2(&self) -> bool {
144        *self == CMD_END_BIT_ERR_A::VALUE2
145    }
146}
147#[doc = "Field `CMD_END_BIT_ERR` writer - Command End Bit Error"]
148pub type CMD_END_BIT_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CMD_END_BIT_ERR_A>;
149impl<'a, REG> CMD_END_BIT_ERR_W<'a, REG>
150where
151    REG: crate::Writable + crate::RegisterSpec,
152{
153    #[doc = "No Error"]
154    #[inline(always)]
155    pub fn value1(self) -> &'a mut crate::W<REG> {
156        self.variant(CMD_END_BIT_ERR_A::VALUE1)
157    }
158    #[doc = "End Bit Error Generated"]
159    #[inline(always)]
160    pub fn value2(self) -> &'a mut crate::W<REG> {
161        self.variant(CMD_END_BIT_ERR_A::VALUE2)
162    }
163}
164#[doc = "Command Index Error\n\nValue on reset: 0"]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum CMD_IND_ERR_A {
167    #[doc = "0: No Error"]
168    VALUE1 = 0,
169    #[doc = "1: Error"]
170    VALUE2 = 1,
171}
172impl From<CMD_IND_ERR_A> for bool {
173    #[inline(always)]
174    fn from(variant: CMD_IND_ERR_A) -> Self {
175        variant as u8 != 0
176    }
177}
178#[doc = "Field `CMD_IND_ERR` reader - Command Index Error"]
179pub type CMD_IND_ERR_R = crate::BitReader<CMD_IND_ERR_A>;
180impl CMD_IND_ERR_R {
181    #[doc = "Get enumerated values variant"]
182    #[inline(always)]
183    pub const fn variant(&self) -> CMD_IND_ERR_A {
184        match self.bits {
185            false => CMD_IND_ERR_A::VALUE1,
186            true => CMD_IND_ERR_A::VALUE2,
187        }
188    }
189    #[doc = "No Error"]
190    #[inline(always)]
191    pub fn is_value1(&self) -> bool {
192        *self == CMD_IND_ERR_A::VALUE1
193    }
194    #[doc = "Error"]
195    #[inline(always)]
196    pub fn is_value2(&self) -> bool {
197        *self == CMD_IND_ERR_A::VALUE2
198    }
199}
200#[doc = "Field `CMD_IND_ERR` writer - Command Index Error"]
201pub type CMD_IND_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CMD_IND_ERR_A>;
202impl<'a, REG> CMD_IND_ERR_W<'a, REG>
203where
204    REG: crate::Writable + crate::RegisterSpec,
205{
206    #[doc = "No Error"]
207    #[inline(always)]
208    pub fn value1(self) -> &'a mut crate::W<REG> {
209        self.variant(CMD_IND_ERR_A::VALUE1)
210    }
211    #[doc = "Error"]
212    #[inline(always)]
213    pub fn value2(self) -> &'a mut crate::W<REG> {
214        self.variant(CMD_IND_ERR_A::VALUE2)
215    }
216}
217#[doc = "Data Timeout Error\n\nValue on reset: 0"]
218#[derive(Clone, Copy, Debug, PartialEq, Eq)]
219pub enum DATA_TIMEOUT_ERR_A {
220    #[doc = "0: No Error"]
221    VALUE1 = 0,
222    #[doc = "1: Timeout"]
223    VALUE2 = 1,
224}
225impl From<DATA_TIMEOUT_ERR_A> for bool {
226    #[inline(always)]
227    fn from(variant: DATA_TIMEOUT_ERR_A) -> Self {
228        variant as u8 != 0
229    }
230}
231#[doc = "Field `DATA_TIMEOUT_ERR` reader - Data Timeout Error"]
232pub type DATA_TIMEOUT_ERR_R = crate::BitReader<DATA_TIMEOUT_ERR_A>;
233impl DATA_TIMEOUT_ERR_R {
234    #[doc = "Get enumerated values variant"]
235    #[inline(always)]
236    pub const fn variant(&self) -> DATA_TIMEOUT_ERR_A {
237        match self.bits {
238            false => DATA_TIMEOUT_ERR_A::VALUE1,
239            true => DATA_TIMEOUT_ERR_A::VALUE2,
240        }
241    }
242    #[doc = "No Error"]
243    #[inline(always)]
244    pub fn is_value1(&self) -> bool {
245        *self == DATA_TIMEOUT_ERR_A::VALUE1
246    }
247    #[doc = "Timeout"]
248    #[inline(always)]
249    pub fn is_value2(&self) -> bool {
250        *self == DATA_TIMEOUT_ERR_A::VALUE2
251    }
252}
253#[doc = "Field `DATA_TIMEOUT_ERR` writer - Data Timeout Error"]
254pub type DATA_TIMEOUT_ERR_W<'a, REG> = crate::BitWriter<'a, REG, DATA_TIMEOUT_ERR_A>;
255impl<'a, REG> DATA_TIMEOUT_ERR_W<'a, REG>
256where
257    REG: crate::Writable + crate::RegisterSpec,
258{
259    #[doc = "No Error"]
260    #[inline(always)]
261    pub fn value1(self) -> &'a mut crate::W<REG> {
262        self.variant(DATA_TIMEOUT_ERR_A::VALUE1)
263    }
264    #[doc = "Timeout"]
265    #[inline(always)]
266    pub fn value2(self) -> &'a mut crate::W<REG> {
267        self.variant(DATA_TIMEOUT_ERR_A::VALUE2)
268    }
269}
270#[doc = "Data CRC Error\n\nValue on reset: 0"]
271#[derive(Clone, Copy, Debug, PartialEq, Eq)]
272pub enum DATA_CRC_ERR_A {
273    #[doc = "0: No Error"]
274    VALUE1 = 0,
275    #[doc = "1: Error"]
276    VALUE2 = 1,
277}
278impl From<DATA_CRC_ERR_A> for bool {
279    #[inline(always)]
280    fn from(variant: DATA_CRC_ERR_A) -> Self {
281        variant as u8 != 0
282    }
283}
284#[doc = "Field `DATA_CRC_ERR` reader - Data CRC Error"]
285pub type DATA_CRC_ERR_R = crate::BitReader<DATA_CRC_ERR_A>;
286impl DATA_CRC_ERR_R {
287    #[doc = "Get enumerated values variant"]
288    #[inline(always)]
289    pub const fn variant(&self) -> DATA_CRC_ERR_A {
290        match self.bits {
291            false => DATA_CRC_ERR_A::VALUE1,
292            true => DATA_CRC_ERR_A::VALUE2,
293        }
294    }
295    #[doc = "No Error"]
296    #[inline(always)]
297    pub fn is_value1(&self) -> bool {
298        *self == DATA_CRC_ERR_A::VALUE1
299    }
300    #[doc = "Error"]
301    #[inline(always)]
302    pub fn is_value2(&self) -> bool {
303        *self == DATA_CRC_ERR_A::VALUE2
304    }
305}
306#[doc = "Field `DATA_CRC_ERR` writer - Data CRC Error"]
307pub type DATA_CRC_ERR_W<'a, REG> = crate::BitWriter<'a, REG, DATA_CRC_ERR_A>;
308impl<'a, REG> DATA_CRC_ERR_W<'a, REG>
309where
310    REG: crate::Writable + crate::RegisterSpec,
311{
312    #[doc = "No Error"]
313    #[inline(always)]
314    pub fn value1(self) -> &'a mut crate::W<REG> {
315        self.variant(DATA_CRC_ERR_A::VALUE1)
316    }
317    #[doc = "Error"]
318    #[inline(always)]
319    pub fn value2(self) -> &'a mut crate::W<REG> {
320        self.variant(DATA_CRC_ERR_A::VALUE2)
321    }
322}
323#[doc = "Data End Bit Error\n\nValue on reset: 0"]
324#[derive(Clone, Copy, Debug, PartialEq, Eq)]
325pub enum DATA_END_BIT_ERR_A {
326    #[doc = "0: No Error"]
327    VALUE1 = 0,
328    #[doc = "1: Error"]
329    VALUE2 = 1,
330}
331impl From<DATA_END_BIT_ERR_A> for bool {
332    #[inline(always)]
333    fn from(variant: DATA_END_BIT_ERR_A) -> Self {
334        variant as u8 != 0
335    }
336}
337#[doc = "Field `DATA_END_BIT_ERR` reader - Data End Bit Error"]
338pub type DATA_END_BIT_ERR_R = crate::BitReader<DATA_END_BIT_ERR_A>;
339impl DATA_END_BIT_ERR_R {
340    #[doc = "Get enumerated values variant"]
341    #[inline(always)]
342    pub const fn variant(&self) -> DATA_END_BIT_ERR_A {
343        match self.bits {
344            false => DATA_END_BIT_ERR_A::VALUE1,
345            true => DATA_END_BIT_ERR_A::VALUE2,
346        }
347    }
348    #[doc = "No Error"]
349    #[inline(always)]
350    pub fn is_value1(&self) -> bool {
351        *self == DATA_END_BIT_ERR_A::VALUE1
352    }
353    #[doc = "Error"]
354    #[inline(always)]
355    pub fn is_value2(&self) -> bool {
356        *self == DATA_END_BIT_ERR_A::VALUE2
357    }
358}
359#[doc = "Field `DATA_END_BIT_ERR` writer - Data End Bit Error"]
360pub type DATA_END_BIT_ERR_W<'a, REG> = crate::BitWriter<'a, REG, DATA_END_BIT_ERR_A>;
361impl<'a, REG> DATA_END_BIT_ERR_W<'a, REG>
362where
363    REG: crate::Writable + crate::RegisterSpec,
364{
365    #[doc = "No Error"]
366    #[inline(always)]
367    pub fn value1(self) -> &'a mut crate::W<REG> {
368        self.variant(DATA_END_BIT_ERR_A::VALUE1)
369    }
370    #[doc = "Error"]
371    #[inline(always)]
372    pub fn value2(self) -> &'a mut crate::W<REG> {
373        self.variant(DATA_END_BIT_ERR_A::VALUE2)
374    }
375}
376#[doc = "Current Limit Error\n\nValue on reset: 0"]
377#[derive(Clone, Copy, Debug, PartialEq, Eq)]
378pub enum CURRENT_LIMIT_ERR_A {
379    #[doc = "0: No Error"]
380    VALUE1 = 0,
381    #[doc = "1: Power Fail"]
382    VALUE2 = 1,
383}
384impl From<CURRENT_LIMIT_ERR_A> for bool {
385    #[inline(always)]
386    fn from(variant: CURRENT_LIMIT_ERR_A) -> Self {
387        variant as u8 != 0
388    }
389}
390#[doc = "Field `CURRENT_LIMIT_ERR` reader - Current Limit Error"]
391pub type CURRENT_LIMIT_ERR_R = crate::BitReader<CURRENT_LIMIT_ERR_A>;
392impl CURRENT_LIMIT_ERR_R {
393    #[doc = "Get enumerated values variant"]
394    #[inline(always)]
395    pub const fn variant(&self) -> CURRENT_LIMIT_ERR_A {
396        match self.bits {
397            false => CURRENT_LIMIT_ERR_A::VALUE1,
398            true => CURRENT_LIMIT_ERR_A::VALUE2,
399        }
400    }
401    #[doc = "No Error"]
402    #[inline(always)]
403    pub fn is_value1(&self) -> bool {
404        *self == CURRENT_LIMIT_ERR_A::VALUE1
405    }
406    #[doc = "Power Fail"]
407    #[inline(always)]
408    pub fn is_value2(&self) -> bool {
409        *self == CURRENT_LIMIT_ERR_A::VALUE2
410    }
411}
412#[doc = "Field `CURRENT_LIMIT_ERR` writer - Current Limit Error"]
413pub type CURRENT_LIMIT_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CURRENT_LIMIT_ERR_A>;
414impl<'a, REG> CURRENT_LIMIT_ERR_W<'a, REG>
415where
416    REG: crate::Writable + crate::RegisterSpec,
417{
418    #[doc = "No Error"]
419    #[inline(always)]
420    pub fn value1(self) -> &'a mut crate::W<REG> {
421        self.variant(CURRENT_LIMIT_ERR_A::VALUE1)
422    }
423    #[doc = "Power Fail"]
424    #[inline(always)]
425    pub fn value2(self) -> &'a mut crate::W<REG> {
426        self.variant(CURRENT_LIMIT_ERR_A::VALUE2)
427    }
428}
429#[doc = "Auto CMD Error\n\nValue on reset: 0"]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431pub enum ACMD_ERR_A {
432    #[doc = "0: No Error"]
433    VALUE1 = 0,
434    #[doc = "1: Error"]
435    VALUE2 = 1,
436}
437impl From<ACMD_ERR_A> for bool {
438    #[inline(always)]
439    fn from(variant: ACMD_ERR_A) -> Self {
440        variant as u8 != 0
441    }
442}
443#[doc = "Field `ACMD_ERR` reader - Auto CMD Error"]
444pub type ACMD_ERR_R = crate::BitReader<ACMD_ERR_A>;
445impl ACMD_ERR_R {
446    #[doc = "Get enumerated values variant"]
447    #[inline(always)]
448    pub const fn variant(&self) -> ACMD_ERR_A {
449        match self.bits {
450            false => ACMD_ERR_A::VALUE1,
451            true => ACMD_ERR_A::VALUE2,
452        }
453    }
454    #[doc = "No Error"]
455    #[inline(always)]
456    pub fn is_value1(&self) -> bool {
457        *self == ACMD_ERR_A::VALUE1
458    }
459    #[doc = "Error"]
460    #[inline(always)]
461    pub fn is_value2(&self) -> bool {
462        *self == ACMD_ERR_A::VALUE2
463    }
464}
465#[doc = "Field `ACMD_ERR` writer - Auto CMD Error"]
466pub type ACMD_ERR_W<'a, REG> = crate::BitWriter<'a, REG, ACMD_ERR_A>;
467impl<'a, REG> ACMD_ERR_W<'a, REG>
468where
469    REG: crate::Writable + crate::RegisterSpec,
470{
471    #[doc = "No Error"]
472    #[inline(always)]
473    pub fn value1(self) -> &'a mut crate::W<REG> {
474        self.variant(ACMD_ERR_A::VALUE1)
475    }
476    #[doc = "Error"]
477    #[inline(always)]
478    pub fn value2(self) -> &'a mut crate::W<REG> {
479        self.variant(ACMD_ERR_A::VALUE2)
480    }
481}
482#[doc = "Ceata Error Status\n\nValue on reset: 0"]
483#[derive(Clone, Copy, Debug, PartialEq, Eq)]
484pub enum CEATA_ERR_A {
485    #[doc = "0: no error"]
486    VALUE1 = 0,
487    #[doc = "1: error"]
488    VALUE2 = 1,
489}
490impl From<CEATA_ERR_A> for bool {
491    #[inline(always)]
492    fn from(variant: CEATA_ERR_A) -> Self {
493        variant as u8 != 0
494    }
495}
496#[doc = "Field `CEATA_ERR` reader - Ceata Error Status"]
497pub type CEATA_ERR_R = crate::BitReader<CEATA_ERR_A>;
498impl CEATA_ERR_R {
499    #[doc = "Get enumerated values variant"]
500    #[inline(always)]
501    pub const fn variant(&self) -> CEATA_ERR_A {
502        match self.bits {
503            false => CEATA_ERR_A::VALUE1,
504            true => CEATA_ERR_A::VALUE2,
505        }
506    }
507    #[doc = "no error"]
508    #[inline(always)]
509    pub fn is_value1(&self) -> bool {
510        *self == CEATA_ERR_A::VALUE1
511    }
512    #[doc = "error"]
513    #[inline(always)]
514    pub fn is_value2(&self) -> bool {
515        *self == CEATA_ERR_A::VALUE2
516    }
517}
518#[doc = "Field `CEATA_ERR` writer - Ceata Error Status"]
519pub type CEATA_ERR_W<'a, REG> = crate::BitWriter<'a, REG, CEATA_ERR_A>;
520impl<'a, REG> CEATA_ERR_W<'a, REG>
521where
522    REG: crate::Writable + crate::RegisterSpec,
523{
524    #[doc = "no error"]
525    #[inline(always)]
526    pub fn value1(self) -> &'a mut crate::W<REG> {
527        self.variant(CEATA_ERR_A::VALUE1)
528    }
529    #[doc = "error"]
530    #[inline(always)]
531    pub fn value2(self) -> &'a mut crate::W<REG> {
532        self.variant(CEATA_ERR_A::VALUE2)
533    }
534}
535impl R {
536    #[doc = "Bit 0 - Command Timeout Error"]
537    #[inline(always)]
538    pub fn cmd_timeout_err(&self) -> CMD_TIMEOUT_ERR_R {
539        CMD_TIMEOUT_ERR_R::new((self.bits & 1) != 0)
540    }
541    #[doc = "Bit 1 - Command CRC Error"]
542    #[inline(always)]
543    pub fn cmd_crc_err(&self) -> CMD_CRC_ERR_R {
544        CMD_CRC_ERR_R::new(((self.bits >> 1) & 1) != 0)
545    }
546    #[doc = "Bit 2 - Command End Bit Error"]
547    #[inline(always)]
548    pub fn cmd_end_bit_err(&self) -> CMD_END_BIT_ERR_R {
549        CMD_END_BIT_ERR_R::new(((self.bits >> 2) & 1) != 0)
550    }
551    #[doc = "Bit 3 - Command Index Error"]
552    #[inline(always)]
553    pub fn cmd_ind_err(&self) -> CMD_IND_ERR_R {
554        CMD_IND_ERR_R::new(((self.bits >> 3) & 1) != 0)
555    }
556    #[doc = "Bit 4 - Data Timeout Error"]
557    #[inline(always)]
558    pub fn data_timeout_err(&self) -> DATA_TIMEOUT_ERR_R {
559        DATA_TIMEOUT_ERR_R::new(((self.bits >> 4) & 1) != 0)
560    }
561    #[doc = "Bit 5 - Data CRC Error"]
562    #[inline(always)]
563    pub fn data_crc_err(&self) -> DATA_CRC_ERR_R {
564        DATA_CRC_ERR_R::new(((self.bits >> 5) & 1) != 0)
565    }
566    #[doc = "Bit 6 - Data End Bit Error"]
567    #[inline(always)]
568    pub fn data_end_bit_err(&self) -> DATA_END_BIT_ERR_R {
569        DATA_END_BIT_ERR_R::new(((self.bits >> 6) & 1) != 0)
570    }
571    #[doc = "Bit 7 - Current Limit Error"]
572    #[inline(always)]
573    pub fn current_limit_err(&self) -> CURRENT_LIMIT_ERR_R {
574        CURRENT_LIMIT_ERR_R::new(((self.bits >> 7) & 1) != 0)
575    }
576    #[doc = "Bit 8 - Auto CMD Error"]
577    #[inline(always)]
578    pub fn acmd_err(&self) -> ACMD_ERR_R {
579        ACMD_ERR_R::new(((self.bits >> 8) & 1) != 0)
580    }
581    #[doc = "Bit 13 - Ceata Error Status"]
582    #[inline(always)]
583    pub fn ceata_err(&self) -> CEATA_ERR_R {
584        CEATA_ERR_R::new(((self.bits >> 13) & 1) != 0)
585    }
586}
587impl W {
588    #[doc = "Bit 0 - Command Timeout Error"]
589    #[inline(always)]
590    pub fn cmd_timeout_err(&mut self) -> CMD_TIMEOUT_ERR_W<INT_STATUS_ERR_SPEC> {
591        CMD_TIMEOUT_ERR_W::new(self, 0)
592    }
593    #[doc = "Bit 1 - Command CRC Error"]
594    #[inline(always)]
595    pub fn cmd_crc_err(&mut self) -> CMD_CRC_ERR_W<INT_STATUS_ERR_SPEC> {
596        CMD_CRC_ERR_W::new(self, 1)
597    }
598    #[doc = "Bit 2 - Command End Bit Error"]
599    #[inline(always)]
600    pub fn cmd_end_bit_err(&mut self) -> CMD_END_BIT_ERR_W<INT_STATUS_ERR_SPEC> {
601        CMD_END_BIT_ERR_W::new(self, 2)
602    }
603    #[doc = "Bit 3 - Command Index Error"]
604    #[inline(always)]
605    pub fn cmd_ind_err(&mut self) -> CMD_IND_ERR_W<INT_STATUS_ERR_SPEC> {
606        CMD_IND_ERR_W::new(self, 3)
607    }
608    #[doc = "Bit 4 - Data Timeout Error"]
609    #[inline(always)]
610    pub fn data_timeout_err(&mut self) -> DATA_TIMEOUT_ERR_W<INT_STATUS_ERR_SPEC> {
611        DATA_TIMEOUT_ERR_W::new(self, 4)
612    }
613    #[doc = "Bit 5 - Data CRC Error"]
614    #[inline(always)]
615    pub fn data_crc_err(&mut self) -> DATA_CRC_ERR_W<INT_STATUS_ERR_SPEC> {
616        DATA_CRC_ERR_W::new(self, 5)
617    }
618    #[doc = "Bit 6 - Data End Bit Error"]
619    #[inline(always)]
620    pub fn data_end_bit_err(&mut self) -> DATA_END_BIT_ERR_W<INT_STATUS_ERR_SPEC> {
621        DATA_END_BIT_ERR_W::new(self, 6)
622    }
623    #[doc = "Bit 7 - Current Limit Error"]
624    #[inline(always)]
625    pub fn current_limit_err(&mut self) -> CURRENT_LIMIT_ERR_W<INT_STATUS_ERR_SPEC> {
626        CURRENT_LIMIT_ERR_W::new(self, 7)
627    }
628    #[doc = "Bit 8 - Auto CMD Error"]
629    #[inline(always)]
630    pub fn acmd_err(&mut self) -> ACMD_ERR_W<INT_STATUS_ERR_SPEC> {
631        ACMD_ERR_W::new(self, 8)
632    }
633    #[doc = "Bit 13 - Ceata Error Status"]
634    #[inline(always)]
635    pub fn ceata_err(&mut self) -> CEATA_ERR_W<INT_STATUS_ERR_SPEC> {
636        CEATA_ERR_W::new(self, 13)
637    }
638}
639#[doc = "Error Interrupt Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`int_status_err::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_status_err::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
640pub struct INT_STATUS_ERR_SPEC;
641impl crate::RegisterSpec for INT_STATUS_ERR_SPEC {
642    type Ux = u16;
643}
644#[doc = "`read()` method returns [`int_status_err::R`](R) reader structure"]
645impl crate::Readable for INT_STATUS_ERR_SPEC {}
646#[doc = "`write(|w| ..)` method takes [`int_status_err::W`](W) writer structure"]
647impl crate::Writable for INT_STATUS_ERR_SPEC {
648    type Safety = crate::Unsafe;
649    const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
650    const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
651}
652#[doc = "`reset()` method sets INT_STATUS_ERR to value 0"]
653impl crate::Resettable for INT_STATUS_ERR_SPEC {
654    const RESET_VALUE: u16 = 0;
655}