stm32f3_staging/stm32f373/cec/
isr.rs1pub type R = crate::R<ISRrs>;
3pub type W = crate::W<ISRrs>;
5pub type RXBR_R = crate::BitReader;
7pub type RXBR_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type RXEND_R = crate::BitReader;
11pub type RXEND_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type RXOVR_R = crate::BitReader;
15pub type RXOVR_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type BRE_R = crate::BitReader;
19pub type BRE_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type SBPE_R = crate::BitReader;
23pub type SBPE_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type LBPE_R = crate::BitReader;
27pub type LBPE_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type RXACKE_R = crate::BitReader;
31pub type RXACKE_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type ARBLST_R = crate::BitReader;
35pub type ARBLST_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type TXBR_R = crate::BitReader;
39pub type TXBR_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type TXEND_R = crate::BitReader;
43pub type TXEND_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type TXUDR_R = crate::BitReader;
47pub type TXUDR_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type TXERR_R = crate::BitReader;
51pub type TXERR_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type TXACKE_R = crate::BitReader;
55pub type TXACKE_W<'a, REG> = crate::BitWriter<'a, REG>;
57impl R {
58 #[inline(always)]
60 pub fn rxbr(&self) -> RXBR_R {
61 RXBR_R::new((self.bits & 1) != 0)
62 }
63 #[inline(always)]
65 pub fn rxend(&self) -> RXEND_R {
66 RXEND_R::new(((self.bits >> 1) & 1) != 0)
67 }
68 #[inline(always)]
70 pub fn rxovr(&self) -> RXOVR_R {
71 RXOVR_R::new(((self.bits >> 2) & 1) != 0)
72 }
73 #[inline(always)]
75 pub fn bre(&self) -> BRE_R {
76 BRE_R::new(((self.bits >> 3) & 1) != 0)
77 }
78 #[inline(always)]
80 pub fn sbpe(&self) -> SBPE_R {
81 SBPE_R::new(((self.bits >> 4) & 1) != 0)
82 }
83 #[inline(always)]
85 pub fn lbpe(&self) -> LBPE_R {
86 LBPE_R::new(((self.bits >> 5) & 1) != 0)
87 }
88 #[inline(always)]
90 pub fn rxacke(&self) -> RXACKE_R {
91 RXACKE_R::new(((self.bits >> 6) & 1) != 0)
92 }
93 #[inline(always)]
95 pub fn arblst(&self) -> ARBLST_R {
96 ARBLST_R::new(((self.bits >> 7) & 1) != 0)
97 }
98 #[inline(always)]
100 pub fn txbr(&self) -> TXBR_R {
101 TXBR_R::new(((self.bits >> 8) & 1) != 0)
102 }
103 #[inline(always)]
105 pub fn txend(&self) -> TXEND_R {
106 TXEND_R::new(((self.bits >> 9) & 1) != 0)
107 }
108 #[inline(always)]
110 pub fn txudr(&self) -> TXUDR_R {
111 TXUDR_R::new(((self.bits >> 10) & 1) != 0)
112 }
113 #[inline(always)]
115 pub fn txerr(&self) -> TXERR_R {
116 TXERR_R::new(((self.bits >> 11) & 1) != 0)
117 }
118 #[inline(always)]
120 pub fn txacke(&self) -> TXACKE_R {
121 TXACKE_R::new(((self.bits >> 12) & 1) != 0)
122 }
123}
124impl core::fmt::Debug for R {
125 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
126 f.debug_struct("ISR")
127 .field("txacke", &self.txacke())
128 .field("txerr", &self.txerr())
129 .field("txudr", &self.txudr())
130 .field("txend", &self.txend())
131 .field("txbr", &self.txbr())
132 .field("arblst", &self.arblst())
133 .field("rxacke", &self.rxacke())
134 .field("lbpe", &self.lbpe())
135 .field("sbpe", &self.sbpe())
136 .field("bre", &self.bre())
137 .field("rxovr", &self.rxovr())
138 .field("rxend", &self.rxend())
139 .field("rxbr", &self.rxbr())
140 .finish()
141 }
142}
143impl W {
144 #[inline(always)]
146 pub fn rxbr(&mut self) -> RXBR_W<ISRrs> {
147 RXBR_W::new(self, 0)
148 }
149 #[inline(always)]
151 pub fn rxend(&mut self) -> RXEND_W<ISRrs> {
152 RXEND_W::new(self, 1)
153 }
154 #[inline(always)]
156 pub fn rxovr(&mut self) -> RXOVR_W<ISRrs> {
157 RXOVR_W::new(self, 2)
158 }
159 #[inline(always)]
161 pub fn bre(&mut self) -> BRE_W<ISRrs> {
162 BRE_W::new(self, 3)
163 }
164 #[inline(always)]
166 pub fn sbpe(&mut self) -> SBPE_W<ISRrs> {
167 SBPE_W::new(self, 4)
168 }
169 #[inline(always)]
171 pub fn lbpe(&mut self) -> LBPE_W<ISRrs> {
172 LBPE_W::new(self, 5)
173 }
174 #[inline(always)]
176 pub fn rxacke(&mut self) -> RXACKE_W<ISRrs> {
177 RXACKE_W::new(self, 6)
178 }
179 #[inline(always)]
181 pub fn arblst(&mut self) -> ARBLST_W<ISRrs> {
182 ARBLST_W::new(self, 7)
183 }
184 #[inline(always)]
186 pub fn txbr(&mut self) -> TXBR_W<ISRrs> {
187 TXBR_W::new(self, 8)
188 }
189 #[inline(always)]
191 pub fn txend(&mut self) -> TXEND_W<ISRrs> {
192 TXEND_W::new(self, 9)
193 }
194 #[inline(always)]
196 pub fn txudr(&mut self) -> TXUDR_W<ISRrs> {
197 TXUDR_W::new(self, 10)
198 }
199 #[inline(always)]
201 pub fn txerr(&mut self) -> TXERR_W<ISRrs> {
202 TXERR_W::new(self, 11)
203 }
204 #[inline(always)]
206 pub fn txacke(&mut self) -> TXACKE_W<ISRrs> {
207 TXACKE_W::new(self, 12)
208 }
209}
210pub struct ISRrs;
216impl crate::RegisterSpec for ISRrs {
217 type Ux = u32;
218}
219impl crate::Readable for ISRrs {}
221impl crate::Writable for ISRrs {
223 type Safety = crate::Unsafe;
224 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
225 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
226}
227impl crate::Resettable for ISRrs {
229 const RESET_VALUE: u32 = 0;
230}