atsamd11d/sercom0/spi/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Register `STATUS` writer"]
4pub type W = crate::W<StatusSpec>;
5#[doc = "Field `BUFOVF` reader - Buffer Overflow"]
6pub type BufovfR = crate::BitReader;
7#[doc = "Field `BUFOVF` writer - Buffer Overflow"]
8pub type BufovfW<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    #[doc = "Bit 2 - Buffer Overflow"]
11    #[inline(always)]
12    pub fn bufovf(&self) -> BufovfR {
13        BufovfR::new(((self.bits >> 2) & 1) != 0)
14    }
15}
16impl W {
17    #[doc = "Bit 2 - Buffer Overflow"]
18    #[inline(always)]
19    #[must_use]
20    pub fn bufovf(&mut self) -> BufovfW<StatusSpec> {
21        BufovfW::new(self, 2)
22    }
23}
24#[doc = "SPI Status\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`status::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
25pub struct StatusSpec;
26impl crate::RegisterSpec for StatusSpec {
27    type Ux = u16;
28}
29#[doc = "`read()` method returns [`status::R`](R) reader structure"]
30impl crate::Readable for StatusSpec {}
31#[doc = "`write(|w| ..)` method takes [`status::W`](W) writer structure"]
32impl crate::Writable for StatusSpec {
33    type Safety = crate::Unsafe;
34    const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
35    const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
36}
37#[doc = "`reset()` method sets STATUS to value 0"]
38impl crate::Resettable for StatusSpec {
39    const RESET_VALUE: u16 = 0;
40}