rp2040_pac/spi0/
sspris.rs

1#[doc = "Register `SSPRIS` reader"]
2pub type R = crate::R<SSPRIS_SPEC>;
3#[doc = "Field `RORRIS` reader - Gives the raw interrupt state, prior to masking, of the SSPRORINTR interrupt"]
4pub type RORRIS_R = crate::BitReader;
5#[doc = "Field `RTRIS` reader - Gives the raw interrupt state, prior to masking, of the SSPRTINTR interrupt"]
6pub type RTRIS_R = crate::BitReader;
7#[doc = "Field `RXRIS` reader - Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt"]
8pub type RXRIS_R = crate::BitReader;
9#[doc = "Field `TXRIS` reader - Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt"]
10pub type TXRIS_R = crate::BitReader;
11impl R {
12    #[doc = "Bit 0 - Gives the raw interrupt state, prior to masking, of the SSPRORINTR interrupt"]
13    #[inline(always)]
14    pub fn rorris(&self) -> RORRIS_R {
15        RORRIS_R::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1 - Gives the raw interrupt state, prior to masking, of the SSPRTINTR interrupt"]
18    #[inline(always)]
19    pub fn rtris(&self) -> RTRIS_R {
20        RTRIS_R::new(((self.bits >> 1) & 1) != 0)
21    }
22    #[doc = "Bit 2 - Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt"]
23    #[inline(always)]
24    pub fn rxris(&self) -> RXRIS_R {
25        RXRIS_R::new(((self.bits >> 2) & 1) != 0)
26    }
27    #[doc = "Bit 3 - Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt"]
28    #[inline(always)]
29    pub fn txris(&self) -> TXRIS_R {
30        TXRIS_R::new(((self.bits >> 3) & 1) != 0)
31    }
32}
33#[doc = "Raw interrupt status register, SSPRIS on page 3-10  
34
35You can [`read`](crate::generic::Reg::read) this register and get [`sspris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct SSPRIS_SPEC;
37impl crate::RegisterSpec for SSPRIS_SPEC {
38    type Ux = u32;
39}
40#[doc = "`read()` method returns [`sspris::R`](R) reader structure"]
41impl crate::Readable for SSPRIS_SPEC {}
42#[doc = "`reset()` method sets SSPRIS to value 0x08"]
43impl crate::Resettable for SSPRIS_SPEC {
44    const RESET_VALUE: u32 = 0x08;
45}