mimxrt685s_pac/spi0/
intstat.rs

1#[doc = "Register `INTSTAT` reader"]
2pub type R = crate::R<IntstatSpec>;
3#[doc = "Field `SSA` reader - Slave Select Assert."]
4pub type SsaR = crate::BitReader;
5#[doc = "Field `SSD` reader - Slave Select Deassert."]
6pub type SsdR = crate::BitReader;
7#[doc = "Field `MSTIDLE` reader - Master Idle status flag."]
8pub type MstidleR = crate::BitReader;
9impl R {
10    #[doc = "Bit 4 - Slave Select Assert."]
11    #[inline(always)]
12    pub fn ssa(&self) -> SsaR {
13        SsaR::new(((self.bits >> 4) & 1) != 0)
14    }
15    #[doc = "Bit 5 - Slave Select Deassert."]
16    #[inline(always)]
17    pub fn ssd(&self) -> SsdR {
18        SsdR::new(((self.bits >> 5) & 1) != 0)
19    }
20    #[doc = "Bit 8 - Master Idle status flag."]
21    #[inline(always)]
22    pub fn mstidle(&self) -> MstidleR {
23        MstidleR::new(((self.bits >> 8) & 1) != 0)
24    }
25}
26#[cfg(feature = "debug")]
27impl core::fmt::Debug for R {
28    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29        f.debug_struct("INTSTAT")
30            .field("ssa", &self.ssa())
31            .field("ssd", &self.ssd())
32            .field("mstidle", &self.mstidle())
33            .finish()
34    }
35}
36#[doc = "SPI Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`intstat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
37pub struct IntstatSpec;
38impl crate::RegisterSpec for IntstatSpec {
39    type Ux = u32;
40}
41#[doc = "`read()` method returns [`intstat::R`](R) reader structure"]
42impl crate::Readable for IntstatSpec {}
43#[doc = "`reset()` method sets INTSTAT to value 0"]
44impl crate::Resettable for IntstatSpec {
45    const RESET_VALUE: u32 = 0;
46}