1#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"TIMER1 registers"]
28unsafe impl ::core::marker::Send for super::Timer1 {}
29unsafe impl ::core::marker::Sync for super::Timer1 {}
30impl super::Timer1 {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "Timer1 value for event on GPIO1"]
38 #[inline(always)]
39 pub const fn timer1_capcnt1_value_reg(
40 &self,
41 ) -> &'static crate::common::Reg<self::Timer1Capcnt1ValueReg_SPEC, crate::common::RW> {
42 unsafe {
43 crate::common::Reg::<self::Timer1Capcnt1ValueReg_SPEC, crate::common::RW>::from_ptr(
44 self._svd2pac_as_ptr().add(12usize),
45 )
46 }
47 }
48
49 #[doc = "Timer1 value for event on GPIO2"]
50 #[inline(always)]
51 pub const fn timer1_capcnt2_value_reg(
52 &self,
53 ) -> &'static crate::common::Reg<self::Timer1Capcnt2ValueReg_SPEC, crate::common::RW> {
54 unsafe {
55 crate::common::Reg::<self::Timer1Capcnt2ValueReg_SPEC, crate::common::RW>::from_ptr(
56 self._svd2pac_as_ptr().add(16usize),
57 )
58 }
59 }
60
61 #[doc = "Timer1 Capture control register"]
62 #[inline(always)]
63 pub const fn timer1_capture_reg(
64 &self,
65 ) -> &'static crate::common::Reg<self::Timer1CaptureReg_SPEC, crate::common::RW> {
66 unsafe {
67 crate::common::Reg::<self::Timer1CaptureReg_SPEC, crate::common::RW>::from_ptr(
68 self._svd2pac_as_ptr().add(4usize),
69 )
70 }
71 }
72
73 #[doc = "Clear event register"]
74 #[inline(always)]
75 pub const fn timer1_clr_event_reg(
76 &self,
77 ) -> &'static crate::common::Reg<self::Timer1ClrEventReg_SPEC, crate::common::RW> {
78 unsafe {
79 crate::common::Reg::<self::Timer1ClrEventReg_SPEC, crate::common::RW>::from_ptr(
80 self._svd2pac_as_ptr().add(20usize),
81 )
82 }
83 }
84
85 #[doc = "Timer1 control register"]
86 #[inline(always)]
87 pub const fn timer1_ctrl_reg(
88 &self,
89 ) -> &'static crate::common::Reg<self::Timer1CtrlReg_SPEC, crate::common::RW> {
90 unsafe {
91 crate::common::Reg::<self::Timer1CtrlReg_SPEC, crate::common::RW>::from_ptr(
92 self._svd2pac_as_ptr().add(0usize),
93 )
94 }
95 }
96
97 #[doc = "Timer1 counter value"]
98 #[inline(always)]
99 pub const fn timer1_status_reg(
100 &self,
101 ) -> &'static crate::common::Reg<self::Timer1StatusReg_SPEC, crate::common::RW> {
102 unsafe {
103 crate::common::Reg::<self::Timer1StatusReg_SPEC, crate::common::RW>::from_ptr(
104 self._svd2pac_as_ptr().add(8usize),
105 )
106 }
107 }
108}
109#[doc(hidden)]
110#[derive(Copy, Clone, Eq, PartialEq)]
111pub struct Timer1Capcnt1ValueReg_SPEC;
112impl crate::sealed::RegSpec for Timer1Capcnt1ValueReg_SPEC {
113 type DataType = u32;
114}
115
116#[doc = "Timer1 value for event on GPIO1"]
117pub type Timer1Capcnt1ValueReg = crate::RegValueT<Timer1Capcnt1ValueReg_SPEC>;
118
119impl Timer1Capcnt1ValueReg {
120 #[doc = "In Counter mode : Not used\nIn Capture mode: Gives the RTC time stamp (high part) when an IN1 event was occurred"]
121 #[inline(always)]
122 pub fn timer1_capcnt1_rtc_high(
123 self,
124 ) -> crate::common::RegisterField<
125 11,
126 0x7ff,
127 1,
128 0,
129 u16,
130 u16,
131 Timer1Capcnt1ValueReg_SPEC,
132 crate::common::R,
133 > {
134 crate::common::RegisterField::<
135 11,
136 0x7ff,
137 1,
138 0,
139 u16,
140 u16,
141 Timer1Capcnt1ValueReg_SPEC,
142 crate::common::R,
143 >::from_register(self, 0)
144 }
145
146 #[doc = "In Counter mode : Gives the number of timer clock cycles minus 1 which was measured during TIMER1_IN1_PERIOD_MAX periods of IN1\nIn Capture mode (TIMER1_IN1_STAMP_TYPE=0) : Gives the Counter value when an IN1 event was occurred\nIn Capture mode (TIMER1_IN1_STAMP_TYPE=1) : Gives the RTC time stamp (low part) when an IN1 event was occurred"]
147 #[inline(always)]
148 pub fn timer1_capcnt1_value(
149 self,
150 ) -> crate::common::RegisterField<
151 0,
152 0x7ff,
153 1,
154 0,
155 u16,
156 u16,
157 Timer1Capcnt1ValueReg_SPEC,
158 crate::common::R,
159 > {
160 crate::common::RegisterField::<
161 0,
162 0x7ff,
163 1,
164 0,
165 u16,
166 u16,
167 Timer1Capcnt1ValueReg_SPEC,
168 crate::common::R,
169 >::from_register(self, 0)
170 }
171}
172impl ::core::default::Default for Timer1Capcnt1ValueReg {
173 #[inline(always)]
174 fn default() -> Timer1Capcnt1ValueReg {
175 <crate::RegValueT<Timer1Capcnt1ValueReg_SPEC> as RegisterValue<_>>::new(0)
176 }
177}
178
179#[doc(hidden)]
180#[derive(Copy, Clone, Eq, PartialEq)]
181pub struct Timer1Capcnt2ValueReg_SPEC;
182impl crate::sealed::RegSpec for Timer1Capcnt2ValueReg_SPEC {
183 type DataType = u32;
184}
185
186#[doc = "Timer1 value for event on GPIO2"]
187pub type Timer1Capcnt2ValueReg = crate::RegValueT<Timer1Capcnt2ValueReg_SPEC>;
188
189impl Timer1Capcnt2ValueReg {
190 #[doc = "In Counter mode : Not used\nIn Capture mode: Gives the RTC time stamp (high part) when an IN2 event was occurred"]
191 #[inline(always)]
192 pub fn timer1_capcnt2_rtc_high(
193 self,
194 ) -> crate::common::RegisterField<
195 11,
196 0x7ff,
197 1,
198 0,
199 u16,
200 u16,
201 Timer1Capcnt2ValueReg_SPEC,
202 crate::common::R,
203 > {
204 crate::common::RegisterField::<
205 11,
206 0x7ff,
207 1,
208 0,
209 u16,
210 u16,
211 Timer1Capcnt2ValueReg_SPEC,
212 crate::common::R,
213 >::from_register(self, 0)
214 }
215
216 #[doc = "In Counter mode : Gives the number of timer clock cycles minus 1 which was measured during TIMER1_IN2_PERIOD_MAX periods of IN2\nIn Capture mode (TIMER1_IN2_STAMP_TYPE=0) : Gives the Counter value when an IN2 event was occurred\nIn Capture mode (TIMER1_IN2_STAMP_TYPE=1) : Gives the RTC time stamp (low part) when an IN2 event was occurred"]
217 #[inline(always)]
218 pub fn timer1_capcnt2_value(
219 self,
220 ) -> crate::common::RegisterField<
221 0,
222 0x7ff,
223 1,
224 0,
225 u16,
226 u16,
227 Timer1Capcnt2ValueReg_SPEC,
228 crate::common::R,
229 > {
230 crate::common::RegisterField::<
231 0,
232 0x7ff,
233 1,
234 0,
235 u16,
236 u16,
237 Timer1Capcnt2ValueReg_SPEC,
238 crate::common::R,
239 >::from_register(self, 0)
240 }
241}
242impl ::core::default::Default for Timer1Capcnt2ValueReg {
243 #[inline(always)]
244 fn default() -> Timer1Capcnt2ValueReg {
245 <crate::RegValueT<Timer1Capcnt2ValueReg_SPEC> as RegisterValue<_>>::new(0)
246 }
247}
248
249#[doc(hidden)]
250#[derive(Copy, Clone, Eq, PartialEq)]
251pub struct Timer1CaptureReg_SPEC;
252impl crate::sealed::RegSpec for Timer1CaptureReg_SPEC {
253 type DataType = u32;
254}
255
256#[doc = "Timer1 Capture control register"]
257pub type Timer1CaptureReg = crate::RegValueT<Timer1CaptureReg_SPEC>;
258
259impl Timer1CaptureReg {
260 #[doc = "0 = On each event store the counter value\n1 = On each event store the RTC time stamp"]
261 #[inline(always)]
262 pub fn timer1_in2_stamp_type(
263 self,
264 ) -> crate::common::RegisterFieldBool<27, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
265 crate::common::RegisterFieldBool::<27,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
266 }
267
268 #[doc = "Gives the number of periods +1 of IN2, in which module counts"]
269 #[inline(always)]
270 pub fn timer1_in2_period_max(
271 self,
272 ) -> crate::common::RegisterField<
273 21,
274 0x3f,
275 1,
276 0,
277 u8,
278 u8,
279 Timer1CaptureReg_SPEC,
280 crate::common::RW,
281 > {
282 crate::common::RegisterField::<
283 21,
284 0x3f,
285 1,
286 0,
287 u8,
288 u8,
289 Timer1CaptureReg_SPEC,
290 crate::common::RW,
291 >::from_register(self, 0)
292 }
293
294 #[doc = "1 = Interrupt is generated when capture is occurred or was counted TIMER1_IN2_PERIOD_MAX\n0 = Interrupt is masked"]
295 #[inline(always)]
296 pub fn timer1_in2_irq_en(
297 self,
298 ) -> crate::common::RegisterFieldBool<20, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
299 crate::common::RegisterFieldBool::<20,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
300 }
301
302 #[doc = "0 = Capture mode\n1 = Count mode"]
303 #[inline(always)]
304 pub fn timer1_in2_count_en(
305 self,
306 ) -> crate::common::RegisterFieldBool<19, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
307 crate::common::RegisterFieldBool::<19,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
308 }
309
310 #[doc = "0 = Rising edge event\n1 = Falling edge event\nit should be written when TIMER1_GPIO2_CONF=0 to prevent false events"]
311 #[inline(always)]
312 pub fn timer1_in2_event_fall_en(
313 self,
314 ) -> crate::common::RegisterFieldBool<18, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
315 crate::common::RegisterFieldBool::<18,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
316 }
317
318 #[doc = "0,13,14,15 = IN2 is not used\n1..12 = Defines the P0 pin (0..11) module will use as IN2"]
319 #[inline(always)]
320 pub fn timer1_gpio2_conf(
321 self,
322 ) -> crate::common::RegisterField<14, 0xf, 1, 0, u8, u8, Timer1CaptureReg_SPEC, crate::common::RW>
323 {
324 crate::common::RegisterField::<
325 14,
326 0xf,
327 1,
328 0,
329 u8,
330 u8,
331 Timer1CaptureReg_SPEC,
332 crate::common::RW,
333 >::from_register(self, 0)
334 }
335
336 #[doc = "0 = On each event store the counter value\n1 = On each event store the RTC time stamp"]
337 #[inline(always)]
338 pub fn timer1_in1_stamp_type(
339 self,
340 ) -> crate::common::RegisterFieldBool<13, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
341 crate::common::RegisterFieldBool::<13,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
342 }
343
344 #[doc = "Gives the number of periods +1 of IN1, in which module counts"]
345 #[inline(always)]
346 pub fn timer1_in1_period_max(
347 self,
348 ) -> crate::common::RegisterField<7, 0x3f, 1, 0, u8, u8, Timer1CaptureReg_SPEC, crate::common::RW>
349 {
350 crate::common::RegisterField::<
351 7,
352 0x3f,
353 1,
354 0,
355 u8,
356 u8,
357 Timer1CaptureReg_SPEC,
358 crate::common::RW,
359 >::from_register(self, 0)
360 }
361
362 #[doc = "1 = Interrupt is generated when capture is occurred or was counted TIMER1_IN1_PERIOD_MAX\n0 = Interrupt is masked"]
363 #[inline(always)]
364 pub fn timer1_in1_irq_en(
365 self,
366 ) -> crate::common::RegisterFieldBool<6, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
367 crate::common::RegisterFieldBool::<6,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
368 }
369
370 #[doc = "0 = Capture mode\n1 = Count mode"]
371 #[inline(always)]
372 pub fn timer1_in1_count_en(
373 self,
374 ) -> crate::common::RegisterFieldBool<5, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
375 crate::common::RegisterFieldBool::<5,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
376 }
377
378 #[doc = "0 = Rising edge event\n1 = Falling edge event\nit should be written when TIMER1_GPIO1_CONF=0 to prevent false events"]
379 #[inline(always)]
380 pub fn timer1_in1_event_fall_en(
381 self,
382 ) -> crate::common::RegisterFieldBool<4, 1, 0, Timer1CaptureReg_SPEC, crate::common::RW> {
383 crate::common::RegisterFieldBool::<4,1,0,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
384 }
385
386 #[doc = "0,13,14,15 = IN1 is not used\n1..12 = Defines the P0 pin (0..11) module will use as IN1"]
387 #[inline(always)]
388 pub fn timer1_gpio1_conf(
389 self,
390 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Timer1CaptureReg_SPEC, crate::common::RW>
391 {
392 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Timer1CaptureReg_SPEC,crate::common::RW>::from_register(self,0)
393 }
394}
395impl ::core::default::Default for Timer1CaptureReg {
396 #[inline(always)]
397 fn default() -> Timer1CaptureReg {
398 <crate::RegValueT<Timer1CaptureReg_SPEC> as RegisterValue<_>>::new(0)
399 }
400}
401
402#[doc(hidden)]
403#[derive(Copy, Clone, Eq, PartialEq)]
404pub struct Timer1ClrEventReg_SPEC;
405impl crate::sealed::RegSpec for Timer1ClrEventReg_SPEC {
406 type DataType = u32;
407}
408
409#[doc = "Clear event register"]
410pub type Timer1ClrEventReg = crate::RegValueT<Timer1ClrEventReg_SPEC>;
411
412impl Timer1ClrEventReg {
413 #[doc = "Write 1 to clear the TIMER1_IN2_EVENT and TIMER1_IN2_OVRFLW"]
414 #[inline(always)]
415 pub fn timer1_clr_in2_event(
416 self,
417 ) -> crate::common::RegisterFieldBool<2, 1, 0, Timer1ClrEventReg_SPEC, crate::common::RW> {
418 crate::common::RegisterFieldBool::<2,1,0,Timer1ClrEventReg_SPEC,crate::common::RW>::from_register(self,0)
419 }
420
421 #[doc = "Write 1 to clear the TIMER1_IN1_EVENT and TIMER1_IN1_OVRFLW"]
422 #[inline(always)]
423 pub fn timer1_clr_in1_event(
424 self,
425 ) -> crate::common::RegisterFieldBool<1, 1, 0, Timer1ClrEventReg_SPEC, crate::common::RW> {
426 crate::common::RegisterFieldBool::<1,1,0,Timer1ClrEventReg_SPEC,crate::common::RW>::from_register(self,0)
427 }
428
429 #[doc = "Write 1 to clear the TIMER1_TIMER_EVENT"]
430 #[inline(always)]
431 pub fn timer1_clr_timer_event(
432 self,
433 ) -> crate::common::RegisterFieldBool<0, 1, 0, Timer1ClrEventReg_SPEC, crate::common::RW> {
434 crate::common::RegisterFieldBool::<0,1,0,Timer1ClrEventReg_SPEC,crate::common::RW>::from_register(self,0)
435 }
436}
437impl ::core::default::Default for Timer1ClrEventReg {
438 #[inline(always)]
439 fn default() -> Timer1ClrEventReg {
440 <crate::RegValueT<Timer1ClrEventReg_SPEC> as RegisterValue<_>>::new(0)
441 }
442}
443
444#[doc(hidden)]
445#[derive(Copy, Clone, Eq, PartialEq)]
446pub struct Timer1CtrlReg_SPEC;
447impl crate::sealed::RegSpec for Timer1CtrlReg_SPEC {
448 type DataType = u32;
449}
450
451#[doc = "Timer1 control register"]
452pub type Timer1CtrlReg = crate::RegValueT<Timer1CtrlReg_SPEC>;
453
454impl Timer1CtrlReg {
455 #[doc = "0 = timer1 clock is disabled\n1 = timer1 clock is enabled"]
456 #[inline(always)]
457 pub fn timer1_clk_en(
458 self,
459 ) -> crate::common::RegisterFieldBool<16, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
460 crate::common::RegisterFieldBool::<16,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
461 }
462
463 #[doc = "0 = Timer1 use the clock LP clock\n1 = Timer1 use the system clock"]
464 #[inline(always)]
465 pub fn timer1_use_sys_clk(
466 self,
467 ) -> crate::common::RegisterFieldBool<15, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
468 crate::common::RegisterFieldBool::<15,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
469 }
470
471 #[doc = "Applicable when timer counts up\n1 = timer1 goes to zero when it reaches the max value.\n0 = timer1 goes to zero when it reaches the reload value."]
472 #[inline(always)]
473 pub fn timer1_free_run_mode_en(
474 self,
475 ) -> crate::common::RegisterFieldBool<14, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
476 crate::common::RegisterFieldBool::<14,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
477 }
478
479 #[doc = "0 = timer1 IRQ masked\n1 = timer1 IRQ unmasked"]
480 #[inline(always)]
481 pub fn timer1_irq_en(
482 self,
483 ) -> crate::common::RegisterFieldBool<13, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
484 crate::common::RegisterFieldBool::<13,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
485 }
486
487 #[doc = "0 = timer1 counts up\n1 = timer1 counts down"]
488 #[inline(always)]
489 pub fn timer1_count_down_en(
490 self,
491 ) -> crate::common::RegisterFieldBool<12, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
492 crate::common::RegisterFieldBool::<12,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
493 }
494
495 #[doc = "0 = Timer1 disabled\n1 = Timer1 enabled"]
496 #[inline(always)]
497 pub fn timer1_enable(
498 self,
499 ) -> crate::common::RegisterFieldBool<11, 1, 0, Timer1CtrlReg_SPEC, crate::common::RW> {
500 crate::common::RegisterFieldBool::<11,1,0,Timer1CtrlReg_SPEC,crate::common::RW>::from_register(self,0)
501 }
502
503 #[doc = "Reload or max value in timer mode. Actual delay is the register value plus synchronization time (3 clock cycles)"]
504 #[inline(always)]
505 pub fn timer1_reload(
506 self,
507 ) -> crate::common::RegisterField<0, 0x7ff, 1, 0, u16, u16, Timer1CtrlReg_SPEC, crate::common::RW>
508 {
509 crate::common::RegisterField::<
510 0,
511 0x7ff,
512 1,
513 0,
514 u16,
515 u16,
516 Timer1CtrlReg_SPEC,
517 crate::common::RW,
518 >::from_register(self, 0)
519 }
520}
521impl ::core::default::Default for Timer1CtrlReg {
522 #[inline(always)]
523 fn default() -> Timer1CtrlReg {
524 <crate::RegValueT<Timer1CtrlReg_SPEC> as RegisterValue<_>>::new(0)
525 }
526}
527
528#[doc(hidden)]
529#[derive(Copy, Clone, Eq, PartialEq)]
530pub struct Timer1StatusReg_SPEC;
531impl crate::sealed::RegSpec for Timer1StatusReg_SPEC {
532 type DataType = u32;
533}
534
535#[doc = "Timer1 counter value"]
536pub type Timer1StatusReg = crate::RegValueT<Timer1StatusReg_SPEC>;
537
538impl Timer1StatusReg {
539 #[doc = "1 = New IN2 event occurred while Interrupt was pending.\nTIMER1_CAPCNT2_VALUE_REG gives the time stamp of the first event."]
540 #[inline(always)]
541 pub fn timer1_in2_ovrflw(
542 self,
543 ) -> crate::common::RegisterFieldBool<15, 1, 0, Timer1StatusReg_SPEC, crate::common::R> {
544 crate::common::RegisterFieldBool::<15,1,0,Timer1StatusReg_SPEC,crate::common::R>::from_register(self,0)
545 }
546
547 #[doc = "1 = New IN1 event occurred while Interrupt was pending.\nTIMER1_CAPCNT1_VALUE_REG gives the time stamp of the first event."]
548 #[inline(always)]
549 pub fn timer1_in1_ovrflw(
550 self,
551 ) -> crate::common::RegisterFieldBool<14, 1, 0, Timer1StatusReg_SPEC, crate::common::R> {
552 crate::common::RegisterFieldBool::<14,1,0,Timer1StatusReg_SPEC,crate::common::R>::from_register(self,0)
553 }
554
555 #[doc = "1 = Pending Capture 2 interrupt. It has be clear writing 1 to TIMER1_CLR_IN2_EVENT"]
556 #[inline(always)]
557 pub fn timer1_in2_event(
558 self,
559 ) -> crate::common::RegisterFieldBool<13, 1, 0, Timer1StatusReg_SPEC, crate::common::R> {
560 crate::common::RegisterFieldBool::<13,1,0,Timer1StatusReg_SPEC,crate::common::R>::from_register(self,0)
561 }
562
563 #[doc = "1 = Pending Capture 1 interrupt. It has be clear writing 1 to TIMER1_CLR_IN1_EVENT"]
564 #[inline(always)]
565 pub fn timer1_in1_event(
566 self,
567 ) -> crate::common::RegisterFieldBool<12, 1, 0, Timer1StatusReg_SPEC, crate::common::R> {
568 crate::common::RegisterFieldBool::<12,1,0,Timer1StatusReg_SPEC,crate::common::R>::from_register(self,0)
569 }
570
571 #[doc = "1 = Pending Timer interrupt. it has be clear writing 1\' to TIMER1_CLR_TIMER_EVENT"]
572 #[inline(always)]
573 pub fn timer1_timer_event(
574 self,
575 ) -> crate::common::RegisterFieldBool<11, 1, 0, Timer1StatusReg_SPEC, crate::common::R> {
576 crate::common::RegisterFieldBool::<11,1,0,Timer1StatusReg_SPEC,crate::common::R>::from_register(self,0)
577 }
578
579 #[doc = "Gives the current timer value"]
580 #[inline(always)]
581 pub fn timer1_timer_value(
582 self,
583 ) -> crate::common::RegisterField<
584 0,
585 0x7ff,
586 1,
587 0,
588 u16,
589 u16,
590 Timer1StatusReg_SPEC,
591 crate::common::R,
592 > {
593 crate::common::RegisterField::<
594 0,
595 0x7ff,
596 1,
597 0,
598 u16,
599 u16,
600 Timer1StatusReg_SPEC,
601 crate::common::R,
602 >::from_register(self, 0)
603 }
604}
605impl ::core::default::Default for Timer1StatusReg {
606 #[inline(always)]
607 fn default() -> Timer1StatusReg {
608 <crate::RegValueT<Timer1StatusReg_SPEC> as RegisterValue<_>>::new(0)
609 }
610}