py32f0/py32f003/dbg/
apb_fz1.rs1pub struct R(crate::R<APB_FZ1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<APB_FZ1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<APB_FZ1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<APB_FZ1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16pub struct W(crate::W<APB_FZ1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<APB_FZ1_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<APB_FZ1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<APB_FZ1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37pub type DBG_TIMER3_STOP_R = crate::BitReader<DBG_TIMER3_STOP_A>;
39#[derive(Clone, Copy, Debug, PartialEq, Eq)]
43pub enum DBG_TIMER3_STOP_A {
44 Continue = 0,
46 Stop = 1,
48}
49impl From<DBG_TIMER3_STOP_A> for bool {
50 #[inline(always)]
51 fn from(variant: DBG_TIMER3_STOP_A) -> Self {
52 variant as u8 != 0
53 }
54}
55impl DBG_TIMER3_STOP_R {
56 #[inline(always)]
58 pub fn variant(&self) -> DBG_TIMER3_STOP_A {
59 match self.bits {
60 false => DBG_TIMER3_STOP_A::Continue,
61 true => DBG_TIMER3_STOP_A::Stop,
62 }
63 }
64 #[inline(always)]
66 pub fn is_continue(&self) -> bool {
67 *self == DBG_TIMER3_STOP_A::Continue
68 }
69 #[inline(always)]
71 pub fn is_stop(&self) -> bool {
72 *self == DBG_TIMER3_STOP_A::Stop
73 }
74}
75pub type DBG_TIMER3_STOP_W<'a, const O: u8> =
77 crate::BitWriter<'a, u32, APB_FZ1_SPEC, DBG_TIMER3_STOP_A, O>;
78impl<'a, const O: u8> DBG_TIMER3_STOP_W<'a, O> {
79 #[inline(always)]
81 pub fn continue_(self) -> &'a mut W {
82 self.variant(DBG_TIMER3_STOP_A::Continue)
83 }
84 #[inline(always)]
86 pub fn stop(self) -> &'a mut W {
87 self.variant(DBG_TIMER3_STOP_A::Stop)
88 }
89}
90pub type DBG_RTC_STOP_R = crate::BitReader<DBG_RTC_STOP_A>;
92#[derive(Clone, Copy, Debug, PartialEq, Eq)]
96pub enum DBG_RTC_STOP_A {
97 Continue = 0,
99 Stop = 1,
101}
102impl From<DBG_RTC_STOP_A> for bool {
103 #[inline(always)]
104 fn from(variant: DBG_RTC_STOP_A) -> Self {
105 variant as u8 != 0
106 }
107}
108impl DBG_RTC_STOP_R {
109 #[inline(always)]
111 pub fn variant(&self) -> DBG_RTC_STOP_A {
112 match self.bits {
113 false => DBG_RTC_STOP_A::Continue,
114 true => DBG_RTC_STOP_A::Stop,
115 }
116 }
117 #[inline(always)]
119 pub fn is_continue(&self) -> bool {
120 *self == DBG_RTC_STOP_A::Continue
121 }
122 #[inline(always)]
124 pub fn is_stop(&self) -> bool {
125 *self == DBG_RTC_STOP_A::Stop
126 }
127}
128pub type DBG_RTC_STOP_W<'a, const O: u8> =
130 crate::BitWriter<'a, u32, APB_FZ1_SPEC, DBG_RTC_STOP_A, O>;
131impl<'a, const O: u8> DBG_RTC_STOP_W<'a, O> {
132 #[inline(always)]
134 pub fn continue_(self) -> &'a mut W {
135 self.variant(DBG_RTC_STOP_A::Continue)
136 }
137 #[inline(always)]
139 pub fn stop(self) -> &'a mut W {
140 self.variant(DBG_RTC_STOP_A::Stop)
141 }
142}
143pub type DBG_WWDG_STOP_R = crate::BitReader<DBG_WWDG_STOP_A>;
145#[derive(Clone, Copy, Debug, PartialEq, Eq)]
149pub enum DBG_WWDG_STOP_A {
150 Continue = 0,
152 Stop = 1,
154}
155impl From<DBG_WWDG_STOP_A> for bool {
156 #[inline(always)]
157 fn from(variant: DBG_WWDG_STOP_A) -> Self {
158 variant as u8 != 0
159 }
160}
161impl DBG_WWDG_STOP_R {
162 #[inline(always)]
164 pub fn variant(&self) -> DBG_WWDG_STOP_A {
165 match self.bits {
166 false => DBG_WWDG_STOP_A::Continue,
167 true => DBG_WWDG_STOP_A::Stop,
168 }
169 }
170 #[inline(always)]
172 pub fn is_continue(&self) -> bool {
173 *self == DBG_WWDG_STOP_A::Continue
174 }
175 #[inline(always)]
177 pub fn is_stop(&self) -> bool {
178 *self == DBG_WWDG_STOP_A::Stop
179 }
180}
181pub type DBG_WWDG_STOP_W<'a, const O: u8> =
183 crate::BitWriter<'a, u32, APB_FZ1_SPEC, DBG_WWDG_STOP_A, O>;
184impl<'a, const O: u8> DBG_WWDG_STOP_W<'a, O> {
185 #[inline(always)]
187 pub fn continue_(self) -> &'a mut W {
188 self.variant(DBG_WWDG_STOP_A::Continue)
189 }
190 #[inline(always)]
192 pub fn stop(self) -> &'a mut W {
193 self.variant(DBG_WWDG_STOP_A::Stop)
194 }
195}
196pub type DBG_IWDG_STOP_R = crate::BitReader<DBG_IWDG_STOP_A>;
198#[derive(Clone, Copy, Debug, PartialEq, Eq)]
202pub enum DBG_IWDG_STOP_A {
203 Continue = 0,
205 Stop = 1,
207}
208impl From<DBG_IWDG_STOP_A> for bool {
209 #[inline(always)]
210 fn from(variant: DBG_IWDG_STOP_A) -> Self {
211 variant as u8 != 0
212 }
213}
214impl DBG_IWDG_STOP_R {
215 #[inline(always)]
217 pub fn variant(&self) -> DBG_IWDG_STOP_A {
218 match self.bits {
219 false => DBG_IWDG_STOP_A::Continue,
220 true => DBG_IWDG_STOP_A::Stop,
221 }
222 }
223 #[inline(always)]
225 pub fn is_continue(&self) -> bool {
226 *self == DBG_IWDG_STOP_A::Continue
227 }
228 #[inline(always)]
230 pub fn is_stop(&self) -> bool {
231 *self == DBG_IWDG_STOP_A::Stop
232 }
233}
234pub type DBG_IWDG_STOP_W<'a, const O: u8> =
236 crate::BitWriter<'a, u32, APB_FZ1_SPEC, DBG_IWDG_STOP_A, O>;
237impl<'a, const O: u8> DBG_IWDG_STOP_W<'a, O> {
238 #[inline(always)]
240 pub fn continue_(self) -> &'a mut W {
241 self.variant(DBG_IWDG_STOP_A::Continue)
242 }
243 #[inline(always)]
245 pub fn stop(self) -> &'a mut W {
246 self.variant(DBG_IWDG_STOP_A::Stop)
247 }
248}
249pub type DBG_LPTIM_STOP_R = crate::BitReader<DBG_LPTIM_STOP_A>;
251#[derive(Clone, Copy, Debug, PartialEq, Eq)]
255pub enum DBG_LPTIM_STOP_A {
256 Continue = 0,
258 Stop = 1,
260}
261impl From<DBG_LPTIM_STOP_A> for bool {
262 #[inline(always)]
263 fn from(variant: DBG_LPTIM_STOP_A) -> Self {
264 variant as u8 != 0
265 }
266}
267impl DBG_LPTIM_STOP_R {
268 #[inline(always)]
270 pub fn variant(&self) -> DBG_LPTIM_STOP_A {
271 match self.bits {
272 false => DBG_LPTIM_STOP_A::Continue,
273 true => DBG_LPTIM_STOP_A::Stop,
274 }
275 }
276 #[inline(always)]
278 pub fn is_continue(&self) -> bool {
279 *self == DBG_LPTIM_STOP_A::Continue
280 }
281 #[inline(always)]
283 pub fn is_stop(&self) -> bool {
284 *self == DBG_LPTIM_STOP_A::Stop
285 }
286}
287pub type DBG_LPTIM_STOP_W<'a, const O: u8> =
289 crate::BitWriter<'a, u32, APB_FZ1_SPEC, DBG_LPTIM_STOP_A, O>;
290impl<'a, const O: u8> DBG_LPTIM_STOP_W<'a, O> {
291 #[inline(always)]
293 pub fn continue_(self) -> &'a mut W {
294 self.variant(DBG_LPTIM_STOP_A::Continue)
295 }
296 #[inline(always)]
298 pub fn stop(self) -> &'a mut W {
299 self.variant(DBG_LPTIM_STOP_A::Stop)
300 }
301}
302impl R {
303 #[inline(always)]
305 pub fn dbg_timer3_stop(&self) -> DBG_TIMER3_STOP_R {
306 DBG_TIMER3_STOP_R::new(((self.bits >> 1) & 1) != 0)
307 }
308 #[inline(always)]
310 pub fn dbg_rtc_stop(&self) -> DBG_RTC_STOP_R {
311 DBG_RTC_STOP_R::new(((self.bits >> 10) & 1) != 0)
312 }
313 #[inline(always)]
315 pub fn dbg_wwdg_stop(&self) -> DBG_WWDG_STOP_R {
316 DBG_WWDG_STOP_R::new(((self.bits >> 11) & 1) != 0)
317 }
318 #[inline(always)]
320 pub fn dbg_iwdg_stop(&self) -> DBG_IWDG_STOP_R {
321 DBG_IWDG_STOP_R::new(((self.bits >> 12) & 1) != 0)
322 }
323 #[inline(always)]
325 pub fn dbg_lptim_stop(&self) -> DBG_LPTIM_STOP_R {
326 DBG_LPTIM_STOP_R::new(((self.bits >> 31) & 1) != 0)
327 }
328}
329impl W {
330 #[inline(always)]
332 #[must_use]
333 pub fn dbg_timer3_stop(&mut self) -> DBG_TIMER3_STOP_W<1> {
334 DBG_TIMER3_STOP_W::new(self)
335 }
336 #[inline(always)]
338 #[must_use]
339 pub fn dbg_rtc_stop(&mut self) -> DBG_RTC_STOP_W<10> {
340 DBG_RTC_STOP_W::new(self)
341 }
342 #[inline(always)]
344 #[must_use]
345 pub fn dbg_wwdg_stop(&mut self) -> DBG_WWDG_STOP_W<11> {
346 DBG_WWDG_STOP_W::new(self)
347 }
348 #[inline(always)]
350 #[must_use]
351 pub fn dbg_iwdg_stop(&mut self) -> DBG_IWDG_STOP_W<12> {
352 DBG_IWDG_STOP_W::new(self)
353 }
354 #[inline(always)]
356 #[must_use]
357 pub fn dbg_lptim_stop(&mut self) -> DBG_LPTIM_STOP_W<31> {
358 DBG_LPTIM_STOP_W::new(self)
359 }
360 #[inline(always)]
362 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
363 self.0.bits(bits);
364 self
365 }
366}
367pub struct APB_FZ1_SPEC;
373impl crate::RegisterSpec for APB_FZ1_SPEC {
374 type Ux = u32;
375}
376impl crate::Readable for APB_FZ1_SPEC {
378 type Reader = R;
379}
380impl crate::Writable for APB_FZ1_SPEC {
382 type Writer = W;
383 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
384 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
385}
386impl crate::Resettable for APB_FZ1_SPEC {
388 const RESET_VALUE: Self::Ux = 0;
389}