atsamd51g/sdhc0/
eisier_emmc_mode.rs

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