1#[doc = "Register `CSR` reader"]
2pub type R = crate::R<CsrSpec>;
3#[doc = "Field `RXRDY` reader - Receiver Ready"]
4pub type RxrdyR = crate::BitReader;
5#[doc = "Field `TXRDY` reader - Transmitter Ready"]
6pub type TxrdyR = crate::BitReader;
7#[doc = "Field `RXBRK` reader - Break Received/End of Break"]
8pub type RxbrkR = crate::BitReader;
9#[doc = "Field `ENDRX` reader - End of Receiver Transfer"]
10pub type EndrxR = crate::BitReader;
11#[doc = "Field `ENDTX` reader - End of Transmitter Transfer"]
12pub type EndtxR = crate::BitReader;
13#[doc = "Field `OVRE` reader - Overrun Error"]
14pub type OvreR = crate::BitReader;
15#[doc = "Field `FRAME` reader - Framing Error"]
16pub type FrameR = crate::BitReader;
17#[doc = "Field `PARE` reader - Parity Error"]
18pub type PareR = crate::BitReader;
19#[doc = "Field `TIMEOUT` reader - Receiver Time-out"]
20pub type TimeoutR = crate::BitReader;
21#[doc = "Field `TXEMPTY` reader - Transmitter Empty"]
22pub type TxemptyR = crate::BitReader;
23#[doc = "Field `ITER` reader - Max Number of Repetitions Reached"]
24pub type IterR = crate::BitReader;
25#[doc = "Field `TXBUFE` reader - Transmission Buffer Empty"]
26pub type TxbufeR = crate::BitReader;
27#[doc = "Field `RXBUFF` reader - Reception Buffer Full"]
28pub type RxbuffR = crate::BitReader;
29#[doc = "Field `NACK` reader - Non AcknowledgeInterrupt"]
30pub type NackR = crate::BitReader;
31#[doc = "Field `RIIC` reader - Ring Indicator Input Change Flag"]
32pub type RiicR = crate::BitReader;
33#[doc = "Field `DSRIC` reader - Data Set Ready Input Change Flag"]
34pub type DsricR = crate::BitReader;
35#[doc = "Field `DCDIC` reader - Data Carrier Detect Input Change Flag"]
36pub type DcdicR = crate::BitReader;
37#[doc = "Field `CTSIC` reader - Clear to Send Input Change Flag"]
38pub type CtsicR = crate::BitReader;
39#[doc = "Field `RI` reader - Image of RI Input"]
40pub type RiR = crate::BitReader;
41#[doc = "Field `DSR` reader - Image of DSR Input"]
42pub type DsrR = crate::BitReader;
43#[doc = "Field `DCD` reader - Image of DCD Input"]
44pub type DcdR = crate::BitReader;
45#[doc = "Field `CTS` reader - Image of CTS Input"]
46pub type CtsR = crate::BitReader;
47#[doc = "Field `MANERR` reader - Manchester Error"]
48pub type ManerrR = crate::BitReader;
49impl R {
50 #[doc = "Bit 0 - Receiver Ready"]
51 #[inline(always)]
52 pub fn rxrdy(&self) -> RxrdyR {
53 RxrdyR::new((self.bits & 1) != 0)
54 }
55 #[doc = "Bit 1 - Transmitter Ready"]
56 #[inline(always)]
57 pub fn txrdy(&self) -> TxrdyR {
58 TxrdyR::new(((self.bits >> 1) & 1) != 0)
59 }
60 #[doc = "Bit 2 - Break Received/End of Break"]
61 #[inline(always)]
62 pub fn rxbrk(&self) -> RxbrkR {
63 RxbrkR::new(((self.bits >> 2) & 1) != 0)
64 }
65 #[doc = "Bit 3 - End of Receiver Transfer"]
66 #[inline(always)]
67 pub fn endrx(&self) -> EndrxR {
68 EndrxR::new(((self.bits >> 3) & 1) != 0)
69 }
70 #[doc = "Bit 4 - End of Transmitter Transfer"]
71 #[inline(always)]
72 pub fn endtx(&self) -> EndtxR {
73 EndtxR::new(((self.bits >> 4) & 1) != 0)
74 }
75 #[doc = "Bit 5 - Overrun Error"]
76 #[inline(always)]
77 pub fn ovre(&self) -> OvreR {
78 OvreR::new(((self.bits >> 5) & 1) != 0)
79 }
80 #[doc = "Bit 6 - Framing Error"]
81 #[inline(always)]
82 pub fn frame(&self) -> FrameR {
83 FrameR::new(((self.bits >> 6) & 1) != 0)
84 }
85 #[doc = "Bit 7 - Parity Error"]
86 #[inline(always)]
87 pub fn pare(&self) -> PareR {
88 PareR::new(((self.bits >> 7) & 1) != 0)
89 }
90 #[doc = "Bit 8 - Receiver Time-out"]
91 #[inline(always)]
92 pub fn timeout(&self) -> TimeoutR {
93 TimeoutR::new(((self.bits >> 8) & 1) != 0)
94 }
95 #[doc = "Bit 9 - Transmitter Empty"]
96 #[inline(always)]
97 pub fn txempty(&self) -> TxemptyR {
98 TxemptyR::new(((self.bits >> 9) & 1) != 0)
99 }
100 #[doc = "Bit 10 - Max Number of Repetitions Reached"]
101 #[inline(always)]
102 pub fn iter(&self) -> IterR {
103 IterR::new(((self.bits >> 10) & 1) != 0)
104 }
105 #[doc = "Bit 11 - Transmission Buffer Empty"]
106 #[inline(always)]
107 pub fn txbufe(&self) -> TxbufeR {
108 TxbufeR::new(((self.bits >> 11) & 1) != 0)
109 }
110 #[doc = "Bit 12 - Reception Buffer Full"]
111 #[inline(always)]
112 pub fn rxbuff(&self) -> RxbuffR {
113 RxbuffR::new(((self.bits >> 12) & 1) != 0)
114 }
115 #[doc = "Bit 13 - Non AcknowledgeInterrupt"]
116 #[inline(always)]
117 pub fn nack(&self) -> NackR {
118 NackR::new(((self.bits >> 13) & 1) != 0)
119 }
120 #[doc = "Bit 16 - Ring Indicator Input Change Flag"]
121 #[inline(always)]
122 pub fn riic(&self) -> RiicR {
123 RiicR::new(((self.bits >> 16) & 1) != 0)
124 }
125 #[doc = "Bit 17 - Data Set Ready Input Change Flag"]
126 #[inline(always)]
127 pub fn dsric(&self) -> DsricR {
128 DsricR::new(((self.bits >> 17) & 1) != 0)
129 }
130 #[doc = "Bit 18 - Data Carrier Detect Input Change Flag"]
131 #[inline(always)]
132 pub fn dcdic(&self) -> DcdicR {
133 DcdicR::new(((self.bits >> 18) & 1) != 0)
134 }
135 #[doc = "Bit 19 - Clear to Send Input Change Flag"]
136 #[inline(always)]
137 pub fn ctsic(&self) -> CtsicR {
138 CtsicR::new(((self.bits >> 19) & 1) != 0)
139 }
140 #[doc = "Bit 20 - Image of RI Input"]
141 #[inline(always)]
142 pub fn ri(&self) -> RiR {
143 RiR::new(((self.bits >> 20) & 1) != 0)
144 }
145 #[doc = "Bit 21 - Image of DSR Input"]
146 #[inline(always)]
147 pub fn dsr(&self) -> DsrR {
148 DsrR::new(((self.bits >> 21) & 1) != 0)
149 }
150 #[doc = "Bit 22 - Image of DCD Input"]
151 #[inline(always)]
152 pub fn dcd(&self) -> DcdR {
153 DcdR::new(((self.bits >> 22) & 1) != 0)
154 }
155 #[doc = "Bit 23 - Image of CTS Input"]
156 #[inline(always)]
157 pub fn cts(&self) -> CtsR {
158 CtsR::new(((self.bits >> 23) & 1) != 0)
159 }
160 #[doc = "Bit 24 - Manchester Error"]
161 #[inline(always)]
162 pub fn manerr(&self) -> ManerrR {
163 ManerrR::new(((self.bits >> 24) & 1) != 0)
164 }
165}
166#[doc = "Channel Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`csr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
167pub struct CsrSpec;
168impl crate::RegisterSpec for CsrSpec {
169 type Ux = u32;
170}
171#[doc = "`read()` method returns [`csr::R`](R) reader structure"]
172impl crate::Readable for CsrSpec {}