rp2040_pac/uart0/
uartris.rs
1#[doc = "Register `UARTRIS` reader"]
2pub type R = crate::R<UARTRIS_SPEC>;
3#[doc = "Field `RIRMIS` reader - nUARTRI modem interrupt status. Returns the raw interrupt state of the UARTRIINTR interrupt."]
4pub type RIRMIS_R = crate::BitReader;
5#[doc = "Field `CTSRMIS` reader - nUARTCTS modem interrupt status. Returns the raw interrupt state of the UARTCTSINTR interrupt."]
6pub type CTSRMIS_R = crate::BitReader;
7#[doc = "Field `DCDRMIS` reader - nUARTDCD modem interrupt status. Returns the raw interrupt state of the UARTDCDINTR interrupt."]
8pub type DCDRMIS_R = crate::BitReader;
9#[doc = "Field `DSRRMIS` reader - nUARTDSR modem interrupt status. Returns the raw interrupt state of the UARTDSRINTR interrupt."]
10pub type DSRRMIS_R = crate::BitReader;
11#[doc = "Field `RXRIS` reader - Receive interrupt status. Returns the raw interrupt state of the UARTRXINTR interrupt."]
12pub type RXRIS_R = crate::BitReader;
13#[doc = "Field `TXRIS` reader - Transmit interrupt status. Returns the raw interrupt state of the UARTTXINTR interrupt."]
14pub type TXRIS_R = crate::BitReader;
15#[doc = "Field `RTRIS` reader - Receive timeout interrupt status. Returns the raw interrupt state of the UARTRTINTR interrupt. a"]
16pub type RTRIS_R = crate::BitReader;
17#[doc = "Field `FERIS` reader - Framing error interrupt status. Returns the raw interrupt state of the UARTFEINTR interrupt."]
18pub type FERIS_R = crate::BitReader;
19#[doc = "Field `PERIS` reader - Parity error interrupt status. Returns the raw interrupt state of the UARTPEINTR interrupt."]
20pub type PERIS_R = crate::BitReader;
21#[doc = "Field `BERIS` reader - Break error interrupt status. Returns the raw interrupt state of the UARTBEINTR interrupt."]
22pub type BERIS_R = crate::BitReader;
23#[doc = "Field `OERIS` reader - Overrun error interrupt status. Returns the raw interrupt state of the UARTOEINTR interrupt."]
24pub type OERIS_R = crate::BitReader;
25impl R {
26 #[doc = "Bit 0 - nUARTRI modem interrupt status. Returns the raw interrupt state of the UARTRIINTR interrupt."]
27 #[inline(always)]
28 pub fn rirmis(&self) -> RIRMIS_R {
29 RIRMIS_R::new((self.bits & 1) != 0)
30 }
31 #[doc = "Bit 1 - nUARTCTS modem interrupt status. Returns the raw interrupt state of the UARTCTSINTR interrupt."]
32 #[inline(always)]
33 pub fn ctsrmis(&self) -> CTSRMIS_R {
34 CTSRMIS_R::new(((self.bits >> 1) & 1) != 0)
35 }
36 #[doc = "Bit 2 - nUARTDCD modem interrupt status. Returns the raw interrupt state of the UARTDCDINTR interrupt."]
37 #[inline(always)]
38 pub fn dcdrmis(&self) -> DCDRMIS_R {
39 DCDRMIS_R::new(((self.bits >> 2) & 1) != 0)
40 }
41 #[doc = "Bit 3 - nUARTDSR modem interrupt status. Returns the raw interrupt state of the UARTDSRINTR interrupt."]
42 #[inline(always)]
43 pub fn dsrrmis(&self) -> DSRRMIS_R {
44 DSRRMIS_R::new(((self.bits >> 3) & 1) != 0)
45 }
46 #[doc = "Bit 4 - Receive interrupt status. Returns the raw interrupt state of the UARTRXINTR interrupt."]
47 #[inline(always)]
48 pub fn rxris(&self) -> RXRIS_R {
49 RXRIS_R::new(((self.bits >> 4) & 1) != 0)
50 }
51 #[doc = "Bit 5 - Transmit interrupt status. Returns the raw interrupt state of the UARTTXINTR interrupt."]
52 #[inline(always)]
53 pub fn txris(&self) -> TXRIS_R {
54 TXRIS_R::new(((self.bits >> 5) & 1) != 0)
55 }
56 #[doc = "Bit 6 - Receive timeout interrupt status. Returns the raw interrupt state of the UARTRTINTR interrupt. a"]
57 #[inline(always)]
58 pub fn rtris(&self) -> RTRIS_R {
59 RTRIS_R::new(((self.bits >> 6) & 1) != 0)
60 }
61 #[doc = "Bit 7 - Framing error interrupt status. Returns the raw interrupt state of the UARTFEINTR interrupt."]
62 #[inline(always)]
63 pub fn feris(&self) -> FERIS_R {
64 FERIS_R::new(((self.bits >> 7) & 1) != 0)
65 }
66 #[doc = "Bit 8 - Parity error interrupt status. Returns the raw interrupt state of the UARTPEINTR interrupt."]
67 #[inline(always)]
68 pub fn peris(&self) -> PERIS_R {
69 PERIS_R::new(((self.bits >> 8) & 1) != 0)
70 }
71 #[doc = "Bit 9 - Break error interrupt status. Returns the raw interrupt state of the UARTBEINTR interrupt."]
72 #[inline(always)]
73 pub fn beris(&self) -> BERIS_R {
74 BERIS_R::new(((self.bits >> 9) & 1) != 0)
75 }
76 #[doc = "Bit 10 - Overrun error interrupt status. Returns the raw interrupt state of the UARTOEINTR interrupt."]
77 #[inline(always)]
78 pub fn oeris(&self) -> OERIS_R {
79 OERIS_R::new(((self.bits >> 10) & 1) != 0)
80 }
81}
82#[doc = "Raw Interrupt Status Register, UARTRIS
83
84You can [`read`](crate::generic::Reg::read) this register and get [`uartris::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
85pub struct UARTRIS_SPEC;
86impl crate::RegisterSpec for UARTRIS_SPEC {
87 type Ux = u32;
88}
89#[doc = "`read()` method returns [`uartris::R`](R) reader structure"]
90impl crate::Readable for UARTRIS_SPEC {}
91#[doc = "`reset()` method sets UARTRIS to value 0"]
92impl crate::Resettable for UARTRIS_SPEC {
93 const RESET_VALUE: u32 = 0;
94}