tm4c129x/ssi0/
ris.rs

1#[doc = "Reader of register RIS"]
2pub type R = crate::R<u32, super::RIS>;
3#[doc = "Reader of field `RORRIS`"]
4pub type RORRIS_R = crate::R<bool, bool>;
5#[doc = "Reader of field `RTRIS`"]
6pub type RTRIS_R = crate::R<bool, bool>;
7#[doc = "Reader of field `RXRIS`"]
8pub type RXRIS_R = crate::R<bool, bool>;
9#[doc = "Reader of field `TXRIS`"]
10pub type TXRIS_R = crate::R<bool, bool>;
11#[doc = "Reader of field `DMARXRIS`"]
12pub type DMARXRIS_R = crate::R<bool, bool>;
13#[doc = "Reader of field `DMATXRIS`"]
14pub type DMATXRIS_R = crate::R<bool, bool>;
15#[doc = "Reader of field `EOTRIS`"]
16pub type EOTRIS_R = crate::R<bool, bool>;
17impl R {
18    #[doc = "Bit 0 - SSI Receive Overrun Raw Interrupt Status"]
19    #[inline(always)]
20    pub fn rorris(&self) -> RORRIS_R {
21        RORRIS_R::new((self.bits & 0x01) != 0)
22    }
23    #[doc = "Bit 1 - SSI Receive Time-Out Raw Interrupt Status"]
24    #[inline(always)]
25    pub fn rtris(&self) -> RTRIS_R {
26        RTRIS_R::new(((self.bits >> 1) & 0x01) != 0)
27    }
28    #[doc = "Bit 2 - SSI Receive FIFO Raw Interrupt Status"]
29    #[inline(always)]
30    pub fn rxris(&self) -> RXRIS_R {
31        RXRIS_R::new(((self.bits >> 2) & 0x01) != 0)
32    }
33    #[doc = "Bit 3 - SSI Transmit FIFO Raw Interrupt Status"]
34    #[inline(always)]
35    pub fn txris(&self) -> TXRIS_R {
36        TXRIS_R::new(((self.bits >> 3) & 0x01) != 0)
37    }
38    #[doc = "Bit 4 - SSI Receive DMA Raw Interrupt Status"]
39    #[inline(always)]
40    pub fn dmarxris(&self) -> DMARXRIS_R {
41        DMARXRIS_R::new(((self.bits >> 4) & 0x01) != 0)
42    }
43    #[doc = "Bit 5 - SSI Transmit DMA Raw Interrupt Status"]
44    #[inline(always)]
45    pub fn dmatxris(&self) -> DMATXRIS_R {
46        DMATXRIS_R::new(((self.bits >> 5) & 0x01) != 0)
47    }
48    #[doc = "Bit 6 - End of Transmit Raw Interrupt Status"]
49    #[inline(always)]
50    pub fn eotris(&self) -> EOTRIS_R {
51        EOTRIS_R::new(((self.bits >> 6) & 0x01) != 0)
52    }
53}