lpc55_pac/sdif/
intmask.rs

1#[doc = "Register `INTMASK` reader"]
2pub struct R(crate::R<INTMASK_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INTMASK_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INTMASK_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INTMASK_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INTMASK` writer"]
17pub struct W(crate::W<INTMASK_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INTMASK_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<INTMASK_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INTMASK_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CDET` reader - Card detect."]
38pub struct CDET_R(crate::FieldReader<bool, bool>);
39impl CDET_R {
40    #[inline(always)]
41    pub(crate) fn new(bits: bool) -> Self {
42        CDET_R(crate::FieldReader::new(bits))
43    }
44}
45impl core::ops::Deref for CDET_R {
46    type Target = crate::FieldReader<bool, bool>;
47    #[inline(always)]
48    fn deref(&self) -> &Self::Target {
49        &self.0
50    }
51}
52#[doc = "Field `CDET` writer - Card detect."]
53pub struct CDET_W<'a> {
54    w: &'a mut W,
55}
56impl<'a> CDET_W<'a> {
57    #[doc = r"Sets the field bit"]
58    #[inline(always)]
59    pub fn set_bit(self) -> &'a mut W {
60        self.bit(true)
61    }
62    #[doc = r"Clears the field bit"]
63    #[inline(always)]
64    pub fn clear_bit(self) -> &'a mut W {
65        self.bit(false)
66    }
67    #[doc = r"Writes raw bits to the field"]
68    #[inline(always)]
69    pub fn bit(self, value: bool) -> &'a mut W {
70        self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
71        self.w
72    }
73}
74#[doc = "Field `RE` reader - Response error."]
75pub struct RE_R(crate::FieldReader<bool, bool>);
76impl RE_R {
77    #[inline(always)]
78    pub(crate) fn new(bits: bool) -> Self {
79        RE_R(crate::FieldReader::new(bits))
80    }
81}
82impl core::ops::Deref for RE_R {
83    type Target = crate::FieldReader<bool, bool>;
84    #[inline(always)]
85    fn deref(&self) -> &Self::Target {
86        &self.0
87    }
88}
89#[doc = "Field `RE` writer - Response error."]
90pub struct RE_W<'a> {
91    w: &'a mut W,
92}
93impl<'a> RE_W<'a> {
94    #[doc = r"Sets the field bit"]
95    #[inline(always)]
96    pub fn set_bit(self) -> &'a mut W {
97        self.bit(true)
98    }
99    #[doc = r"Clears the field bit"]
100    #[inline(always)]
101    pub fn clear_bit(self) -> &'a mut W {
102        self.bit(false)
103    }
104    #[doc = r"Writes raw bits to the field"]
105    #[inline(always)]
106    pub fn bit(self, value: bool) -> &'a mut W {
107        self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
108        self.w
109    }
110}
111#[doc = "Field `CDONE` reader - Command done."]
112pub struct CDONE_R(crate::FieldReader<bool, bool>);
113impl CDONE_R {
114    #[inline(always)]
115    pub(crate) fn new(bits: bool) -> Self {
116        CDONE_R(crate::FieldReader::new(bits))
117    }
118}
119impl core::ops::Deref for CDONE_R {
120    type Target = crate::FieldReader<bool, bool>;
121    #[inline(always)]
122    fn deref(&self) -> &Self::Target {
123        &self.0
124    }
125}
126#[doc = "Field `CDONE` writer - Command done."]
127pub struct CDONE_W<'a> {
128    w: &'a mut W,
129}
130impl<'a> CDONE_W<'a> {
131    #[doc = r"Sets the field bit"]
132    #[inline(always)]
133    pub fn set_bit(self) -> &'a mut W {
134        self.bit(true)
135    }
136    #[doc = r"Clears the field bit"]
137    #[inline(always)]
138    pub fn clear_bit(self) -> &'a mut W {
139        self.bit(false)
140    }
141    #[doc = r"Writes raw bits to the field"]
142    #[inline(always)]
143    pub fn bit(self, value: bool) -> &'a mut W {
144        self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
145        self.w
146    }
147}
148#[doc = "Field `DTO` reader - Data transfer over."]
149pub struct DTO_R(crate::FieldReader<bool, bool>);
150impl DTO_R {
151    #[inline(always)]
152    pub(crate) fn new(bits: bool) -> Self {
153        DTO_R(crate::FieldReader::new(bits))
154    }
155}
156impl core::ops::Deref for DTO_R {
157    type Target = crate::FieldReader<bool, bool>;
158    #[inline(always)]
159    fn deref(&self) -> &Self::Target {
160        &self.0
161    }
162}
163#[doc = "Field `DTO` writer - Data transfer over."]
164pub struct DTO_W<'a> {
165    w: &'a mut W,
166}
167impl<'a> DTO_W<'a> {
168    #[doc = r"Sets the field bit"]
169    #[inline(always)]
170    pub fn set_bit(self) -> &'a mut W {
171        self.bit(true)
172    }
173    #[doc = r"Clears the field bit"]
174    #[inline(always)]
175    pub fn clear_bit(self) -> &'a mut W {
176        self.bit(false)
177    }
178    #[doc = r"Writes raw bits to the field"]
179    #[inline(always)]
180    pub fn bit(self, value: bool) -> &'a mut W {
181        self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
182        self.w
183    }
184}
185#[doc = "Field `TXDR` reader - Transmit FIFO data request."]
186pub struct TXDR_R(crate::FieldReader<bool, bool>);
187impl TXDR_R {
188    #[inline(always)]
189    pub(crate) fn new(bits: bool) -> Self {
190        TXDR_R(crate::FieldReader::new(bits))
191    }
192}
193impl core::ops::Deref for TXDR_R {
194    type Target = crate::FieldReader<bool, bool>;
195    #[inline(always)]
196    fn deref(&self) -> &Self::Target {
197        &self.0
198    }
199}
200#[doc = "Field `TXDR` writer - Transmit FIFO data request."]
201pub struct TXDR_W<'a> {
202    w: &'a mut W,
203}
204impl<'a> TXDR_W<'a> {
205    #[doc = r"Sets the field bit"]
206    #[inline(always)]
207    pub fn set_bit(self) -> &'a mut W {
208        self.bit(true)
209    }
210    #[doc = r"Clears the field bit"]
211    #[inline(always)]
212    pub fn clear_bit(self) -> &'a mut W {
213        self.bit(false)
214    }
215    #[doc = r"Writes raw bits to the field"]
216    #[inline(always)]
217    pub fn bit(self, value: bool) -> &'a mut W {
218        self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
219        self.w
220    }
221}
222#[doc = "Field `RXDR` reader - Receive FIFO data request."]
223pub struct RXDR_R(crate::FieldReader<bool, bool>);
224impl RXDR_R {
225    #[inline(always)]
226    pub(crate) fn new(bits: bool) -> Self {
227        RXDR_R(crate::FieldReader::new(bits))
228    }
229}
230impl core::ops::Deref for RXDR_R {
231    type Target = crate::FieldReader<bool, bool>;
232    #[inline(always)]
233    fn deref(&self) -> &Self::Target {
234        &self.0
235    }
236}
237#[doc = "Field `RXDR` writer - Receive FIFO data request."]
238pub struct RXDR_W<'a> {
239    w: &'a mut W,
240}
241impl<'a> RXDR_W<'a> {
242    #[doc = r"Sets the field bit"]
243    #[inline(always)]
244    pub fn set_bit(self) -> &'a mut W {
245        self.bit(true)
246    }
247    #[doc = r"Clears the field bit"]
248    #[inline(always)]
249    pub fn clear_bit(self) -> &'a mut W {
250        self.bit(false)
251    }
252    #[doc = r"Writes raw bits to the field"]
253    #[inline(always)]
254    pub fn bit(self, value: bool) -> &'a mut W {
255        self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
256        self.w
257    }
258}
259#[doc = "Field `RCRC` reader - Response CRC error."]
260pub struct RCRC_R(crate::FieldReader<bool, bool>);
261impl RCRC_R {
262    #[inline(always)]
263    pub(crate) fn new(bits: bool) -> Self {
264        RCRC_R(crate::FieldReader::new(bits))
265    }
266}
267impl core::ops::Deref for RCRC_R {
268    type Target = crate::FieldReader<bool, bool>;
269    #[inline(always)]
270    fn deref(&self) -> &Self::Target {
271        &self.0
272    }
273}
274#[doc = "Field `RCRC` writer - Response CRC error."]
275pub struct RCRC_W<'a> {
276    w: &'a mut W,
277}
278impl<'a> RCRC_W<'a> {
279    #[doc = r"Sets the field bit"]
280    #[inline(always)]
281    pub fn set_bit(self) -> &'a mut W {
282        self.bit(true)
283    }
284    #[doc = r"Clears the field bit"]
285    #[inline(always)]
286    pub fn clear_bit(self) -> &'a mut W {
287        self.bit(false)
288    }
289    #[doc = r"Writes raw bits to the field"]
290    #[inline(always)]
291    pub fn bit(self, value: bool) -> &'a mut W {
292        self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
293        self.w
294    }
295}
296#[doc = "Field `DCRC` reader - Data CRC error."]
297pub struct DCRC_R(crate::FieldReader<bool, bool>);
298impl DCRC_R {
299    #[inline(always)]
300    pub(crate) fn new(bits: bool) -> Self {
301        DCRC_R(crate::FieldReader::new(bits))
302    }
303}
304impl core::ops::Deref for DCRC_R {
305    type Target = crate::FieldReader<bool, bool>;
306    #[inline(always)]
307    fn deref(&self) -> &Self::Target {
308        &self.0
309    }
310}
311#[doc = "Field `DCRC` writer - Data CRC error."]
312pub struct DCRC_W<'a> {
313    w: &'a mut W,
314}
315impl<'a> DCRC_W<'a> {
316    #[doc = r"Sets the field bit"]
317    #[inline(always)]
318    pub fn set_bit(self) -> &'a mut W {
319        self.bit(true)
320    }
321    #[doc = r"Clears the field bit"]
322    #[inline(always)]
323    pub fn clear_bit(self) -> &'a mut W {
324        self.bit(false)
325    }
326    #[doc = r"Writes raw bits to the field"]
327    #[inline(always)]
328    pub fn bit(self, value: bool) -> &'a mut W {
329        self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
330        self.w
331    }
332}
333#[doc = "Field `RTO` reader - Response time-out."]
334pub struct RTO_R(crate::FieldReader<bool, bool>);
335impl RTO_R {
336    #[inline(always)]
337    pub(crate) fn new(bits: bool) -> Self {
338        RTO_R(crate::FieldReader::new(bits))
339    }
340}
341impl core::ops::Deref for RTO_R {
342    type Target = crate::FieldReader<bool, bool>;
343    #[inline(always)]
344    fn deref(&self) -> &Self::Target {
345        &self.0
346    }
347}
348#[doc = "Field `RTO` writer - Response time-out."]
349pub struct RTO_W<'a> {
350    w: &'a mut W,
351}
352impl<'a> RTO_W<'a> {
353    #[doc = r"Sets the field bit"]
354    #[inline(always)]
355    pub fn set_bit(self) -> &'a mut W {
356        self.bit(true)
357    }
358    #[doc = r"Clears the field bit"]
359    #[inline(always)]
360    pub fn clear_bit(self) -> &'a mut W {
361        self.bit(false)
362    }
363    #[doc = r"Writes raw bits to the field"]
364    #[inline(always)]
365    pub fn bit(self, value: bool) -> &'a mut W {
366        self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
367        self.w
368    }
369}
370#[doc = "Field `DRTO` reader - Data read time-out."]
371pub struct DRTO_R(crate::FieldReader<bool, bool>);
372impl DRTO_R {
373    #[inline(always)]
374    pub(crate) fn new(bits: bool) -> Self {
375        DRTO_R(crate::FieldReader::new(bits))
376    }
377}
378impl core::ops::Deref for DRTO_R {
379    type Target = crate::FieldReader<bool, bool>;
380    #[inline(always)]
381    fn deref(&self) -> &Self::Target {
382        &self.0
383    }
384}
385#[doc = "Field `DRTO` writer - Data read time-out."]
386pub struct DRTO_W<'a> {
387    w: &'a mut W,
388}
389impl<'a> DRTO_W<'a> {
390    #[doc = r"Sets the field bit"]
391    #[inline(always)]
392    pub fn set_bit(self) -> &'a mut W {
393        self.bit(true)
394    }
395    #[doc = r"Clears the field bit"]
396    #[inline(always)]
397    pub fn clear_bit(self) -> &'a mut W {
398        self.bit(false)
399    }
400    #[doc = r"Writes raw bits to the field"]
401    #[inline(always)]
402    pub fn bit(self, value: bool) -> &'a mut W {
403        self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
404        self.w
405    }
406}
407#[doc = "Field `HTO` reader - Data starvation-by-host time-out (HTO)."]
408pub struct HTO_R(crate::FieldReader<bool, bool>);
409impl HTO_R {
410    #[inline(always)]
411    pub(crate) fn new(bits: bool) -> Self {
412        HTO_R(crate::FieldReader::new(bits))
413    }
414}
415impl core::ops::Deref for HTO_R {
416    type Target = crate::FieldReader<bool, bool>;
417    #[inline(always)]
418    fn deref(&self) -> &Self::Target {
419        &self.0
420    }
421}
422#[doc = "Field `HTO` writer - Data starvation-by-host time-out (HTO)."]
423pub struct HTO_W<'a> {
424    w: &'a mut W,
425}
426impl<'a> HTO_W<'a> {
427    #[doc = r"Sets the field bit"]
428    #[inline(always)]
429    pub fn set_bit(self) -> &'a mut W {
430        self.bit(true)
431    }
432    #[doc = r"Clears the field bit"]
433    #[inline(always)]
434    pub fn clear_bit(self) -> &'a mut W {
435        self.bit(false)
436    }
437    #[doc = r"Writes raw bits to the field"]
438    #[inline(always)]
439    pub fn bit(self, value: bool) -> &'a mut W {
440        self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
441        self.w
442    }
443}
444#[doc = "Field `FRUN` reader - FIFO underrun/overrun error."]
445pub struct FRUN_R(crate::FieldReader<bool, bool>);
446impl FRUN_R {
447    #[inline(always)]
448    pub(crate) fn new(bits: bool) -> Self {
449        FRUN_R(crate::FieldReader::new(bits))
450    }
451}
452impl core::ops::Deref for FRUN_R {
453    type Target = crate::FieldReader<bool, bool>;
454    #[inline(always)]
455    fn deref(&self) -> &Self::Target {
456        &self.0
457    }
458}
459#[doc = "Field `FRUN` writer - FIFO underrun/overrun error."]
460pub struct FRUN_W<'a> {
461    w: &'a mut W,
462}
463impl<'a> FRUN_W<'a> {
464    #[doc = r"Sets the field bit"]
465    #[inline(always)]
466    pub fn set_bit(self) -> &'a mut W {
467        self.bit(true)
468    }
469    #[doc = r"Clears the field bit"]
470    #[inline(always)]
471    pub fn clear_bit(self) -> &'a mut W {
472        self.bit(false)
473    }
474    #[doc = r"Writes raw bits to the field"]
475    #[inline(always)]
476    pub fn bit(self, value: bool) -> &'a mut W {
477        self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
478        self.w
479    }
480}
481#[doc = "Field `HLE` reader - Hardware locked write error."]
482pub struct HLE_R(crate::FieldReader<bool, bool>);
483impl HLE_R {
484    #[inline(always)]
485    pub(crate) fn new(bits: bool) -> Self {
486        HLE_R(crate::FieldReader::new(bits))
487    }
488}
489impl core::ops::Deref for HLE_R {
490    type Target = crate::FieldReader<bool, bool>;
491    #[inline(always)]
492    fn deref(&self) -> &Self::Target {
493        &self.0
494    }
495}
496#[doc = "Field `HLE` writer - Hardware locked write error."]
497pub struct HLE_W<'a> {
498    w: &'a mut W,
499}
500impl<'a> HLE_W<'a> {
501    #[doc = r"Sets the field bit"]
502    #[inline(always)]
503    pub fn set_bit(self) -> &'a mut W {
504        self.bit(true)
505    }
506    #[doc = r"Clears the field bit"]
507    #[inline(always)]
508    pub fn clear_bit(self) -> &'a mut W {
509        self.bit(false)
510    }
511    #[doc = r"Writes raw bits to the field"]
512    #[inline(always)]
513    pub fn bit(self, value: bool) -> &'a mut W {
514        self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
515        self.w
516    }
517}
518#[doc = "Field `SBE` reader - Start-bit error."]
519pub struct SBE_R(crate::FieldReader<bool, bool>);
520impl SBE_R {
521    #[inline(always)]
522    pub(crate) fn new(bits: bool) -> Self {
523        SBE_R(crate::FieldReader::new(bits))
524    }
525}
526impl core::ops::Deref for SBE_R {
527    type Target = crate::FieldReader<bool, bool>;
528    #[inline(always)]
529    fn deref(&self) -> &Self::Target {
530        &self.0
531    }
532}
533#[doc = "Field `SBE` writer - Start-bit error."]
534pub struct SBE_W<'a> {
535    w: &'a mut W,
536}
537impl<'a> SBE_W<'a> {
538    #[doc = r"Sets the field bit"]
539    #[inline(always)]
540    pub fn set_bit(self) -> &'a mut W {
541        self.bit(true)
542    }
543    #[doc = r"Clears the field bit"]
544    #[inline(always)]
545    pub fn clear_bit(self) -> &'a mut W {
546        self.bit(false)
547    }
548    #[doc = r"Writes raw bits to the field"]
549    #[inline(always)]
550    pub fn bit(self, value: bool) -> &'a mut W {
551        self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
552        self.w
553    }
554}
555#[doc = "Field `ACD` reader - Auto command done."]
556pub struct ACD_R(crate::FieldReader<bool, bool>);
557impl ACD_R {
558    #[inline(always)]
559    pub(crate) fn new(bits: bool) -> Self {
560        ACD_R(crate::FieldReader::new(bits))
561    }
562}
563impl core::ops::Deref for ACD_R {
564    type Target = crate::FieldReader<bool, bool>;
565    #[inline(always)]
566    fn deref(&self) -> &Self::Target {
567        &self.0
568    }
569}
570#[doc = "Field `ACD` writer - Auto command done."]
571pub struct ACD_W<'a> {
572    w: &'a mut W,
573}
574impl<'a> ACD_W<'a> {
575    #[doc = r"Sets the field bit"]
576    #[inline(always)]
577    pub fn set_bit(self) -> &'a mut W {
578        self.bit(true)
579    }
580    #[doc = r"Clears the field bit"]
581    #[inline(always)]
582    pub fn clear_bit(self) -> &'a mut W {
583        self.bit(false)
584    }
585    #[doc = r"Writes raw bits to the field"]
586    #[inline(always)]
587    pub fn bit(self, value: bool) -> &'a mut W {
588        self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
589        self.w
590    }
591}
592#[doc = "Field `EBE` reader - End-bit error (read)/Write no CRC."]
593pub struct EBE_R(crate::FieldReader<bool, bool>);
594impl EBE_R {
595    #[inline(always)]
596    pub(crate) fn new(bits: bool) -> Self {
597        EBE_R(crate::FieldReader::new(bits))
598    }
599}
600impl core::ops::Deref for EBE_R {
601    type Target = crate::FieldReader<bool, bool>;
602    #[inline(always)]
603    fn deref(&self) -> &Self::Target {
604        &self.0
605    }
606}
607#[doc = "Field `EBE` writer - End-bit error (read)/Write no CRC."]
608pub struct EBE_W<'a> {
609    w: &'a mut W,
610}
611impl<'a> EBE_W<'a> {
612    #[doc = r"Sets the field bit"]
613    #[inline(always)]
614    pub fn set_bit(self) -> &'a mut W {
615        self.bit(true)
616    }
617    #[doc = r"Clears the field bit"]
618    #[inline(always)]
619    pub fn clear_bit(self) -> &'a mut W {
620        self.bit(false)
621    }
622    #[doc = r"Writes raw bits to the field"]
623    #[inline(always)]
624    pub fn bit(self, value: bool) -> &'a mut W {
625        self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
626        self.w
627    }
628}
629#[doc = "Field `SDIO_INT_MASK` reader - Mask SDIO interrupt."]
630pub struct SDIO_INT_MASK_R(crate::FieldReader<bool, bool>);
631impl SDIO_INT_MASK_R {
632    #[inline(always)]
633    pub(crate) fn new(bits: bool) -> Self {
634        SDIO_INT_MASK_R(crate::FieldReader::new(bits))
635    }
636}
637impl core::ops::Deref for SDIO_INT_MASK_R {
638    type Target = crate::FieldReader<bool, bool>;
639    #[inline(always)]
640    fn deref(&self) -> &Self::Target {
641        &self.0
642    }
643}
644#[doc = "Field `SDIO_INT_MASK` writer - Mask SDIO interrupt."]
645pub struct SDIO_INT_MASK_W<'a> {
646    w: &'a mut W,
647}
648impl<'a> SDIO_INT_MASK_W<'a> {
649    #[doc = r"Sets the field bit"]
650    #[inline(always)]
651    pub fn set_bit(self) -> &'a mut W {
652        self.bit(true)
653    }
654    #[doc = r"Clears the field bit"]
655    #[inline(always)]
656    pub fn clear_bit(self) -> &'a mut W {
657        self.bit(false)
658    }
659    #[doc = r"Writes raw bits to the field"]
660    #[inline(always)]
661    pub fn bit(self, value: bool) -> &'a mut W {
662        self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
663        self.w
664    }
665}
666impl R {
667    #[doc = "Bit 0 - Card detect."]
668    #[inline(always)]
669    pub fn cdet(&self) -> CDET_R {
670        CDET_R::new((self.bits & 0x01) != 0)
671    }
672    #[doc = "Bit 1 - Response error."]
673    #[inline(always)]
674    pub fn re(&self) -> RE_R {
675        RE_R::new(((self.bits >> 1) & 0x01) != 0)
676    }
677    #[doc = "Bit 2 - Command done."]
678    #[inline(always)]
679    pub fn cdone(&self) -> CDONE_R {
680        CDONE_R::new(((self.bits >> 2) & 0x01) != 0)
681    }
682    #[doc = "Bit 3 - Data transfer over."]
683    #[inline(always)]
684    pub fn dto(&self) -> DTO_R {
685        DTO_R::new(((self.bits >> 3) & 0x01) != 0)
686    }
687    #[doc = "Bit 4 - Transmit FIFO data request."]
688    #[inline(always)]
689    pub fn txdr(&self) -> TXDR_R {
690        TXDR_R::new(((self.bits >> 4) & 0x01) != 0)
691    }
692    #[doc = "Bit 5 - Receive FIFO data request."]
693    #[inline(always)]
694    pub fn rxdr(&self) -> RXDR_R {
695        RXDR_R::new(((self.bits >> 5) & 0x01) != 0)
696    }
697    #[doc = "Bit 6 - Response CRC error."]
698    #[inline(always)]
699    pub fn rcrc(&self) -> RCRC_R {
700        RCRC_R::new(((self.bits >> 6) & 0x01) != 0)
701    }
702    #[doc = "Bit 7 - Data CRC error."]
703    #[inline(always)]
704    pub fn dcrc(&self) -> DCRC_R {
705        DCRC_R::new(((self.bits >> 7) & 0x01) != 0)
706    }
707    #[doc = "Bit 8 - Response time-out."]
708    #[inline(always)]
709    pub fn rto(&self) -> RTO_R {
710        RTO_R::new(((self.bits >> 8) & 0x01) != 0)
711    }
712    #[doc = "Bit 9 - Data read time-out."]
713    #[inline(always)]
714    pub fn drto(&self) -> DRTO_R {
715        DRTO_R::new(((self.bits >> 9) & 0x01) != 0)
716    }
717    #[doc = "Bit 10 - Data starvation-by-host time-out (HTO)."]
718    #[inline(always)]
719    pub fn hto(&self) -> HTO_R {
720        HTO_R::new(((self.bits >> 10) & 0x01) != 0)
721    }
722    #[doc = "Bit 11 - FIFO underrun/overrun error."]
723    #[inline(always)]
724    pub fn frun(&self) -> FRUN_R {
725        FRUN_R::new(((self.bits >> 11) & 0x01) != 0)
726    }
727    #[doc = "Bit 12 - Hardware locked write error."]
728    #[inline(always)]
729    pub fn hle(&self) -> HLE_R {
730        HLE_R::new(((self.bits >> 12) & 0x01) != 0)
731    }
732    #[doc = "Bit 13 - Start-bit error."]
733    #[inline(always)]
734    pub fn sbe(&self) -> SBE_R {
735        SBE_R::new(((self.bits >> 13) & 0x01) != 0)
736    }
737    #[doc = "Bit 14 - Auto command done."]
738    #[inline(always)]
739    pub fn acd(&self) -> ACD_R {
740        ACD_R::new(((self.bits >> 14) & 0x01) != 0)
741    }
742    #[doc = "Bit 15 - End-bit error (read)/Write no CRC."]
743    #[inline(always)]
744    pub fn ebe(&self) -> EBE_R {
745        EBE_R::new(((self.bits >> 15) & 0x01) != 0)
746    }
747    #[doc = "Bit 16 - Mask SDIO interrupt."]
748    #[inline(always)]
749    pub fn sdio_int_mask(&self) -> SDIO_INT_MASK_R {
750        SDIO_INT_MASK_R::new(((self.bits >> 16) & 0x01) != 0)
751    }
752}
753impl W {
754    #[doc = "Bit 0 - Card detect."]
755    #[inline(always)]
756    pub fn cdet(&mut self) -> CDET_W {
757        CDET_W { w: self }
758    }
759    #[doc = "Bit 1 - Response error."]
760    #[inline(always)]
761    pub fn re(&mut self) -> RE_W {
762        RE_W { w: self }
763    }
764    #[doc = "Bit 2 - Command done."]
765    #[inline(always)]
766    pub fn cdone(&mut self) -> CDONE_W {
767        CDONE_W { w: self }
768    }
769    #[doc = "Bit 3 - Data transfer over."]
770    #[inline(always)]
771    pub fn dto(&mut self) -> DTO_W {
772        DTO_W { w: self }
773    }
774    #[doc = "Bit 4 - Transmit FIFO data request."]
775    #[inline(always)]
776    pub fn txdr(&mut self) -> TXDR_W {
777        TXDR_W { w: self }
778    }
779    #[doc = "Bit 5 - Receive FIFO data request."]
780    #[inline(always)]
781    pub fn rxdr(&mut self) -> RXDR_W {
782        RXDR_W { w: self }
783    }
784    #[doc = "Bit 6 - Response CRC error."]
785    #[inline(always)]
786    pub fn rcrc(&mut self) -> RCRC_W {
787        RCRC_W { w: self }
788    }
789    #[doc = "Bit 7 - Data CRC error."]
790    #[inline(always)]
791    pub fn dcrc(&mut self) -> DCRC_W {
792        DCRC_W { w: self }
793    }
794    #[doc = "Bit 8 - Response time-out."]
795    #[inline(always)]
796    pub fn rto(&mut self) -> RTO_W {
797        RTO_W { w: self }
798    }
799    #[doc = "Bit 9 - Data read time-out."]
800    #[inline(always)]
801    pub fn drto(&mut self) -> DRTO_W {
802        DRTO_W { w: self }
803    }
804    #[doc = "Bit 10 - Data starvation-by-host time-out (HTO)."]
805    #[inline(always)]
806    pub fn hto(&mut self) -> HTO_W {
807        HTO_W { w: self }
808    }
809    #[doc = "Bit 11 - FIFO underrun/overrun error."]
810    #[inline(always)]
811    pub fn frun(&mut self) -> FRUN_W {
812        FRUN_W { w: self }
813    }
814    #[doc = "Bit 12 - Hardware locked write error."]
815    #[inline(always)]
816    pub fn hle(&mut self) -> HLE_W {
817        HLE_W { w: self }
818    }
819    #[doc = "Bit 13 - Start-bit error."]
820    #[inline(always)]
821    pub fn sbe(&mut self) -> SBE_W {
822        SBE_W { w: self }
823    }
824    #[doc = "Bit 14 - Auto command done."]
825    #[inline(always)]
826    pub fn acd(&mut self) -> ACD_W {
827        ACD_W { w: self }
828    }
829    #[doc = "Bit 15 - End-bit error (read)/Write no CRC."]
830    #[inline(always)]
831    pub fn ebe(&mut self) -> EBE_W {
832        EBE_W { w: self }
833    }
834    #[doc = "Bit 16 - Mask SDIO interrupt."]
835    #[inline(always)]
836    pub fn sdio_int_mask(&mut self) -> SDIO_INT_MASK_W {
837        SDIO_INT_MASK_W { w: self }
838    }
839    #[doc = "Writes raw bits to the register."]
840    #[inline(always)]
841    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
842        self.0.bits(bits);
843        self
844    }
845}
846#[doc = "Interrupt Mask 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 [intmask](index.html) module"]
847pub struct INTMASK_SPEC;
848impl crate::RegisterSpec for INTMASK_SPEC {
849    type Ux = u32;
850}
851#[doc = "`read()` method returns [intmask::R](R) reader structure"]
852impl crate::Readable for INTMASK_SPEC {
853    type Reader = R;
854}
855#[doc = "`write(|w| ..)` method takes [intmask::W](W) writer structure"]
856impl crate::Writable for INTMASK_SPEC {
857    type Writer = W;
858}
859#[doc = "`reset()` method sets INTMASK to value 0"]
860impl crate::Resettable for INTMASK_SPEC {
861    #[inline(always)]
862    fn reset_value() -> Self::Ux {
863        0
864    }
865}