stm32wb_pac/usart1/
isr.rs1#[doc = "Reader of register ISR"]
2pub type R = crate::R<u32, super::ISR>;
3#[doc = "Reader of field `TXFT`"]
4pub type TXFT_R = crate::R<bool, bool>;
5#[doc = "Reader of field `RXFT`"]
6pub type RXFT_R = crate::R<bool, bool>;
7#[doc = "Reader of field `TCBGT`"]
8pub type TCBGT_R = crate::R<bool, bool>;
9#[doc = "Reader of field `RXFF`"]
10pub type RXFF_R = crate::R<bool, bool>;
11#[doc = "Reader of field `TXFE`"]
12pub type TXFE_R = crate::R<bool, bool>;
13#[doc = "Reader of field `REACK`"]
14pub type REACK_R = crate::R<bool, bool>;
15#[doc = "Reader of field `TEACK`"]
16pub type TEACK_R = crate::R<bool, bool>;
17#[doc = "Reader of field `WUF`"]
18pub type WUF_R = crate::R<bool, bool>;
19#[doc = "Reader of field `RWU`"]
20pub type RWU_R = crate::R<bool, bool>;
21#[doc = "Reader of field `SBKF`"]
22pub type SBKF_R = crate::R<bool, bool>;
23#[doc = "Reader of field `CMF`"]
24pub type CMF_R = crate::R<bool, bool>;
25#[doc = "Reader of field `BUSY`"]
26pub type BUSY_R = crate::R<bool, bool>;
27#[doc = "Reader of field `ABRF`"]
28pub type ABRF_R = crate::R<bool, bool>;
29#[doc = "Reader of field `ABRE`"]
30pub type ABRE_R = crate::R<bool, bool>;
31#[doc = "Reader of field `UDR`"]
32pub type UDR_R = crate::R<bool, bool>;
33#[doc = "Reader of field `EOBF`"]
34pub type EOBF_R = crate::R<bool, bool>;
35#[doc = "Reader of field `RTOF`"]
36pub type RTOF_R = crate::R<bool, bool>;
37#[doc = "Reader of field `CTS`"]
38pub type CTS_R = crate::R<bool, bool>;
39#[doc = "Reader of field `CTSIF`"]
40pub type CTSIF_R = crate::R<bool, bool>;
41#[doc = "Reader of field `LBDF`"]
42pub type LBDF_R = crate::R<bool, bool>;
43#[doc = "Reader of field `TXE`"]
44pub type TXE_R = crate::R<bool, bool>;
45#[doc = "Reader of field `TC`"]
46pub type TC_R = crate::R<bool, bool>;
47#[doc = "Reader of field `RXNE`"]
48pub type RXNE_R = crate::R<bool, bool>;
49#[doc = "Reader of field `IDLE`"]
50pub type IDLE_R = crate::R<bool, bool>;
51#[doc = "Reader of field `ORE`"]
52pub type ORE_R = crate::R<bool, bool>;
53#[doc = "Reader of field `NF`"]
54pub type NF_R = crate::R<bool, bool>;
55#[doc = "Reader of field `FE`"]
56pub type FE_R = crate::R<bool, bool>;
57#[doc = "Reader of field `PE`"]
58pub type PE_R = crate::R<bool, bool>;
59impl R {
60 #[doc = "Bit 27 - TXFIFO threshold flag"]
61 #[inline(always)]
62 pub fn txft(&self) -> TXFT_R {
63 TXFT_R::new(((self.bits >> 27) & 0x01) != 0)
64 }
65 #[doc = "Bit 26 - RXFIFO threshold flag"]
66 #[inline(always)]
67 pub fn rxft(&self) -> RXFT_R {
68 RXFT_R::new(((self.bits >> 26) & 0x01) != 0)
69 }
70 #[doc = "Bit 25 - Transmission complete before guard time flag"]
71 #[inline(always)]
72 pub fn tcbgt(&self) -> TCBGT_R {
73 TCBGT_R::new(((self.bits >> 25) & 0x01) != 0)
74 }
75 #[doc = "Bit 24 - RXFIFO Full"]
76 #[inline(always)]
77 pub fn rxff(&self) -> RXFF_R {
78 RXFF_R::new(((self.bits >> 24) & 0x01) != 0)
79 }
80 #[doc = "Bit 23 - TXFIFO Empty"]
81 #[inline(always)]
82 pub fn txfe(&self) -> TXFE_R {
83 TXFE_R::new(((self.bits >> 23) & 0x01) != 0)
84 }
85 #[doc = "Bit 22 - REACK"]
86 #[inline(always)]
87 pub fn reack(&self) -> REACK_R {
88 REACK_R::new(((self.bits >> 22) & 0x01) != 0)
89 }
90 #[doc = "Bit 21 - TEACK"]
91 #[inline(always)]
92 pub fn teack(&self) -> TEACK_R {
93 TEACK_R::new(((self.bits >> 21) & 0x01) != 0)
94 }
95 #[doc = "Bit 20 - WUF"]
96 #[inline(always)]
97 pub fn wuf(&self) -> WUF_R {
98 WUF_R::new(((self.bits >> 20) & 0x01) != 0)
99 }
100 #[doc = "Bit 19 - RWU"]
101 #[inline(always)]
102 pub fn rwu(&self) -> RWU_R {
103 RWU_R::new(((self.bits >> 19) & 0x01) != 0)
104 }
105 #[doc = "Bit 18 - SBKF"]
106 #[inline(always)]
107 pub fn sbkf(&self) -> SBKF_R {
108 SBKF_R::new(((self.bits >> 18) & 0x01) != 0)
109 }
110 #[doc = "Bit 17 - CMF"]
111 #[inline(always)]
112 pub fn cmf(&self) -> CMF_R {
113 CMF_R::new(((self.bits >> 17) & 0x01) != 0)
114 }
115 #[doc = "Bit 16 - BUSY"]
116 #[inline(always)]
117 pub fn busy(&self) -> BUSY_R {
118 BUSY_R::new(((self.bits >> 16) & 0x01) != 0)
119 }
120 #[doc = "Bit 15 - ABRF"]
121 #[inline(always)]
122 pub fn abrf(&self) -> ABRF_R {
123 ABRF_R::new(((self.bits >> 15) & 0x01) != 0)
124 }
125 #[doc = "Bit 14 - ABRE"]
126 #[inline(always)]
127 pub fn abre(&self) -> ABRE_R {
128 ABRE_R::new(((self.bits >> 14) & 0x01) != 0)
129 }
130 #[doc = "Bit 13 - SPI slave underrun error flag"]
131 #[inline(always)]
132 pub fn udr(&self) -> UDR_R {
133 UDR_R::new(((self.bits >> 13) & 0x01) != 0)
134 }
135 #[doc = "Bit 12 - EOBF"]
136 #[inline(always)]
137 pub fn eobf(&self) -> EOBF_R {
138 EOBF_R::new(((self.bits >> 12) & 0x01) != 0)
139 }
140 #[doc = "Bit 11 - RTOF"]
141 #[inline(always)]
142 pub fn rtof(&self) -> RTOF_R {
143 RTOF_R::new(((self.bits >> 11) & 0x01) != 0)
144 }
145 #[doc = "Bit 10 - CTS"]
146 #[inline(always)]
147 pub fn cts(&self) -> CTS_R {
148 CTS_R::new(((self.bits >> 10) & 0x01) != 0)
149 }
150 #[doc = "Bit 9 - CTSIF"]
151 #[inline(always)]
152 pub fn ctsif(&self) -> CTSIF_R {
153 CTSIF_R::new(((self.bits >> 9) & 0x01) != 0)
154 }
155 #[doc = "Bit 8 - LBDF"]
156 #[inline(always)]
157 pub fn lbdf(&self) -> LBDF_R {
158 LBDF_R::new(((self.bits >> 8) & 0x01) != 0)
159 }
160 #[doc = "Bit 7 - TXE"]
161 #[inline(always)]
162 pub fn txe(&self) -> TXE_R {
163 TXE_R::new(((self.bits >> 7) & 0x01) != 0)
164 }
165 #[doc = "Bit 6 - TC"]
166 #[inline(always)]
167 pub fn tc(&self) -> TC_R {
168 TC_R::new(((self.bits >> 6) & 0x01) != 0)
169 }
170 #[doc = "Bit 5 - RXNE"]
171 #[inline(always)]
172 pub fn rxne(&self) -> RXNE_R {
173 RXNE_R::new(((self.bits >> 5) & 0x01) != 0)
174 }
175 #[doc = "Bit 4 - IDLE"]
176 #[inline(always)]
177 pub fn idle(&self) -> IDLE_R {
178 IDLE_R::new(((self.bits >> 4) & 0x01) != 0)
179 }
180 #[doc = "Bit 3 - ORE"]
181 #[inline(always)]
182 pub fn ore(&self) -> ORE_R {
183 ORE_R::new(((self.bits >> 3) & 0x01) != 0)
184 }
185 #[doc = "Bit 2 - NF"]
186 #[inline(always)]
187 pub fn nf(&self) -> NF_R {
188 NF_R::new(((self.bits >> 2) & 0x01) != 0)
189 }
190 #[doc = "Bit 1 - FE"]
191 #[inline(always)]
192 pub fn fe(&self) -> FE_R {
193 FE_R::new(((self.bits >> 1) & 0x01) != 0)
194 }
195 #[doc = "Bit 0 - PE"]
196 #[inline(always)]
197 pub fn pe(&self) -> PE_R {
198 PE_R::new((self.bits & 0x01) != 0)
199 }
200}