stm32f2/stm32f217/dbgmcu/
apb1_fz.rs1pub type R = crate::R<APB1_FZrs>;
3pub type W = crate::W<APB1_FZrs>;
5pub type DBG_TIM2_STOP_R = crate::BitReader;
7pub type DBG_TIM2_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type DBG_TIM3_STOP_R = crate::BitReader;
11pub type DBG_TIM3_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type DBG_TIM4_STOP_R = crate::BitReader;
15pub type DBG_TIM4_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type DBG_TIM5_STOP_R = crate::BitReader;
19pub type DBG_TIM5_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type DBG_TIM6_STOP_R = crate::BitReader;
23pub type DBG_TIM6_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type DBG_TIM7_STOP_R = crate::BitReader;
27pub type DBG_TIM7_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type DBG_TIM12_STOP_R = crate::BitReader;
31pub type DBG_TIM12_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type DBG_TIM13_STOP_R = crate::BitReader;
35pub type DBG_TIM13_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type DBG_TIM14_STOP_R = crate::BitReader;
39pub type DBG_TIM14_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type DBG_WWDG_STOP_R = crate::BitReader;
43pub type DBG_WWDG_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type DBG_IWDG_STOP_R = crate::BitReader;
47pub type DBG_IWDG_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type DBG_J2C1_SMBUS_TIMEOUT_R = crate::BitReader;
51pub type DBG_J2C1_SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type DBG_J2C2_SMBUS_TIMEOUT_R = crate::BitReader;
55pub type DBG_J2C2_SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
57pub type DBG_J2C3SMBUS_TIMEOUT_R = crate::BitReader;
59pub type DBG_J2C3SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
61pub type DBG_CAN1_STOP_R = crate::BitReader;
63pub type DBG_CAN1_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
65pub type DBG_CAN2_STOP_R = crate::BitReader;
67pub type DBG_CAN2_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
69impl R {
70 #[inline(always)]
72 pub fn dbg_tim2_stop(&self) -> DBG_TIM2_STOP_R {
73 DBG_TIM2_STOP_R::new((self.bits & 1) != 0)
74 }
75 #[inline(always)]
77 pub fn dbg_tim3_stop(&self) -> DBG_TIM3_STOP_R {
78 DBG_TIM3_STOP_R::new(((self.bits >> 1) & 1) != 0)
79 }
80 #[inline(always)]
82 pub fn dbg_tim4_stop(&self) -> DBG_TIM4_STOP_R {
83 DBG_TIM4_STOP_R::new(((self.bits >> 2) & 1) != 0)
84 }
85 #[inline(always)]
87 pub fn dbg_tim5_stop(&self) -> DBG_TIM5_STOP_R {
88 DBG_TIM5_STOP_R::new(((self.bits >> 3) & 1) != 0)
89 }
90 #[inline(always)]
92 pub fn dbg_tim6_stop(&self) -> DBG_TIM6_STOP_R {
93 DBG_TIM6_STOP_R::new(((self.bits >> 4) & 1) != 0)
94 }
95 #[inline(always)]
97 pub fn dbg_tim7_stop(&self) -> DBG_TIM7_STOP_R {
98 DBG_TIM7_STOP_R::new(((self.bits >> 5) & 1) != 0)
99 }
100 #[inline(always)]
102 pub fn dbg_tim12_stop(&self) -> DBG_TIM12_STOP_R {
103 DBG_TIM12_STOP_R::new(((self.bits >> 6) & 1) != 0)
104 }
105 #[inline(always)]
107 pub fn dbg_tim13_stop(&self) -> DBG_TIM13_STOP_R {
108 DBG_TIM13_STOP_R::new(((self.bits >> 7) & 1) != 0)
109 }
110 #[inline(always)]
112 pub fn dbg_tim14_stop(&self) -> DBG_TIM14_STOP_R {
113 DBG_TIM14_STOP_R::new(((self.bits >> 8) & 1) != 0)
114 }
115 #[inline(always)]
117 pub fn dbg_wwdg_stop(&self) -> DBG_WWDG_STOP_R {
118 DBG_WWDG_STOP_R::new(((self.bits >> 11) & 1) != 0)
119 }
120 #[inline(always)]
122 pub fn dbg_iwdg_stop(&self) -> DBG_IWDG_STOP_R {
123 DBG_IWDG_STOP_R::new(((self.bits >> 12) & 1) != 0)
124 }
125 #[inline(always)]
127 pub fn dbg_j2c1_smbus_timeout(&self) -> DBG_J2C1_SMBUS_TIMEOUT_R {
128 DBG_J2C1_SMBUS_TIMEOUT_R::new(((self.bits >> 21) & 1) != 0)
129 }
130 #[inline(always)]
132 pub fn dbg_j2c2_smbus_timeout(&self) -> DBG_J2C2_SMBUS_TIMEOUT_R {
133 DBG_J2C2_SMBUS_TIMEOUT_R::new(((self.bits >> 22) & 1) != 0)
134 }
135 #[inline(always)]
137 pub fn dbg_j2c3smbus_timeout(&self) -> DBG_J2C3SMBUS_TIMEOUT_R {
138 DBG_J2C3SMBUS_TIMEOUT_R::new(((self.bits >> 23) & 1) != 0)
139 }
140 #[inline(always)]
142 pub fn dbg_can1_stop(&self) -> DBG_CAN1_STOP_R {
143 DBG_CAN1_STOP_R::new(((self.bits >> 25) & 1) != 0)
144 }
145 #[inline(always)]
147 pub fn dbg_can2_stop(&self) -> DBG_CAN2_STOP_R {
148 DBG_CAN2_STOP_R::new(((self.bits >> 26) & 1) != 0)
149 }
150}
151impl core::fmt::Debug for R {
152 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
153 f.debug_struct("APB1_FZ")
154 .field("dbg_tim2_stop", &self.dbg_tim2_stop())
155 .field("dbg_tim3_stop", &self.dbg_tim3_stop())
156 .field("dbg_tim4_stop", &self.dbg_tim4_stop())
157 .field("dbg_tim5_stop", &self.dbg_tim5_stop())
158 .field("dbg_tim6_stop", &self.dbg_tim6_stop())
159 .field("dbg_tim7_stop", &self.dbg_tim7_stop())
160 .field("dbg_tim12_stop", &self.dbg_tim12_stop())
161 .field("dbg_tim13_stop", &self.dbg_tim13_stop())
162 .field("dbg_tim14_stop", &self.dbg_tim14_stop())
163 .field("dbg_wwdg_stop", &self.dbg_wwdg_stop())
164 .field("dbg_iwdg_stop", &self.dbg_iwdg_stop())
165 .field("dbg_j2c1_smbus_timeout", &self.dbg_j2c1_smbus_timeout())
166 .field("dbg_j2c2_smbus_timeout", &self.dbg_j2c2_smbus_timeout())
167 .field("dbg_j2c3smbus_timeout", &self.dbg_j2c3smbus_timeout())
168 .field("dbg_can1_stop", &self.dbg_can1_stop())
169 .field("dbg_can2_stop", &self.dbg_can2_stop())
170 .finish()
171 }
172}
173impl W {
174 #[inline(always)]
176 pub fn dbg_tim2_stop(&mut self) -> DBG_TIM2_STOP_W<APB1_FZrs> {
177 DBG_TIM2_STOP_W::new(self, 0)
178 }
179 #[inline(always)]
181 pub fn dbg_tim3_stop(&mut self) -> DBG_TIM3_STOP_W<APB1_FZrs> {
182 DBG_TIM3_STOP_W::new(self, 1)
183 }
184 #[inline(always)]
186 pub fn dbg_tim4_stop(&mut self) -> DBG_TIM4_STOP_W<APB1_FZrs> {
187 DBG_TIM4_STOP_W::new(self, 2)
188 }
189 #[inline(always)]
191 pub fn dbg_tim5_stop(&mut self) -> DBG_TIM5_STOP_W<APB1_FZrs> {
192 DBG_TIM5_STOP_W::new(self, 3)
193 }
194 #[inline(always)]
196 pub fn dbg_tim6_stop(&mut self) -> DBG_TIM6_STOP_W<APB1_FZrs> {
197 DBG_TIM6_STOP_W::new(self, 4)
198 }
199 #[inline(always)]
201 pub fn dbg_tim7_stop(&mut self) -> DBG_TIM7_STOP_W<APB1_FZrs> {
202 DBG_TIM7_STOP_W::new(self, 5)
203 }
204 #[inline(always)]
206 pub fn dbg_tim12_stop(&mut self) -> DBG_TIM12_STOP_W<APB1_FZrs> {
207 DBG_TIM12_STOP_W::new(self, 6)
208 }
209 #[inline(always)]
211 pub fn dbg_tim13_stop(&mut self) -> DBG_TIM13_STOP_W<APB1_FZrs> {
212 DBG_TIM13_STOP_W::new(self, 7)
213 }
214 #[inline(always)]
216 pub fn dbg_tim14_stop(&mut self) -> DBG_TIM14_STOP_W<APB1_FZrs> {
217 DBG_TIM14_STOP_W::new(self, 8)
218 }
219 #[inline(always)]
221 pub fn dbg_wwdg_stop(&mut self) -> DBG_WWDG_STOP_W<APB1_FZrs> {
222 DBG_WWDG_STOP_W::new(self, 11)
223 }
224 #[inline(always)]
226 pub fn dbg_iwdg_stop(&mut self) -> DBG_IWDG_STOP_W<APB1_FZrs> {
227 DBG_IWDG_STOP_W::new(self, 12)
228 }
229 #[inline(always)]
231 pub fn dbg_j2c1_smbus_timeout(&mut self) -> DBG_J2C1_SMBUS_TIMEOUT_W<APB1_FZrs> {
232 DBG_J2C1_SMBUS_TIMEOUT_W::new(self, 21)
233 }
234 #[inline(always)]
236 pub fn dbg_j2c2_smbus_timeout(&mut self) -> DBG_J2C2_SMBUS_TIMEOUT_W<APB1_FZrs> {
237 DBG_J2C2_SMBUS_TIMEOUT_W::new(self, 22)
238 }
239 #[inline(always)]
241 pub fn dbg_j2c3smbus_timeout(&mut self) -> DBG_J2C3SMBUS_TIMEOUT_W<APB1_FZrs> {
242 DBG_J2C3SMBUS_TIMEOUT_W::new(self, 23)
243 }
244 #[inline(always)]
246 pub fn dbg_can1_stop(&mut self) -> DBG_CAN1_STOP_W<APB1_FZrs> {
247 DBG_CAN1_STOP_W::new(self, 25)
248 }
249 #[inline(always)]
251 pub fn dbg_can2_stop(&mut self) -> DBG_CAN2_STOP_W<APB1_FZrs> {
252 DBG_CAN2_STOP_W::new(self, 26)
253 }
254}
255pub struct APB1_FZrs;
261impl crate::RegisterSpec for APB1_FZrs {
262 type Ux = u32;
263}
264impl crate::Readable for APB1_FZrs {}
266impl crate::Writable for APB1_FZrs {
268 type Safety = crate::Unsafe;
269}
270impl crate::Resettable for APB1_FZrs {}