atsamd51p/qspi/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Field `ENABLE` reader - Enable"]
4pub type EnableR = crate::BitReader;
5#[doc = "Field `CSSTATUS` reader - Chip Select"]
6pub type CsstatusR = crate::BitReader;
7impl R {
8    #[doc = "Bit 1 - Enable"]
9    #[inline(always)]
10    pub fn enable(&self) -> EnableR {
11        EnableR::new(((self.bits >> 1) & 1) != 0)
12    }
13    #[doc = "Bit 9 - Chip Select"]
14    #[inline(always)]
15    pub fn csstatus(&self) -> CsstatusR {
16        CsstatusR::new(((self.bits >> 9) & 1) != 0)
17    }
18}
19#[doc = "Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct StatusSpec;
21impl crate::RegisterSpec for StatusSpec {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`status::R`](R) reader structure"]
25impl crate::Readable for StatusSpec {}
26#[doc = "`reset()` method sets STATUS to value 0x0200"]
27impl crate::Resettable for StatusSpec {
28    const RESET_VALUE: u32 = 0x0200;
29}