atsamd51j/sdhc0/
mc2r.rs

1#[doc = "Register `MC2R` writer"]
2pub type W = crate::W<Mc2rSpec>;
3#[doc = "Field `SRESP` writer - e.MMC Abort Wait IRQ"]
4pub type SrespW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `ABOOT` writer - e.MMC Abort Boot"]
6pub type AbootW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8    #[doc = "Bit 0 - e.MMC Abort Wait IRQ"]
9    #[inline(always)]
10    #[must_use]
11    pub fn sresp(&mut self) -> SrespW<Mc2rSpec> {
12        SrespW::new(self, 0)
13    }
14    #[doc = "Bit 1 - e.MMC Abort Boot"]
15    #[inline(always)]
16    #[must_use]
17    pub fn aboot(&mut self) -> AbootW<Mc2rSpec> {
18        AbootW::new(self, 1)
19    }
20}
21#[doc = "MMC Control 2\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mc2r::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct Mc2rSpec;
23impl crate::RegisterSpec for Mc2rSpec {
24    type Ux = u8;
25}
26#[doc = "`write(|w| ..)` method takes [`mc2r::W`](W) writer structure"]
27impl crate::Writable for Mc2rSpec {
28    type Safety = crate::Unsafe;
29    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
30    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
31}
32#[doc = "`reset()` method sets MC2R to value 0"]
33impl crate::Resettable for Mc2rSpec {
34    const RESET_VALUE: u8 = 0;
35}