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"Realtime Clock"]
28unsafe impl ::core::marker::Send for super::Rtc {}
29unsafe impl ::core::marker::Sync for super::Rtc {}
30impl super::Rtc {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "64-Hz Counter"]
38 #[inline(always)]
39 pub const fn r64cnt(&self) -> &'static crate::common::Reg<self::R64Cnt_SPEC, crate::common::R> {
40 unsafe {
41 crate::common::Reg::<self::R64Cnt_SPEC, crate::common::R>::from_ptr(
42 self._svd2pac_as_ptr().add(0usize),
43 )
44 }
45 }
46
47 #[doc = "Second Counter"]
48 #[inline(always)]
49 pub const fn rseccnt(
50 &self,
51 ) -> &'static crate::common::Reg<self::Rseccnt_SPEC, crate::common::RW> {
52 unsafe {
53 crate::common::Reg::<self::Rseccnt_SPEC, crate::common::RW>::from_ptr(
54 self._svd2pac_as_ptr().add(2usize),
55 )
56 }
57 }
58
59 #[doc = "Binary Counter 0"]
60 #[inline(always)]
61 pub const fn bcnt0(&self) -> &'static crate::common::Reg<self::Bcnt0_SPEC, crate::common::RW> {
62 unsafe {
63 crate::common::Reg::<self::Bcnt0_SPEC, crate::common::RW>::from_ptr(
64 self._svd2pac_as_ptr().add(2usize),
65 )
66 }
67 }
68
69 #[doc = "Minute Counter"]
70 #[inline(always)]
71 pub const fn rmincnt(
72 &self,
73 ) -> &'static crate::common::Reg<self::Rmincnt_SPEC, crate::common::RW> {
74 unsafe {
75 crate::common::Reg::<self::Rmincnt_SPEC, crate::common::RW>::from_ptr(
76 self._svd2pac_as_ptr().add(4usize),
77 )
78 }
79 }
80
81 #[doc = "Binary Counter 1"]
82 #[inline(always)]
83 pub const fn bcnt1(&self) -> &'static crate::common::Reg<self::Bcnt1_SPEC, crate::common::RW> {
84 unsafe {
85 crate::common::Reg::<self::Bcnt1_SPEC, crate::common::RW>::from_ptr(
86 self._svd2pac_as_ptr().add(4usize),
87 )
88 }
89 }
90
91 #[doc = "Hour Counter"]
92 #[inline(always)]
93 pub const fn rhrcnt(
94 &self,
95 ) -> &'static crate::common::Reg<self::Rhrcnt_SPEC, crate::common::RW> {
96 unsafe {
97 crate::common::Reg::<self::Rhrcnt_SPEC, crate::common::RW>::from_ptr(
98 self._svd2pac_as_ptr().add(6usize),
99 )
100 }
101 }
102
103 #[doc = "Binary Counter 2"]
104 #[inline(always)]
105 pub const fn bcnt2(&self) -> &'static crate::common::Reg<self::Bcnt2_SPEC, crate::common::RW> {
106 unsafe {
107 crate::common::Reg::<self::Bcnt2_SPEC, crate::common::RW>::from_ptr(
108 self._svd2pac_as_ptr().add(6usize),
109 )
110 }
111 }
112
113 #[doc = "Day-of-Week Counter"]
114 #[inline(always)]
115 pub const fn rwkcnt(
116 &self,
117 ) -> &'static crate::common::Reg<self::Rwkcnt_SPEC, crate::common::RW> {
118 unsafe {
119 crate::common::Reg::<self::Rwkcnt_SPEC, crate::common::RW>::from_ptr(
120 self._svd2pac_as_ptr().add(8usize),
121 )
122 }
123 }
124
125 #[doc = "Binary Counter 3"]
126 #[inline(always)]
127 pub const fn bcnt3(&self) -> &'static crate::common::Reg<self::Bcnt3_SPEC, crate::common::RW> {
128 unsafe {
129 crate::common::Reg::<self::Bcnt3_SPEC, crate::common::RW>::from_ptr(
130 self._svd2pac_as_ptr().add(8usize),
131 )
132 }
133 }
134
135 #[doc = "Day Counter"]
136 #[inline(always)]
137 pub const fn rdaycnt(
138 &self,
139 ) -> &'static crate::common::Reg<self::Rdaycnt_SPEC, crate::common::RW> {
140 unsafe {
141 crate::common::Reg::<self::Rdaycnt_SPEC, crate::common::RW>::from_ptr(
142 self._svd2pac_as_ptr().add(10usize),
143 )
144 }
145 }
146
147 #[doc = "Month Counter"]
148 #[inline(always)]
149 pub const fn rmoncnt(
150 &self,
151 ) -> &'static crate::common::Reg<self::Rmoncnt_SPEC, crate::common::RW> {
152 unsafe {
153 crate::common::Reg::<self::Rmoncnt_SPEC, crate::common::RW>::from_ptr(
154 self._svd2pac_as_ptr().add(12usize),
155 )
156 }
157 }
158
159 #[doc = "Year Counter"]
160 #[inline(always)]
161 pub const fn ryrcnt(
162 &self,
163 ) -> &'static crate::common::Reg<self::Ryrcnt_SPEC, crate::common::RW> {
164 unsafe {
165 crate::common::Reg::<self::Ryrcnt_SPEC, crate::common::RW>::from_ptr(
166 self._svd2pac_as_ptr().add(14usize),
167 )
168 }
169 }
170
171 #[doc = "Second Alarm Register"]
172 #[inline(always)]
173 pub const fn rsecar(
174 &self,
175 ) -> &'static crate::common::Reg<self::Rsecar_SPEC, crate::common::RW> {
176 unsafe {
177 crate::common::Reg::<self::Rsecar_SPEC, crate::common::RW>::from_ptr(
178 self._svd2pac_as_ptr().add(16usize),
179 )
180 }
181 }
182
183 #[doc = "Binary Counter 0 Alarm Register"]
184 #[inline(always)]
185 pub const fn bcnt0ar(
186 &self,
187 ) -> &'static crate::common::Reg<self::Bcnt0Ar_SPEC, crate::common::RW> {
188 unsafe {
189 crate::common::Reg::<self::Bcnt0Ar_SPEC, crate::common::RW>::from_ptr(
190 self._svd2pac_as_ptr().add(16usize),
191 )
192 }
193 }
194
195 #[doc = "Minute Alarm Register"]
196 #[inline(always)]
197 pub const fn rminar(
198 &self,
199 ) -> &'static crate::common::Reg<self::Rminar_SPEC, crate::common::RW> {
200 unsafe {
201 crate::common::Reg::<self::Rminar_SPEC, crate::common::RW>::from_ptr(
202 self._svd2pac_as_ptr().add(18usize),
203 )
204 }
205 }
206
207 #[doc = "Binary Counter 1 Alarm Register"]
208 #[inline(always)]
209 pub const fn bcnt1ar(
210 &self,
211 ) -> &'static crate::common::Reg<self::Bcnt1Ar_SPEC, crate::common::RW> {
212 unsafe {
213 crate::common::Reg::<self::Bcnt1Ar_SPEC, crate::common::RW>::from_ptr(
214 self._svd2pac_as_ptr().add(18usize),
215 )
216 }
217 }
218
219 #[doc = "Hour Alarm Register"]
220 #[inline(always)]
221 pub const fn rhrar(&self) -> &'static crate::common::Reg<self::Rhrar_SPEC, crate::common::RW> {
222 unsafe {
223 crate::common::Reg::<self::Rhrar_SPEC, crate::common::RW>::from_ptr(
224 self._svd2pac_as_ptr().add(20usize),
225 )
226 }
227 }
228
229 #[doc = "Binary Counter 2 Alarm Register"]
230 #[inline(always)]
231 pub const fn bcnt2ar(
232 &self,
233 ) -> &'static crate::common::Reg<self::Bcnt2Ar_SPEC, crate::common::RW> {
234 unsafe {
235 crate::common::Reg::<self::Bcnt2Ar_SPEC, crate::common::RW>::from_ptr(
236 self._svd2pac_as_ptr().add(20usize),
237 )
238 }
239 }
240
241 #[doc = "Day-of-Week Alarm Register"]
242 #[inline(always)]
243 pub const fn rwkar(&self) -> &'static crate::common::Reg<self::Rwkar_SPEC, crate::common::RW> {
244 unsafe {
245 crate::common::Reg::<self::Rwkar_SPEC, crate::common::RW>::from_ptr(
246 self._svd2pac_as_ptr().add(22usize),
247 )
248 }
249 }
250
251 #[doc = "Binary Counter 3 Alarm Register"]
252 #[inline(always)]
253 pub const fn bcnt3ar(
254 &self,
255 ) -> &'static crate::common::Reg<self::Bcnt3Ar_SPEC, crate::common::RW> {
256 unsafe {
257 crate::common::Reg::<self::Bcnt3Ar_SPEC, crate::common::RW>::from_ptr(
258 self._svd2pac_as_ptr().add(22usize),
259 )
260 }
261 }
262
263 #[doc = "Date Alarm Register"]
264 #[inline(always)]
265 pub const fn rdayar(
266 &self,
267 ) -> &'static crate::common::Reg<self::Rdayar_SPEC, crate::common::RW> {
268 unsafe {
269 crate::common::Reg::<self::Rdayar_SPEC, crate::common::RW>::from_ptr(
270 self._svd2pac_as_ptr().add(24usize),
271 )
272 }
273 }
274
275 #[doc = "Binary Counter 0 Alarm Enable Register"]
276 #[inline(always)]
277 pub const fn bcnt0aer(
278 &self,
279 ) -> &'static crate::common::Reg<self::Bcnt0Aer_SPEC, crate::common::RW> {
280 unsafe {
281 crate::common::Reg::<self::Bcnt0Aer_SPEC, crate::common::RW>::from_ptr(
282 self._svd2pac_as_ptr().add(24usize),
283 )
284 }
285 }
286
287 #[doc = "Month Alarm Register"]
288 #[inline(always)]
289 pub const fn rmonar(
290 &self,
291 ) -> &'static crate::common::Reg<self::Rmonar_SPEC, crate::common::RW> {
292 unsafe {
293 crate::common::Reg::<self::Rmonar_SPEC, crate::common::RW>::from_ptr(
294 self._svd2pac_as_ptr().add(26usize),
295 )
296 }
297 }
298
299 #[doc = "Binary Counter 1 Alarm Enable Register"]
300 #[inline(always)]
301 pub const fn bcnt1aer(
302 &self,
303 ) -> &'static crate::common::Reg<self::Bcnt1Aer_SPEC, crate::common::RW> {
304 unsafe {
305 crate::common::Reg::<self::Bcnt1Aer_SPEC, crate::common::RW>::from_ptr(
306 self._svd2pac_as_ptr().add(26usize),
307 )
308 }
309 }
310
311 #[doc = "Year Alarm Register"]
312 #[inline(always)]
313 pub const fn ryrar(&self) -> &'static crate::common::Reg<self::Ryrar_SPEC, crate::common::RW> {
314 unsafe {
315 crate::common::Reg::<self::Ryrar_SPEC, crate::common::RW>::from_ptr(
316 self._svd2pac_as_ptr().add(28usize),
317 )
318 }
319 }
320
321 #[doc = "Binary Counter 2 Alarm Enable Register"]
322 #[inline(always)]
323 pub const fn bcnt2aer(
324 &self,
325 ) -> &'static crate::common::Reg<self::Bcnt2Aer_SPEC, crate::common::RW> {
326 unsafe {
327 crate::common::Reg::<self::Bcnt2Aer_SPEC, crate::common::RW>::from_ptr(
328 self._svd2pac_as_ptr().add(28usize),
329 )
330 }
331 }
332
333 #[doc = "Year Alarm Enable Register"]
334 #[inline(always)]
335 pub const fn ryraren(
336 &self,
337 ) -> &'static crate::common::Reg<self::Ryraren_SPEC, crate::common::RW> {
338 unsafe {
339 crate::common::Reg::<self::Ryraren_SPEC, crate::common::RW>::from_ptr(
340 self._svd2pac_as_ptr().add(30usize),
341 )
342 }
343 }
344
345 #[doc = "Binary Counter 3 Alarm Enable Register"]
346 #[inline(always)]
347 pub const fn bcnt3aer(
348 &self,
349 ) -> &'static crate::common::Reg<self::Bcnt3Aer_SPEC, crate::common::RW> {
350 unsafe {
351 crate::common::Reg::<self::Bcnt3Aer_SPEC, crate::common::RW>::from_ptr(
352 self._svd2pac_as_ptr().add(30usize),
353 )
354 }
355 }
356
357 #[doc = "RTC Control Register 1"]
358 #[inline(always)]
359 pub const fn rcr1(&self) -> &'static crate::common::Reg<self::Rcr1_SPEC, crate::common::RW> {
360 unsafe {
361 crate::common::Reg::<self::Rcr1_SPEC, crate::common::RW>::from_ptr(
362 self._svd2pac_as_ptr().add(34usize),
363 )
364 }
365 }
366
367 #[doc = "RTC Control Register 2"]
368 #[inline(always)]
369 pub const fn rcr2(&self) -> &'static crate::common::Reg<self::Rcr2_SPEC, crate::common::RW> {
370 unsafe {
371 crate::common::Reg::<self::Rcr2_SPEC, crate::common::RW>::from_ptr(
372 self._svd2pac_as_ptr().add(36usize),
373 )
374 }
375 }
376
377 #[doc = "RTC Control Register 4"]
378 #[inline(always)]
379 pub const fn rcr4(&self) -> &'static crate::common::Reg<self::Rcr4_SPEC, crate::common::RW> {
380 unsafe {
381 crate::common::Reg::<self::Rcr4_SPEC, crate::common::RW>::from_ptr(
382 self._svd2pac_as_ptr().add(40usize),
383 )
384 }
385 }
386
387 #[doc = "Frequency Register H"]
388 #[inline(always)]
389 pub const fn rfrh(&self) -> &'static crate::common::Reg<self::Rfrh_SPEC, crate::common::RW> {
390 unsafe {
391 crate::common::Reg::<self::Rfrh_SPEC, crate::common::RW>::from_ptr(
392 self._svd2pac_as_ptr().add(42usize),
393 )
394 }
395 }
396
397 #[doc = "Frequency Register L"]
398 #[inline(always)]
399 pub const fn rfrl(&self) -> &'static crate::common::Reg<self::Rfrl_SPEC, crate::common::RW> {
400 unsafe {
401 crate::common::Reg::<self::Rfrl_SPEC, crate::common::RW>::from_ptr(
402 self._svd2pac_as_ptr().add(44usize),
403 )
404 }
405 }
406
407 #[doc = "Time Error Adjustment Register"]
408 #[inline(always)]
409 pub const fn radj(&self) -> &'static crate::common::Reg<self::Radj_SPEC, crate::common::RW> {
410 unsafe {
411 crate::common::Reg::<self::Radj_SPEC, crate::common::RW>::from_ptr(
412 self._svd2pac_as_ptr().add(46usize),
413 )
414 }
415 }
416
417 #[doc = "Time Capture Control Register %s"]
418 #[inline(always)]
419 pub const fn rtccr(
420 &self,
421 ) -> &'static crate::common::ClusterRegisterArray<
422 crate::common::Reg<self::Rtccr_SPEC, crate::common::RW>,
423 3,
424 0x2,
425 > {
426 unsafe {
427 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x40usize))
428 }
429 }
430 #[inline(always)]
431 pub const fn rtccr0(&self) -> &'static crate::common::Reg<self::Rtccr_SPEC, crate::common::RW> {
432 unsafe {
433 crate::common::Reg::<self::Rtccr_SPEC, crate::common::RW>::from_ptr(
434 self._svd2pac_as_ptr().add(0x40usize),
435 )
436 }
437 }
438 #[inline(always)]
439 pub const fn rtccr1(&self) -> &'static crate::common::Reg<self::Rtccr_SPEC, crate::common::RW> {
440 unsafe {
441 crate::common::Reg::<self::Rtccr_SPEC, crate::common::RW>::from_ptr(
442 self._svd2pac_as_ptr().add(0x42usize),
443 )
444 }
445 }
446 #[inline(always)]
447 pub const fn rtccr2(&self) -> &'static crate::common::Reg<self::Rtccr_SPEC, crate::common::RW> {
448 unsafe {
449 crate::common::Reg::<self::Rtccr_SPEC, crate::common::RW>::from_ptr(
450 self._svd2pac_as_ptr().add(0x44usize),
451 )
452 }
453 }
454
455 #[doc = "Second Capture Register %s"]
456 #[inline(always)]
457 pub const fn rseccp(
458 &self,
459 ) -> &'static crate::common::ClusterRegisterArray<
460 crate::common::Reg<self::Rseccp_SPEC, crate::common::R>,
461 3,
462 0x10,
463 > {
464 unsafe {
465 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x52usize))
466 }
467 }
468 #[inline(always)]
469 pub const fn rseccp0(
470 &self,
471 ) -> &'static crate::common::Reg<self::Rseccp_SPEC, crate::common::R> {
472 unsafe {
473 crate::common::Reg::<self::Rseccp_SPEC, crate::common::R>::from_ptr(
474 self._svd2pac_as_ptr().add(0x52usize),
475 )
476 }
477 }
478 #[inline(always)]
479 pub const fn rseccp1(
480 &self,
481 ) -> &'static crate::common::Reg<self::Rseccp_SPEC, crate::common::R> {
482 unsafe {
483 crate::common::Reg::<self::Rseccp_SPEC, crate::common::R>::from_ptr(
484 self._svd2pac_as_ptr().add(0x62usize),
485 )
486 }
487 }
488 #[inline(always)]
489 pub const fn rseccp2(
490 &self,
491 ) -> &'static crate::common::Reg<self::Rseccp_SPEC, crate::common::R> {
492 unsafe {
493 crate::common::Reg::<self::Rseccp_SPEC, crate::common::R>::from_ptr(
494 self._svd2pac_as_ptr().add(0x72usize),
495 )
496 }
497 }
498
499 #[doc = "BCNT0 Capture Register %s"]
500 #[inline(always)]
501 pub const fn bcnt0cp(
502 &self,
503 ) -> &'static crate::common::ClusterRegisterArray<
504 crate::common::Reg<self::Bcnt0Cp_SPEC, crate::common::R>,
505 3,
506 0x10,
507 > {
508 unsafe {
509 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x52usize))
510 }
511 }
512 #[inline(always)]
513 pub const fn bcnt0cp0(
514 &self,
515 ) -> &'static crate::common::Reg<self::Bcnt0Cp_SPEC, crate::common::R> {
516 unsafe {
517 crate::common::Reg::<self::Bcnt0Cp_SPEC, crate::common::R>::from_ptr(
518 self._svd2pac_as_ptr().add(0x52usize),
519 )
520 }
521 }
522 #[inline(always)]
523 pub const fn bcnt0cp1(
524 &self,
525 ) -> &'static crate::common::Reg<self::Bcnt0Cp_SPEC, crate::common::R> {
526 unsafe {
527 crate::common::Reg::<self::Bcnt0Cp_SPEC, crate::common::R>::from_ptr(
528 self._svd2pac_as_ptr().add(0x62usize),
529 )
530 }
531 }
532 #[inline(always)]
533 pub const fn bcnt0cp2(
534 &self,
535 ) -> &'static crate::common::Reg<self::Bcnt0Cp_SPEC, crate::common::R> {
536 unsafe {
537 crate::common::Reg::<self::Bcnt0Cp_SPEC, crate::common::R>::from_ptr(
538 self._svd2pac_as_ptr().add(0x72usize),
539 )
540 }
541 }
542
543 #[doc = "Minute Capture Register %s"]
544 #[inline(always)]
545 pub const fn rmincp(
546 &self,
547 ) -> &'static crate::common::ClusterRegisterArray<
548 crate::common::Reg<self::Rmincp_SPEC, crate::common::R>,
549 3,
550 0x10,
551 > {
552 unsafe {
553 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x54usize))
554 }
555 }
556 #[inline(always)]
557 pub const fn rmincp0(
558 &self,
559 ) -> &'static crate::common::Reg<self::Rmincp_SPEC, crate::common::R> {
560 unsafe {
561 crate::common::Reg::<self::Rmincp_SPEC, crate::common::R>::from_ptr(
562 self._svd2pac_as_ptr().add(0x54usize),
563 )
564 }
565 }
566 #[inline(always)]
567 pub const fn rmincp1(
568 &self,
569 ) -> &'static crate::common::Reg<self::Rmincp_SPEC, crate::common::R> {
570 unsafe {
571 crate::common::Reg::<self::Rmincp_SPEC, crate::common::R>::from_ptr(
572 self._svd2pac_as_ptr().add(0x64usize),
573 )
574 }
575 }
576 #[inline(always)]
577 pub const fn rmincp2(
578 &self,
579 ) -> &'static crate::common::Reg<self::Rmincp_SPEC, crate::common::R> {
580 unsafe {
581 crate::common::Reg::<self::Rmincp_SPEC, crate::common::R>::from_ptr(
582 self._svd2pac_as_ptr().add(0x74usize),
583 )
584 }
585 }
586
587 #[doc = "BCNT1 Capture Register %s"]
588 #[inline(always)]
589 pub const fn bcnt1cp(
590 &self,
591 ) -> &'static crate::common::ClusterRegisterArray<
592 crate::common::Reg<self::Bcnt1Cp_SPEC, crate::common::R>,
593 3,
594 0x10,
595 > {
596 unsafe {
597 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x54usize))
598 }
599 }
600 #[inline(always)]
601 pub const fn bcnt1cp0(
602 &self,
603 ) -> &'static crate::common::Reg<self::Bcnt1Cp_SPEC, crate::common::R> {
604 unsafe {
605 crate::common::Reg::<self::Bcnt1Cp_SPEC, crate::common::R>::from_ptr(
606 self._svd2pac_as_ptr().add(0x54usize),
607 )
608 }
609 }
610 #[inline(always)]
611 pub const fn bcnt1cp1(
612 &self,
613 ) -> &'static crate::common::Reg<self::Bcnt1Cp_SPEC, crate::common::R> {
614 unsafe {
615 crate::common::Reg::<self::Bcnt1Cp_SPEC, crate::common::R>::from_ptr(
616 self._svd2pac_as_ptr().add(0x64usize),
617 )
618 }
619 }
620 #[inline(always)]
621 pub const fn bcnt1cp2(
622 &self,
623 ) -> &'static crate::common::Reg<self::Bcnt1Cp_SPEC, crate::common::R> {
624 unsafe {
625 crate::common::Reg::<self::Bcnt1Cp_SPEC, crate::common::R>::from_ptr(
626 self._svd2pac_as_ptr().add(0x74usize),
627 )
628 }
629 }
630
631 #[doc = "Hour Capture Register %s"]
632 #[inline(always)]
633 pub const fn rhrcp(
634 &self,
635 ) -> &'static crate::common::ClusterRegisterArray<
636 crate::common::Reg<self::Rhrcp_SPEC, crate::common::R>,
637 3,
638 0x10,
639 > {
640 unsafe {
641 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x56usize))
642 }
643 }
644 #[inline(always)]
645 pub const fn rhrcp0(&self) -> &'static crate::common::Reg<self::Rhrcp_SPEC, crate::common::R> {
646 unsafe {
647 crate::common::Reg::<self::Rhrcp_SPEC, crate::common::R>::from_ptr(
648 self._svd2pac_as_ptr().add(0x56usize),
649 )
650 }
651 }
652 #[inline(always)]
653 pub const fn rhrcp1(&self) -> &'static crate::common::Reg<self::Rhrcp_SPEC, crate::common::R> {
654 unsafe {
655 crate::common::Reg::<self::Rhrcp_SPEC, crate::common::R>::from_ptr(
656 self._svd2pac_as_ptr().add(0x66usize),
657 )
658 }
659 }
660 #[inline(always)]
661 pub const fn rhrcp2(&self) -> &'static crate::common::Reg<self::Rhrcp_SPEC, crate::common::R> {
662 unsafe {
663 crate::common::Reg::<self::Rhrcp_SPEC, crate::common::R>::from_ptr(
664 self._svd2pac_as_ptr().add(0x76usize),
665 )
666 }
667 }
668
669 #[doc = "BCNT2 Capture Register %s"]
670 #[inline(always)]
671 pub const fn bcnt2cp(
672 &self,
673 ) -> &'static crate::common::ClusterRegisterArray<
674 crate::common::Reg<self::Bcnt2Cp_SPEC, crate::common::R>,
675 3,
676 0x10,
677 > {
678 unsafe {
679 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x56usize))
680 }
681 }
682 #[inline(always)]
683 pub const fn bcnt2cp0(
684 &self,
685 ) -> &'static crate::common::Reg<self::Bcnt2Cp_SPEC, crate::common::R> {
686 unsafe {
687 crate::common::Reg::<self::Bcnt2Cp_SPEC, crate::common::R>::from_ptr(
688 self._svd2pac_as_ptr().add(0x56usize),
689 )
690 }
691 }
692 #[inline(always)]
693 pub const fn bcnt2cp1(
694 &self,
695 ) -> &'static crate::common::Reg<self::Bcnt2Cp_SPEC, crate::common::R> {
696 unsafe {
697 crate::common::Reg::<self::Bcnt2Cp_SPEC, crate::common::R>::from_ptr(
698 self._svd2pac_as_ptr().add(0x66usize),
699 )
700 }
701 }
702 #[inline(always)]
703 pub const fn bcnt2cp2(
704 &self,
705 ) -> &'static crate::common::Reg<self::Bcnt2Cp_SPEC, crate::common::R> {
706 unsafe {
707 crate::common::Reg::<self::Bcnt2Cp_SPEC, crate::common::R>::from_ptr(
708 self._svd2pac_as_ptr().add(0x76usize),
709 )
710 }
711 }
712
713 #[doc = "Date Capture Register %s"]
714 #[inline(always)]
715 pub const fn rdaycp(
716 &self,
717 ) -> &'static crate::common::ClusterRegisterArray<
718 crate::common::Reg<self::Rdaycp_SPEC, crate::common::R>,
719 3,
720 0x10,
721 > {
722 unsafe {
723 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x5ausize))
724 }
725 }
726 #[inline(always)]
727 pub const fn rdaycp0(
728 &self,
729 ) -> &'static crate::common::Reg<self::Rdaycp_SPEC, crate::common::R> {
730 unsafe {
731 crate::common::Reg::<self::Rdaycp_SPEC, crate::common::R>::from_ptr(
732 self._svd2pac_as_ptr().add(0x5ausize),
733 )
734 }
735 }
736 #[inline(always)]
737 pub const fn rdaycp1(
738 &self,
739 ) -> &'static crate::common::Reg<self::Rdaycp_SPEC, crate::common::R> {
740 unsafe {
741 crate::common::Reg::<self::Rdaycp_SPEC, crate::common::R>::from_ptr(
742 self._svd2pac_as_ptr().add(0x6ausize),
743 )
744 }
745 }
746 #[inline(always)]
747 pub const fn rdaycp2(
748 &self,
749 ) -> &'static crate::common::Reg<self::Rdaycp_SPEC, crate::common::R> {
750 unsafe {
751 crate::common::Reg::<self::Rdaycp_SPEC, crate::common::R>::from_ptr(
752 self._svd2pac_as_ptr().add(0x7ausize),
753 )
754 }
755 }
756
757 #[doc = "BCNT3 Capture Register %s"]
758 #[inline(always)]
759 pub const fn bcnt3cp(
760 &self,
761 ) -> &'static crate::common::ClusterRegisterArray<
762 crate::common::Reg<self::Bcnt3Cp_SPEC, crate::common::R>,
763 3,
764 0x10,
765 > {
766 unsafe {
767 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x5ausize))
768 }
769 }
770 #[inline(always)]
771 pub const fn bcnt3cp0(
772 &self,
773 ) -> &'static crate::common::Reg<self::Bcnt3Cp_SPEC, crate::common::R> {
774 unsafe {
775 crate::common::Reg::<self::Bcnt3Cp_SPEC, crate::common::R>::from_ptr(
776 self._svd2pac_as_ptr().add(0x5ausize),
777 )
778 }
779 }
780 #[inline(always)]
781 pub const fn bcnt3cp1(
782 &self,
783 ) -> &'static crate::common::Reg<self::Bcnt3Cp_SPEC, crate::common::R> {
784 unsafe {
785 crate::common::Reg::<self::Bcnt3Cp_SPEC, crate::common::R>::from_ptr(
786 self._svd2pac_as_ptr().add(0x6ausize),
787 )
788 }
789 }
790 #[inline(always)]
791 pub const fn bcnt3cp2(
792 &self,
793 ) -> &'static crate::common::Reg<self::Bcnt3Cp_SPEC, crate::common::R> {
794 unsafe {
795 crate::common::Reg::<self::Bcnt3Cp_SPEC, crate::common::R>::from_ptr(
796 self._svd2pac_as_ptr().add(0x7ausize),
797 )
798 }
799 }
800
801 #[doc = "Month Capture Register %s"]
802 #[inline(always)]
803 pub const fn rmoncp(
804 &self,
805 ) -> &'static crate::common::ClusterRegisterArray<
806 crate::common::Reg<self::Rmoncp_SPEC, crate::common::R>,
807 3,
808 0x10,
809 > {
810 unsafe {
811 crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x5cusize))
812 }
813 }
814 #[inline(always)]
815 pub const fn rmoncp0(
816 &self,
817 ) -> &'static crate::common::Reg<self::Rmoncp_SPEC, crate::common::R> {
818 unsafe {
819 crate::common::Reg::<self::Rmoncp_SPEC, crate::common::R>::from_ptr(
820 self._svd2pac_as_ptr().add(0x5cusize),
821 )
822 }
823 }
824 #[inline(always)]
825 pub const fn rmoncp1(
826 &self,
827 ) -> &'static crate::common::Reg<self::Rmoncp_SPEC, crate::common::R> {
828 unsafe {
829 crate::common::Reg::<self::Rmoncp_SPEC, crate::common::R>::from_ptr(
830 self._svd2pac_as_ptr().add(0x6cusize),
831 )
832 }
833 }
834 #[inline(always)]
835 pub const fn rmoncp2(
836 &self,
837 ) -> &'static crate::common::Reg<self::Rmoncp_SPEC, crate::common::R> {
838 unsafe {
839 crate::common::Reg::<self::Rmoncp_SPEC, crate::common::R>::from_ptr(
840 self._svd2pac_as_ptr().add(0x7cusize),
841 )
842 }
843 }
844}
845#[doc(hidden)]
846#[derive(Copy, Clone, Eq, PartialEq)]
847pub struct R64Cnt_SPEC;
848impl crate::sealed::RegSpec for R64Cnt_SPEC {
849 type DataType = u8;
850}
851
852#[doc = "64-Hz Counter"]
853pub type R64Cnt = crate::RegValueT<R64Cnt_SPEC>;
854
855impl R64Cnt {
856 #[doc = "1Hz"]
857 #[inline(always)]
858 pub fn f1hz(self) -> crate::common::RegisterFieldBool<6, 1, 0, R64Cnt_SPEC, crate::common::R> {
859 crate::common::RegisterFieldBool::<6, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
860 self, 0,
861 )
862 }
863
864 #[doc = "2Hz"]
865 #[inline(always)]
866 pub fn f2hz(self) -> crate::common::RegisterFieldBool<5, 1, 0, R64Cnt_SPEC, crate::common::R> {
867 crate::common::RegisterFieldBool::<5, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
868 self, 0,
869 )
870 }
871
872 #[doc = "4Hz"]
873 #[inline(always)]
874 pub fn f4hz(self) -> crate::common::RegisterFieldBool<4, 1, 0, R64Cnt_SPEC, crate::common::R> {
875 crate::common::RegisterFieldBool::<4, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
876 self, 0,
877 )
878 }
879
880 #[doc = "8Hz"]
881 #[inline(always)]
882 pub fn f8hz(self) -> crate::common::RegisterFieldBool<3, 1, 0, R64Cnt_SPEC, crate::common::R> {
883 crate::common::RegisterFieldBool::<3, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
884 self, 0,
885 )
886 }
887
888 #[doc = "16Hz"]
889 #[inline(always)]
890 pub fn f16hz(self) -> crate::common::RegisterFieldBool<2, 1, 0, R64Cnt_SPEC, crate::common::R> {
891 crate::common::RegisterFieldBool::<2, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
892 self, 0,
893 )
894 }
895
896 #[doc = "32Hz"]
897 #[inline(always)]
898 pub fn f32hz(self) -> crate::common::RegisterFieldBool<1, 1, 0, R64Cnt_SPEC, crate::common::R> {
899 crate::common::RegisterFieldBool::<1, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
900 self, 0,
901 )
902 }
903
904 #[doc = "64Hz"]
905 #[inline(always)]
906 pub fn f64hz(self) -> crate::common::RegisterFieldBool<0, 1, 0, R64Cnt_SPEC, crate::common::R> {
907 crate::common::RegisterFieldBool::<0, 1, 0, R64Cnt_SPEC, crate::common::R>::from_register(
908 self, 0,
909 )
910 }
911}
912impl ::core::default::Default for R64Cnt {
913 #[inline(always)]
914 fn default() -> R64Cnt {
915 <crate::RegValueT<R64Cnt_SPEC> as RegisterValue<_>>::new(0)
916 }
917}
918
919#[doc(hidden)]
920#[derive(Copy, Clone, Eq, PartialEq)]
921pub struct Rseccnt_SPEC;
922impl crate::sealed::RegSpec for Rseccnt_SPEC {
923 type DataType = u8;
924}
925
926#[doc = "Second Counter"]
927pub type Rseccnt = crate::RegValueT<Rseccnt_SPEC>;
928
929impl Rseccnt {
930 #[doc = "10-Second Count Counts from 0 to 5 for 60-second counting."]
931 #[inline(always)]
932 pub fn sec10(
933 self,
934 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rseccnt_SPEC, crate::common::RW> {
935 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rseccnt_SPEC,crate::common::RW>::from_register(self,0)
936 }
937
938 #[doc = "1-Second Count Counts from 0 to 9 every second. When a carry is generated, 1 is added to the tens place."]
939 #[inline(always)]
940 pub fn sec1(
941 self,
942 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rseccnt_SPEC, crate::common::RW> {
943 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rseccnt_SPEC,crate::common::RW>::from_register(self,0)
944 }
945}
946impl ::core::default::Default for Rseccnt {
947 #[inline(always)]
948 fn default() -> Rseccnt {
949 <crate::RegValueT<Rseccnt_SPEC> as RegisterValue<_>>::new(0)
950 }
951}
952
953#[doc(hidden)]
954#[derive(Copy, Clone, Eq, PartialEq)]
955pub struct Bcnt0_SPEC;
956impl crate::sealed::RegSpec for Bcnt0_SPEC {
957 type DataType = u8;
958}
959
960#[doc = "Binary Counter 0"]
961pub type Bcnt0 = crate::RegValueT<Bcnt0_SPEC>;
962
963impl Bcnt0 {
964 #[doc = "The BCNT0 counter is a readable/writable 32-bit binary counter b7 to b0."]
965 #[inline(always)]
966 pub fn bcnt0(
967 self,
968 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt0_SPEC, crate::common::RW> {
969 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt0_SPEC,crate::common::RW>::from_register(self,0)
970 }
971}
972impl ::core::default::Default for Bcnt0 {
973 #[inline(always)]
974 fn default() -> Bcnt0 {
975 <crate::RegValueT<Bcnt0_SPEC> as RegisterValue<_>>::new(0)
976 }
977}
978
979#[doc(hidden)]
980#[derive(Copy, Clone, Eq, PartialEq)]
981pub struct Rmincnt_SPEC;
982impl crate::sealed::RegSpec for Rmincnt_SPEC {
983 type DataType = u8;
984}
985
986#[doc = "Minute Counter"]
987pub type Rmincnt = crate::RegValueT<Rmincnt_SPEC>;
988
989impl Rmincnt {
990 #[doc = "10-Minute Count Counts from 0 to 5 for 60-minute counting."]
991 #[inline(always)]
992 pub fn min10(
993 self,
994 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rmincnt_SPEC, crate::common::RW> {
995 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rmincnt_SPEC,crate::common::RW>::from_register(self,0)
996 }
997
998 #[doc = "1-Minute Count Counts from 0 to 9 every minute. When a carry is generated, 1 is added to the tens place."]
999 #[inline(always)]
1000 pub fn min1(
1001 self,
1002 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rmincnt_SPEC, crate::common::RW> {
1003 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rmincnt_SPEC,crate::common::RW>::from_register(self,0)
1004 }
1005}
1006impl ::core::default::Default for Rmincnt {
1007 #[inline(always)]
1008 fn default() -> Rmincnt {
1009 <crate::RegValueT<Rmincnt_SPEC> as RegisterValue<_>>::new(0)
1010 }
1011}
1012
1013#[doc(hidden)]
1014#[derive(Copy, Clone, Eq, PartialEq)]
1015pub struct Bcnt1_SPEC;
1016impl crate::sealed::RegSpec for Bcnt1_SPEC {
1017 type DataType = u8;
1018}
1019
1020#[doc = "Binary Counter 1"]
1021pub type Bcnt1 = crate::RegValueT<Bcnt1_SPEC>;
1022
1023impl Bcnt1 {
1024 #[doc = "The BCNT1 counter is a readable/writable 32-bit binary counter b15 to b8."]
1025 #[inline(always)]
1026 pub fn bcnt1(
1027 self,
1028 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt1_SPEC, crate::common::RW> {
1029 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt1_SPEC,crate::common::RW>::from_register(self,0)
1030 }
1031}
1032impl ::core::default::Default for Bcnt1 {
1033 #[inline(always)]
1034 fn default() -> Bcnt1 {
1035 <crate::RegValueT<Bcnt1_SPEC> as RegisterValue<_>>::new(0)
1036 }
1037}
1038
1039#[doc(hidden)]
1040#[derive(Copy, Clone, Eq, PartialEq)]
1041pub struct Rhrcnt_SPEC;
1042impl crate::sealed::RegSpec for Rhrcnt_SPEC {
1043 type DataType = u8;
1044}
1045
1046#[doc = "Hour Counter"]
1047pub type Rhrcnt = crate::RegValueT<Rhrcnt_SPEC>;
1048
1049impl Rhrcnt {
1050 #[doc = "Time Counter Setting for a.m./p.m."]
1051 #[inline(always)]
1052 pub fn pm(
1053 self,
1054 ) -> crate::common::RegisterField<
1055 6,
1056 0x1,
1057 1,
1058 0,
1059 rhrcnt::Pm,
1060 rhrcnt::Pm,
1061 Rhrcnt_SPEC,
1062 crate::common::RW,
1063 > {
1064 crate::common::RegisterField::<
1065 6,
1066 0x1,
1067 1,
1068 0,
1069 rhrcnt::Pm,
1070 rhrcnt::Pm,
1071 Rhrcnt_SPEC,
1072 crate::common::RW,
1073 >::from_register(self, 0)
1074 }
1075
1076 #[doc = "10-Hour Count Counts from 0 to 2 once per carry from the ones place."]
1077 #[inline(always)]
1078 pub fn hr10(
1079 self,
1080 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rhrcnt_SPEC, crate::common::RW> {
1081 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rhrcnt_SPEC,crate::common::RW>::from_register(self,0)
1082 }
1083
1084 #[doc = "1-Hour Count Counts from 0 to 9 once per hour. When a carry is generated, 1 is added to the tens place."]
1085 #[inline(always)]
1086 pub fn hr1(
1087 self,
1088 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rhrcnt_SPEC, crate::common::RW> {
1089 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rhrcnt_SPEC,crate::common::RW>::from_register(self,0)
1090 }
1091}
1092impl ::core::default::Default for Rhrcnt {
1093 #[inline(always)]
1094 fn default() -> Rhrcnt {
1095 <crate::RegValueT<Rhrcnt_SPEC> as RegisterValue<_>>::new(0)
1096 }
1097}
1098pub mod rhrcnt {
1099
1100 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1101 pub struct Pm_SPEC;
1102 pub type Pm = crate::EnumBitfieldStruct<u8, Pm_SPEC>;
1103 impl Pm {
1104 #[doc = "a.m."]
1105 pub const _0: Self = Self::new(0);
1106
1107 #[doc = "p.m."]
1108 pub const _1: Self = Self::new(1);
1109 }
1110}
1111#[doc(hidden)]
1112#[derive(Copy, Clone, Eq, PartialEq)]
1113pub struct Bcnt2_SPEC;
1114impl crate::sealed::RegSpec for Bcnt2_SPEC {
1115 type DataType = u8;
1116}
1117
1118#[doc = "Binary Counter 2"]
1119pub type Bcnt2 = crate::RegValueT<Bcnt2_SPEC>;
1120
1121impl Bcnt2 {
1122 #[doc = "The BCNT2 counter is a readable/writable 32-bit binary counter b23 to b16."]
1123 #[inline(always)]
1124 pub fn bcnt2(
1125 self,
1126 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt2_SPEC, crate::common::RW> {
1127 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt2_SPEC,crate::common::RW>::from_register(self,0)
1128 }
1129}
1130impl ::core::default::Default for Bcnt2 {
1131 #[inline(always)]
1132 fn default() -> Bcnt2 {
1133 <crate::RegValueT<Bcnt2_SPEC> as RegisterValue<_>>::new(0)
1134 }
1135}
1136
1137#[doc(hidden)]
1138#[derive(Copy, Clone, Eq, PartialEq)]
1139pub struct Rwkcnt_SPEC;
1140impl crate::sealed::RegSpec for Rwkcnt_SPEC {
1141 type DataType = u8;
1142}
1143
1144#[doc = "Day-of-Week Counter"]
1145pub type Rwkcnt = crate::RegValueT<Rwkcnt_SPEC>;
1146
1147impl Rwkcnt {
1148 #[doc = "Day-of-Week Counting"]
1149 #[inline(always)]
1150 pub fn dayw(
1151 self,
1152 ) -> crate::common::RegisterField<
1153 0,
1154 0x7,
1155 1,
1156 0,
1157 rwkcnt::Dayw,
1158 rwkcnt::Dayw,
1159 Rwkcnt_SPEC,
1160 crate::common::RW,
1161 > {
1162 crate::common::RegisterField::<
1163 0,
1164 0x7,
1165 1,
1166 0,
1167 rwkcnt::Dayw,
1168 rwkcnt::Dayw,
1169 Rwkcnt_SPEC,
1170 crate::common::RW,
1171 >::from_register(self, 0)
1172 }
1173}
1174impl ::core::default::Default for Rwkcnt {
1175 #[inline(always)]
1176 fn default() -> Rwkcnt {
1177 <crate::RegValueT<Rwkcnt_SPEC> as RegisterValue<_>>::new(0)
1178 }
1179}
1180pub mod rwkcnt {
1181
1182 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1183 pub struct Dayw_SPEC;
1184 pub type Dayw = crate::EnumBitfieldStruct<u8, Dayw_SPEC>;
1185 impl Dayw {
1186 #[doc = "Sunday"]
1187 pub const _000: Self = Self::new(0);
1188
1189 #[doc = "Monday"]
1190 pub const _001: Self = Self::new(1);
1191
1192 #[doc = "Tuesday"]
1193 pub const _010: Self = Self::new(2);
1194
1195 #[doc = "Wednesday"]
1196 pub const _011: Self = Self::new(3);
1197
1198 #[doc = "Thursday"]
1199 pub const _100: Self = Self::new(4);
1200
1201 #[doc = "Friday"]
1202 pub const _101: Self = Self::new(5);
1203
1204 #[doc = "Saturday"]
1205 pub const _110: Self = Self::new(6);
1206
1207 #[doc = "Setting Prohibited"]
1208 pub const _111: Self = Self::new(7);
1209 }
1210}
1211#[doc(hidden)]
1212#[derive(Copy, Clone, Eq, PartialEq)]
1213pub struct Bcnt3_SPEC;
1214impl crate::sealed::RegSpec for Bcnt3_SPEC {
1215 type DataType = u8;
1216}
1217
1218#[doc = "Binary Counter 3"]
1219pub type Bcnt3 = crate::RegValueT<Bcnt3_SPEC>;
1220
1221impl Bcnt3 {
1222 #[doc = "The BCNT3 counter is a readable/writable 32-bit binary counter b31 to b24."]
1223 #[inline(always)]
1224 pub fn bcnt3(
1225 self,
1226 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt3_SPEC, crate::common::RW> {
1227 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt3_SPEC,crate::common::RW>::from_register(self,0)
1228 }
1229}
1230impl ::core::default::Default for Bcnt3 {
1231 #[inline(always)]
1232 fn default() -> Bcnt3 {
1233 <crate::RegValueT<Bcnt3_SPEC> as RegisterValue<_>>::new(0)
1234 }
1235}
1236
1237#[doc(hidden)]
1238#[derive(Copy, Clone, Eq, PartialEq)]
1239pub struct Rdaycnt_SPEC;
1240impl crate::sealed::RegSpec for Rdaycnt_SPEC {
1241 type DataType = u8;
1242}
1243
1244#[doc = "Day Counter"]
1245pub type Rdaycnt = crate::RegValueT<Rdaycnt_SPEC>;
1246
1247impl Rdaycnt {
1248 #[doc = "10-Day Count Counts from 0 to 3 once per carry from the ones place."]
1249 #[inline(always)]
1250 pub fn date10(
1251 self,
1252 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rdaycnt_SPEC, crate::common::RW> {
1253 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rdaycnt_SPEC,crate::common::RW>::from_register(self,0)
1254 }
1255
1256 #[doc = "1-Day Count Counts from 0 to 9 once per day. When a carry is generated, 1 is added to the tens place."]
1257 #[inline(always)]
1258 pub fn date1(
1259 self,
1260 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rdaycnt_SPEC, crate::common::RW> {
1261 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rdaycnt_SPEC,crate::common::RW>::from_register(self,0)
1262 }
1263}
1264impl ::core::default::Default for Rdaycnt {
1265 #[inline(always)]
1266 fn default() -> Rdaycnt {
1267 <crate::RegValueT<Rdaycnt_SPEC> as RegisterValue<_>>::new(0)
1268 }
1269}
1270
1271#[doc(hidden)]
1272#[derive(Copy, Clone, Eq, PartialEq)]
1273pub struct Rmoncnt_SPEC;
1274impl crate::sealed::RegSpec for Rmoncnt_SPEC {
1275 type DataType = u8;
1276}
1277
1278#[doc = "Month Counter"]
1279pub type Rmoncnt = crate::RegValueT<Rmoncnt_SPEC>;
1280
1281impl Rmoncnt {
1282 #[doc = "10-Month Count Counts from 0 to 1 once per carry from the ones place."]
1283 #[inline(always)]
1284 pub fn mon10(
1285 self,
1286 ) -> crate::common::RegisterFieldBool<4, 1, 0, Rmoncnt_SPEC, crate::common::RW> {
1287 crate::common::RegisterFieldBool::<4, 1, 0, Rmoncnt_SPEC, crate::common::RW>::from_register(
1288 self, 0,
1289 )
1290 }
1291
1292 #[doc = "1-Month Count Counts from 0 to 9 once per month. When a carry is generated, 1 is added to the tens place."]
1293 #[inline(always)]
1294 pub fn mon1(
1295 self,
1296 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rmoncnt_SPEC, crate::common::RW> {
1297 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rmoncnt_SPEC,crate::common::RW>::from_register(self,0)
1298 }
1299}
1300impl ::core::default::Default for Rmoncnt {
1301 #[inline(always)]
1302 fn default() -> Rmoncnt {
1303 <crate::RegValueT<Rmoncnt_SPEC> as RegisterValue<_>>::new(0)
1304 }
1305}
1306
1307#[doc(hidden)]
1308#[derive(Copy, Clone, Eq, PartialEq)]
1309pub struct Ryrcnt_SPEC;
1310impl crate::sealed::RegSpec for Ryrcnt_SPEC {
1311 type DataType = u16;
1312}
1313
1314#[doc = "Year Counter"]
1315pub type Ryrcnt = crate::RegValueT<Ryrcnt_SPEC>;
1316
1317impl Ryrcnt {
1318 #[doc = "10-Year Count Counts from 0 to 9 once per carry from ones place. When a carry is generated in the tens place, 1 is added to the hundreds place."]
1319 #[inline(always)]
1320 pub fn yr10(
1321 self,
1322 ) -> crate::common::RegisterField<4, 0xf, 1, 0, u8, u8, Ryrcnt_SPEC, crate::common::RW> {
1323 crate::common::RegisterField::<4,0xf,1,0,u8,u8,Ryrcnt_SPEC,crate::common::RW>::from_register(self,0)
1324 }
1325
1326 #[doc = "1-Year Count Counts from 0 to 9 once per year. When a carry is generated, 1 is added to the tens place."]
1327 #[inline(always)]
1328 pub fn yr1(
1329 self,
1330 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Ryrcnt_SPEC, crate::common::RW> {
1331 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Ryrcnt_SPEC,crate::common::RW>::from_register(self,0)
1332 }
1333}
1334impl ::core::default::Default for Ryrcnt {
1335 #[inline(always)]
1336 fn default() -> Ryrcnt {
1337 <crate::RegValueT<Ryrcnt_SPEC> as RegisterValue<_>>::new(0)
1338 }
1339}
1340
1341#[doc(hidden)]
1342#[derive(Copy, Clone, Eq, PartialEq)]
1343pub struct Rsecar_SPEC;
1344impl crate::sealed::RegSpec for Rsecar_SPEC {
1345 type DataType = u8;
1346}
1347
1348#[doc = "Second Alarm Register"]
1349pub type Rsecar = crate::RegValueT<Rsecar_SPEC>;
1350
1351impl Rsecar {
1352 #[doc = "Compare enable"]
1353 #[inline(always)]
1354 pub fn enb(
1355 self,
1356 ) -> crate::common::RegisterField<
1357 7,
1358 0x1,
1359 1,
1360 0,
1361 rsecar::Enb,
1362 rsecar::Enb,
1363 Rsecar_SPEC,
1364 crate::common::RW,
1365 > {
1366 crate::common::RegisterField::<
1367 7,
1368 0x1,
1369 1,
1370 0,
1371 rsecar::Enb,
1372 rsecar::Enb,
1373 Rsecar_SPEC,
1374 crate::common::RW,
1375 >::from_register(self, 0)
1376 }
1377
1378 #[doc = "10-Seconds Value for the tens place of seconds"]
1379 #[inline(always)]
1380 pub fn sec10(
1381 self,
1382 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rsecar_SPEC, crate::common::RW> {
1383 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rsecar_SPEC,crate::common::RW>::from_register(self,0)
1384 }
1385
1386 #[doc = "1-Second Value for the ones place of seconds"]
1387 #[inline(always)]
1388 pub fn sec1(
1389 self,
1390 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rsecar_SPEC, crate::common::RW> {
1391 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rsecar_SPEC,crate::common::RW>::from_register(self,0)
1392 }
1393}
1394impl ::core::default::Default for Rsecar {
1395 #[inline(always)]
1396 fn default() -> Rsecar {
1397 <crate::RegValueT<Rsecar_SPEC> as RegisterValue<_>>::new(0)
1398 }
1399}
1400pub mod rsecar {
1401
1402 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1403 pub struct Enb_SPEC;
1404 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1405 impl Enb {
1406 #[doc = "The register value is not compared with the RSECCNT counter value."]
1407 pub const _0: Self = Self::new(0);
1408
1409 #[doc = "The register value is compared with the RSECCNT counter value."]
1410 pub const _1: Self = Self::new(1);
1411 }
1412}
1413#[doc(hidden)]
1414#[derive(Copy, Clone, Eq, PartialEq)]
1415pub struct Bcnt0Ar_SPEC;
1416impl crate::sealed::RegSpec for Bcnt0Ar_SPEC {
1417 type DataType = u8;
1418}
1419
1420#[doc = "Binary Counter 0 Alarm Register"]
1421pub type Bcnt0Ar = crate::RegValueT<Bcnt0Ar_SPEC>;
1422
1423impl Bcnt0Ar {
1424 #[doc = "he BCNT0AR counter is a readable/writable alarm register corresponding to 32-bit binary counter b7 to b0."]
1425 #[inline(always)]
1426 pub fn bcnt0ar(
1427 self,
1428 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt0Ar_SPEC, crate::common::RW> {
1429 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt0Ar_SPEC,crate::common::RW>::from_register(self,0)
1430 }
1431}
1432impl ::core::default::Default for Bcnt0Ar {
1433 #[inline(always)]
1434 fn default() -> Bcnt0Ar {
1435 <crate::RegValueT<Bcnt0Ar_SPEC> as RegisterValue<_>>::new(0)
1436 }
1437}
1438
1439#[doc(hidden)]
1440#[derive(Copy, Clone, Eq, PartialEq)]
1441pub struct Rminar_SPEC;
1442impl crate::sealed::RegSpec for Rminar_SPEC {
1443 type DataType = u8;
1444}
1445
1446#[doc = "Minute Alarm Register"]
1447pub type Rminar = crate::RegValueT<Rminar_SPEC>;
1448
1449impl Rminar {
1450 #[doc = "Compare enable"]
1451 #[inline(always)]
1452 pub fn enb(
1453 self,
1454 ) -> crate::common::RegisterField<
1455 7,
1456 0x1,
1457 1,
1458 0,
1459 rminar::Enb,
1460 rminar::Enb,
1461 Rminar_SPEC,
1462 crate::common::RW,
1463 > {
1464 crate::common::RegisterField::<
1465 7,
1466 0x1,
1467 1,
1468 0,
1469 rminar::Enb,
1470 rminar::Enb,
1471 Rminar_SPEC,
1472 crate::common::RW,
1473 >::from_register(self, 0)
1474 }
1475
1476 #[doc = "10-Minute Count Value for the tens place of minutes"]
1477 #[inline(always)]
1478 pub fn min10(
1479 self,
1480 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rminar_SPEC, crate::common::RW> {
1481 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rminar_SPEC,crate::common::RW>::from_register(self,0)
1482 }
1483
1484 #[doc = "1-Minute Count Value for the ones place of minutes"]
1485 #[inline(always)]
1486 pub fn min1(
1487 self,
1488 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rminar_SPEC, crate::common::RW> {
1489 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rminar_SPEC,crate::common::RW>::from_register(self,0)
1490 }
1491}
1492impl ::core::default::Default for Rminar {
1493 #[inline(always)]
1494 fn default() -> Rminar {
1495 <crate::RegValueT<Rminar_SPEC> as RegisterValue<_>>::new(0)
1496 }
1497}
1498pub mod rminar {
1499
1500 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1501 pub struct Enb_SPEC;
1502 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1503 impl Enb {
1504 #[doc = "The register value is not compared with the RMINCNT counter value."]
1505 pub const _0: Self = Self::new(0);
1506
1507 #[doc = "The register value is compared with the RMINCNT counter value."]
1508 pub const _1: Self = Self::new(1);
1509 }
1510}
1511#[doc(hidden)]
1512#[derive(Copy, Clone, Eq, PartialEq)]
1513pub struct Bcnt1Ar_SPEC;
1514impl crate::sealed::RegSpec for Bcnt1Ar_SPEC {
1515 type DataType = u8;
1516}
1517
1518#[doc = "Binary Counter 1 Alarm Register"]
1519pub type Bcnt1Ar = crate::RegValueT<Bcnt1Ar_SPEC>;
1520
1521impl Bcnt1Ar {
1522 #[doc = "he BCNT1AR counter is a readable/writable alarm register corresponding to 32-bit binary counter b15 to b8."]
1523 #[inline(always)]
1524 pub fn bcnt1ar(
1525 self,
1526 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt1Ar_SPEC, crate::common::RW> {
1527 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt1Ar_SPEC,crate::common::RW>::from_register(self,0)
1528 }
1529}
1530impl ::core::default::Default for Bcnt1Ar {
1531 #[inline(always)]
1532 fn default() -> Bcnt1Ar {
1533 <crate::RegValueT<Bcnt1Ar_SPEC> as RegisterValue<_>>::new(0)
1534 }
1535}
1536
1537#[doc(hidden)]
1538#[derive(Copy, Clone, Eq, PartialEq)]
1539pub struct Rhrar_SPEC;
1540impl crate::sealed::RegSpec for Rhrar_SPEC {
1541 type DataType = u8;
1542}
1543
1544#[doc = "Hour Alarm Register"]
1545pub type Rhrar = crate::RegValueT<Rhrar_SPEC>;
1546
1547impl Rhrar {
1548 #[doc = "Compare enable"]
1549 #[inline(always)]
1550 pub fn enb(
1551 self,
1552 ) -> crate::common::RegisterField<
1553 7,
1554 0x1,
1555 1,
1556 0,
1557 rhrar::Enb,
1558 rhrar::Enb,
1559 Rhrar_SPEC,
1560 crate::common::RW,
1561 > {
1562 crate::common::RegisterField::<
1563 7,
1564 0x1,
1565 1,
1566 0,
1567 rhrar::Enb,
1568 rhrar::Enb,
1569 Rhrar_SPEC,
1570 crate::common::RW,
1571 >::from_register(self, 0)
1572 }
1573
1574 #[doc = "Time Counter Setting for a.m./p.m."]
1575 #[inline(always)]
1576 pub fn pm(
1577 self,
1578 ) -> crate::common::RegisterField<
1579 6,
1580 0x1,
1581 1,
1582 0,
1583 rhrar::Pm,
1584 rhrar::Pm,
1585 Rhrar_SPEC,
1586 crate::common::RW,
1587 > {
1588 crate::common::RegisterField::<
1589 6,
1590 0x1,
1591 1,
1592 0,
1593 rhrar::Pm,
1594 rhrar::Pm,
1595 Rhrar_SPEC,
1596 crate::common::RW,
1597 >::from_register(self, 0)
1598 }
1599
1600 #[doc = "10-Hour Count Value for the tens place of hours"]
1601 #[inline(always)]
1602 pub fn hr10(
1603 self,
1604 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rhrar_SPEC, crate::common::RW> {
1605 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rhrar_SPEC,crate::common::RW>::from_register(self,0)
1606 }
1607
1608 #[doc = "1-Hour Count Value for the ones place of hours"]
1609 #[inline(always)]
1610 pub fn hr1(
1611 self,
1612 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rhrar_SPEC, crate::common::RW> {
1613 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rhrar_SPEC,crate::common::RW>::from_register(self,0)
1614 }
1615}
1616impl ::core::default::Default for Rhrar {
1617 #[inline(always)]
1618 fn default() -> Rhrar {
1619 <crate::RegValueT<Rhrar_SPEC> as RegisterValue<_>>::new(0)
1620 }
1621}
1622pub mod rhrar {
1623
1624 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1625 pub struct Enb_SPEC;
1626 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1627 impl Enb {
1628 #[doc = "The register value is not compared with the RHRCNT counter value."]
1629 pub const _0: Self = Self::new(0);
1630
1631 #[doc = "The register value is compared with the RHRCNT counter value."]
1632 pub const _1: Self = Self::new(1);
1633 }
1634 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1635 pub struct Pm_SPEC;
1636 pub type Pm = crate::EnumBitfieldStruct<u8, Pm_SPEC>;
1637 impl Pm {
1638 #[doc = "a.m."]
1639 pub const _0: Self = Self::new(0);
1640
1641 #[doc = "p.m."]
1642 pub const _1: Self = Self::new(1);
1643 }
1644}
1645#[doc(hidden)]
1646#[derive(Copy, Clone, Eq, PartialEq)]
1647pub struct Bcnt2Ar_SPEC;
1648impl crate::sealed::RegSpec for Bcnt2Ar_SPEC {
1649 type DataType = u8;
1650}
1651
1652#[doc = "Binary Counter 2 Alarm Register"]
1653pub type Bcnt2Ar = crate::RegValueT<Bcnt2Ar_SPEC>;
1654
1655impl Bcnt2Ar {
1656 #[doc = "The BCNT2AR counter is a readable/writable 32-bit binary counter b23 to b16."]
1657 #[inline(always)]
1658 pub fn bcnt2ar(
1659 self,
1660 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt2Ar_SPEC, crate::common::RW> {
1661 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt2Ar_SPEC,crate::common::RW>::from_register(self,0)
1662 }
1663}
1664impl ::core::default::Default for Bcnt2Ar {
1665 #[inline(always)]
1666 fn default() -> Bcnt2Ar {
1667 <crate::RegValueT<Bcnt2Ar_SPEC> as RegisterValue<_>>::new(0)
1668 }
1669}
1670
1671#[doc(hidden)]
1672#[derive(Copy, Clone, Eq, PartialEq)]
1673pub struct Rwkar_SPEC;
1674impl crate::sealed::RegSpec for Rwkar_SPEC {
1675 type DataType = u8;
1676}
1677
1678#[doc = "Day-of-Week Alarm Register"]
1679pub type Rwkar = crate::RegValueT<Rwkar_SPEC>;
1680
1681impl Rwkar {
1682 #[doc = "Compare enable"]
1683 #[inline(always)]
1684 pub fn enb(
1685 self,
1686 ) -> crate::common::RegisterField<
1687 7,
1688 0x1,
1689 1,
1690 0,
1691 rwkar::Enb,
1692 rwkar::Enb,
1693 Rwkar_SPEC,
1694 crate::common::RW,
1695 > {
1696 crate::common::RegisterField::<
1697 7,
1698 0x1,
1699 1,
1700 0,
1701 rwkar::Enb,
1702 rwkar::Enb,
1703 Rwkar_SPEC,
1704 crate::common::RW,
1705 >::from_register(self, 0)
1706 }
1707
1708 #[doc = "Day-of-Week Counting"]
1709 #[inline(always)]
1710 pub fn dayw(
1711 self,
1712 ) -> crate::common::RegisterField<
1713 0,
1714 0x7,
1715 1,
1716 0,
1717 rwkar::Dayw,
1718 rwkar::Dayw,
1719 Rwkar_SPEC,
1720 crate::common::RW,
1721 > {
1722 crate::common::RegisterField::<
1723 0,
1724 0x7,
1725 1,
1726 0,
1727 rwkar::Dayw,
1728 rwkar::Dayw,
1729 Rwkar_SPEC,
1730 crate::common::RW,
1731 >::from_register(self, 0)
1732 }
1733}
1734impl ::core::default::Default for Rwkar {
1735 #[inline(always)]
1736 fn default() -> Rwkar {
1737 <crate::RegValueT<Rwkar_SPEC> as RegisterValue<_>>::new(0)
1738 }
1739}
1740pub mod rwkar {
1741
1742 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1743 pub struct Enb_SPEC;
1744 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1745 impl Enb {
1746 #[doc = "The register value is not compared with the RWKCNT counter value."]
1747 pub const _0: Self = Self::new(0);
1748
1749 #[doc = "The register value is compared with the RWKCNT counter value."]
1750 pub const _1: Self = Self::new(1);
1751 }
1752 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1753 pub struct Dayw_SPEC;
1754 pub type Dayw = crate::EnumBitfieldStruct<u8, Dayw_SPEC>;
1755 impl Dayw {
1756 #[doc = "Sunday"]
1757 pub const _000: Self = Self::new(0);
1758
1759 #[doc = "Monday"]
1760 pub const _001: Self = Self::new(1);
1761
1762 #[doc = "Tuesday"]
1763 pub const _010: Self = Self::new(2);
1764
1765 #[doc = "Wednesday"]
1766 pub const _011: Self = Self::new(3);
1767
1768 #[doc = "Thursday"]
1769 pub const _100: Self = Self::new(4);
1770
1771 #[doc = "Friday"]
1772 pub const _101: Self = Self::new(5);
1773
1774 #[doc = "Saturday"]
1775 pub const _110: Self = Self::new(6);
1776
1777 #[doc = "Setting Prohibited"]
1778 pub const _111: Self = Self::new(7);
1779 }
1780}
1781#[doc(hidden)]
1782#[derive(Copy, Clone, Eq, PartialEq)]
1783pub struct Bcnt3Ar_SPEC;
1784impl crate::sealed::RegSpec for Bcnt3Ar_SPEC {
1785 type DataType = u8;
1786}
1787
1788#[doc = "Binary Counter 3 Alarm Register"]
1789pub type Bcnt3Ar = crate::RegValueT<Bcnt3Ar_SPEC>;
1790
1791impl Bcnt3Ar {
1792 #[doc = "The BCNT3AR counter is a readable/writable 32-bit binary counter b31 to b24."]
1793 #[inline(always)]
1794 pub fn bcnt3ar(
1795 self,
1796 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt3Ar_SPEC, crate::common::RW> {
1797 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt3Ar_SPEC,crate::common::RW>::from_register(self,0)
1798 }
1799}
1800impl ::core::default::Default for Bcnt3Ar {
1801 #[inline(always)]
1802 fn default() -> Bcnt3Ar {
1803 <crate::RegValueT<Bcnt3Ar_SPEC> as RegisterValue<_>>::new(0)
1804 }
1805}
1806
1807#[doc(hidden)]
1808#[derive(Copy, Clone, Eq, PartialEq)]
1809pub struct Rdayar_SPEC;
1810impl crate::sealed::RegSpec for Rdayar_SPEC {
1811 type DataType = u8;
1812}
1813
1814#[doc = "Date Alarm Register"]
1815pub type Rdayar = crate::RegValueT<Rdayar_SPEC>;
1816
1817impl Rdayar {
1818 #[doc = "Compare enable"]
1819 #[inline(always)]
1820 pub fn enb(
1821 self,
1822 ) -> crate::common::RegisterField<
1823 7,
1824 0x1,
1825 1,
1826 0,
1827 rdayar::Enb,
1828 rdayar::Enb,
1829 Rdayar_SPEC,
1830 crate::common::RW,
1831 > {
1832 crate::common::RegisterField::<
1833 7,
1834 0x1,
1835 1,
1836 0,
1837 rdayar::Enb,
1838 rdayar::Enb,
1839 Rdayar_SPEC,
1840 crate::common::RW,
1841 >::from_register(self, 0)
1842 }
1843
1844 #[doc = "10 Days Value for the tens place of days"]
1845 #[inline(always)]
1846 pub fn date10(
1847 self,
1848 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rdayar_SPEC, crate::common::RW> {
1849 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rdayar_SPEC,crate::common::RW>::from_register(self,0)
1850 }
1851
1852 #[doc = "1 Day Value for the ones place of days"]
1853 #[inline(always)]
1854 pub fn date1(
1855 self,
1856 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rdayar_SPEC, crate::common::RW> {
1857 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rdayar_SPEC,crate::common::RW>::from_register(self,0)
1858 }
1859}
1860impl ::core::default::Default for Rdayar {
1861 #[inline(always)]
1862 fn default() -> Rdayar {
1863 <crate::RegValueT<Rdayar_SPEC> as RegisterValue<_>>::new(0)
1864 }
1865}
1866pub mod rdayar {
1867
1868 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1869 pub struct Enb_SPEC;
1870 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1871 impl Enb {
1872 #[doc = "The register value is not compared with the RDAYCNT counter value."]
1873 pub const _0: Self = Self::new(0);
1874
1875 #[doc = "The register value is compared with the RDAYCNT counter value."]
1876 pub const _1: Self = Self::new(1);
1877 }
1878}
1879#[doc(hidden)]
1880#[derive(Copy, Clone, Eq, PartialEq)]
1881pub struct Bcnt0Aer_SPEC;
1882impl crate::sealed::RegSpec for Bcnt0Aer_SPEC {
1883 type DataType = u8;
1884}
1885
1886#[doc = "Binary Counter 0 Alarm Enable Register"]
1887pub type Bcnt0Aer = crate::RegValueT<Bcnt0Aer_SPEC>;
1888
1889impl Bcnt0Aer {
1890 #[doc = "The BCNT0AER register is a readable/writable register for setting the alarm enable corresponding to 32-bit binary counter b7 to b0."]
1891 #[inline(always)]
1892 pub fn enb(
1893 self,
1894 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt0Aer_SPEC, crate::common::RW> {
1895 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt0Aer_SPEC,crate::common::RW>::from_register(self,0)
1896 }
1897}
1898impl ::core::default::Default for Bcnt0Aer {
1899 #[inline(always)]
1900 fn default() -> Bcnt0Aer {
1901 <crate::RegValueT<Bcnt0Aer_SPEC> as RegisterValue<_>>::new(0)
1902 }
1903}
1904
1905#[doc(hidden)]
1906#[derive(Copy, Clone, Eq, PartialEq)]
1907pub struct Rmonar_SPEC;
1908impl crate::sealed::RegSpec for Rmonar_SPEC {
1909 type DataType = u8;
1910}
1911
1912#[doc = "Month Alarm Register"]
1913pub type Rmonar = crate::RegValueT<Rmonar_SPEC>;
1914
1915impl Rmonar {
1916 #[doc = "Compare enable"]
1917 #[inline(always)]
1918 pub fn enb(
1919 self,
1920 ) -> crate::common::RegisterField<
1921 7,
1922 0x1,
1923 1,
1924 0,
1925 rmonar::Enb,
1926 rmonar::Enb,
1927 Rmonar_SPEC,
1928 crate::common::RW,
1929 > {
1930 crate::common::RegisterField::<
1931 7,
1932 0x1,
1933 1,
1934 0,
1935 rmonar::Enb,
1936 rmonar::Enb,
1937 Rmonar_SPEC,
1938 crate::common::RW,
1939 >::from_register(self, 0)
1940 }
1941
1942 #[doc = "10 Months Value for the tens place of months"]
1943 #[inline(always)]
1944 pub fn mon10(
1945 self,
1946 ) -> crate::common::RegisterFieldBool<4, 1, 0, Rmonar_SPEC, crate::common::RW> {
1947 crate::common::RegisterFieldBool::<4, 1, 0, Rmonar_SPEC, crate::common::RW>::from_register(
1948 self, 0,
1949 )
1950 }
1951
1952 #[doc = "1 Month Value for the ones place of months"]
1953 #[inline(always)]
1954 pub fn mon1(
1955 self,
1956 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rmonar_SPEC, crate::common::RW> {
1957 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rmonar_SPEC,crate::common::RW>::from_register(self,0)
1958 }
1959}
1960impl ::core::default::Default for Rmonar {
1961 #[inline(always)]
1962 fn default() -> Rmonar {
1963 <crate::RegValueT<Rmonar_SPEC> as RegisterValue<_>>::new(0)
1964 }
1965}
1966pub mod rmonar {
1967
1968 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1969 pub struct Enb_SPEC;
1970 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
1971 impl Enb {
1972 #[doc = "The register value is not compared with the RMONCNT counter value."]
1973 pub const _0: Self = Self::new(0);
1974
1975 #[doc = "The register value is compared with the RMONCNT counter value."]
1976 pub const _1: Self = Self::new(1);
1977 }
1978}
1979#[doc(hidden)]
1980#[derive(Copy, Clone, Eq, PartialEq)]
1981pub struct Bcnt1Aer_SPEC;
1982impl crate::sealed::RegSpec for Bcnt1Aer_SPEC {
1983 type DataType = u8;
1984}
1985
1986#[doc = "Binary Counter 1 Alarm Enable Register"]
1987pub type Bcnt1Aer = crate::RegValueT<Bcnt1Aer_SPEC>;
1988
1989impl Bcnt1Aer {
1990 #[doc = "The BCNT1AER register is a readable/writable register for setting the alarm enable corresponding to 32-bit binary counter b15 to b8."]
1991 #[inline(always)]
1992 pub fn enb(
1993 self,
1994 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt1Aer_SPEC, crate::common::RW> {
1995 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt1Aer_SPEC,crate::common::RW>::from_register(self,0)
1996 }
1997}
1998impl ::core::default::Default for Bcnt1Aer {
1999 #[inline(always)]
2000 fn default() -> Bcnt1Aer {
2001 <crate::RegValueT<Bcnt1Aer_SPEC> as RegisterValue<_>>::new(0)
2002 }
2003}
2004
2005#[doc(hidden)]
2006#[derive(Copy, Clone, Eq, PartialEq)]
2007pub struct Ryrar_SPEC;
2008impl crate::sealed::RegSpec for Ryrar_SPEC {
2009 type DataType = u16;
2010}
2011
2012#[doc = "Year Alarm Register"]
2013pub type Ryrar = crate::RegValueT<Ryrar_SPEC>;
2014
2015impl Ryrar {
2016 #[doc = "10 Years Value for the tens place of years"]
2017 #[inline(always)]
2018 pub fn yr10(
2019 self,
2020 ) -> crate::common::RegisterField<4, 0xf, 1, 0, u8, u8, Ryrar_SPEC, crate::common::RW> {
2021 crate::common::RegisterField::<4,0xf,1,0,u8,u8,Ryrar_SPEC,crate::common::RW>::from_register(self,0)
2022 }
2023
2024 #[doc = "1 Year Value for the ones place of years"]
2025 #[inline(always)]
2026 pub fn yr1(
2027 self,
2028 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Ryrar_SPEC, crate::common::RW> {
2029 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Ryrar_SPEC,crate::common::RW>::from_register(self,0)
2030 }
2031}
2032impl ::core::default::Default for Ryrar {
2033 #[inline(always)]
2034 fn default() -> Ryrar {
2035 <crate::RegValueT<Ryrar_SPEC> as RegisterValue<_>>::new(0)
2036 }
2037}
2038
2039#[doc(hidden)]
2040#[derive(Copy, Clone, Eq, PartialEq)]
2041pub struct Bcnt2Aer_SPEC;
2042impl crate::sealed::RegSpec for Bcnt2Aer_SPEC {
2043 type DataType = u16;
2044}
2045
2046#[doc = "Binary Counter 2 Alarm Enable Register"]
2047pub type Bcnt2Aer = crate::RegValueT<Bcnt2Aer_SPEC>;
2048
2049impl Bcnt2Aer {
2050 #[doc = "The BCNT2AER register is a readable/writable register for setting the alarm enable corresponding to 32-bit binary counter b23 to b16."]
2051 #[inline(always)]
2052 pub fn enb(
2053 self,
2054 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt2Aer_SPEC, crate::common::RW> {
2055 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt2Aer_SPEC,crate::common::RW>::from_register(self,0)
2056 }
2057}
2058impl ::core::default::Default for Bcnt2Aer {
2059 #[inline(always)]
2060 fn default() -> Bcnt2Aer {
2061 <crate::RegValueT<Bcnt2Aer_SPEC> as RegisterValue<_>>::new(0)
2062 }
2063}
2064
2065#[doc(hidden)]
2066#[derive(Copy, Clone, Eq, PartialEq)]
2067pub struct Ryraren_SPEC;
2068impl crate::sealed::RegSpec for Ryraren_SPEC {
2069 type DataType = u8;
2070}
2071
2072#[doc = "Year Alarm Enable Register"]
2073pub type Ryraren = crate::RegValueT<Ryraren_SPEC>;
2074
2075impl Ryraren {
2076 #[doc = "Compare enable"]
2077 #[inline(always)]
2078 pub fn enb(
2079 self,
2080 ) -> crate::common::RegisterField<
2081 7,
2082 0x1,
2083 1,
2084 0,
2085 ryraren::Enb,
2086 ryraren::Enb,
2087 Ryraren_SPEC,
2088 crate::common::RW,
2089 > {
2090 crate::common::RegisterField::<
2091 7,
2092 0x1,
2093 1,
2094 0,
2095 ryraren::Enb,
2096 ryraren::Enb,
2097 Ryraren_SPEC,
2098 crate::common::RW,
2099 >::from_register(self, 0)
2100 }
2101}
2102impl ::core::default::Default for Ryraren {
2103 #[inline(always)]
2104 fn default() -> Ryraren {
2105 <crate::RegValueT<Ryraren_SPEC> as RegisterValue<_>>::new(0)
2106 }
2107}
2108pub mod ryraren {
2109
2110 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2111 pub struct Enb_SPEC;
2112 pub type Enb = crate::EnumBitfieldStruct<u8, Enb_SPEC>;
2113 impl Enb {
2114 #[doc = "The register value is not compared with the RYRCNT counter value."]
2115 pub const _0: Self = Self::new(0);
2116
2117 #[doc = "The register value is compared with the RYRCNT counter value."]
2118 pub const _1: Self = Self::new(1);
2119 }
2120}
2121#[doc(hidden)]
2122#[derive(Copy, Clone, Eq, PartialEq)]
2123pub struct Bcnt3Aer_SPEC;
2124impl crate::sealed::RegSpec for Bcnt3Aer_SPEC {
2125 type DataType = u8;
2126}
2127
2128#[doc = "Binary Counter 3 Alarm Enable Register"]
2129pub type Bcnt3Aer = crate::RegValueT<Bcnt3Aer_SPEC>;
2130
2131impl Bcnt3Aer {
2132 #[doc = "The BCNT3AER register is a readable/writable register for setting the alarm enable corresponding to 32-bit binary counter b31 to b24."]
2133 #[inline(always)]
2134 pub fn enb(
2135 self,
2136 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt3Aer_SPEC, crate::common::RW> {
2137 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt3Aer_SPEC,crate::common::RW>::from_register(self,0)
2138 }
2139}
2140impl ::core::default::Default for Bcnt3Aer {
2141 #[inline(always)]
2142 fn default() -> Bcnt3Aer {
2143 <crate::RegValueT<Bcnt3Aer_SPEC> as RegisterValue<_>>::new(0)
2144 }
2145}
2146
2147#[doc(hidden)]
2148#[derive(Copy, Clone, Eq, PartialEq)]
2149pub struct Rcr1_SPEC;
2150impl crate::sealed::RegSpec for Rcr1_SPEC {
2151 type DataType = u8;
2152}
2153
2154#[doc = "RTC Control Register 1"]
2155pub type Rcr1 = crate::RegValueT<Rcr1_SPEC>;
2156
2157impl Rcr1 {
2158 #[doc = "Periodic Interrupt Select"]
2159 #[inline(always)]
2160 pub fn pes(
2161 self,
2162 ) -> crate::common::RegisterField<
2163 4,
2164 0xf,
2165 1,
2166 0,
2167 rcr1::Pes,
2168 rcr1::Pes,
2169 Rcr1_SPEC,
2170 crate::common::RW,
2171 > {
2172 crate::common::RegisterField::<
2173 4,
2174 0xf,
2175 1,
2176 0,
2177 rcr1::Pes,
2178 rcr1::Pes,
2179 Rcr1_SPEC,
2180 crate::common::RW,
2181 >::from_register(self, 0)
2182 }
2183
2184 #[doc = "RTCOUT Output Select"]
2185 #[inline(always)]
2186 pub fn rtcos(
2187 self,
2188 ) -> crate::common::RegisterField<
2189 3,
2190 0x1,
2191 1,
2192 0,
2193 rcr1::Rtcos,
2194 rcr1::Rtcos,
2195 Rcr1_SPEC,
2196 crate::common::RW,
2197 > {
2198 crate::common::RegisterField::<
2199 3,
2200 0x1,
2201 1,
2202 0,
2203 rcr1::Rtcos,
2204 rcr1::Rtcos,
2205 Rcr1_SPEC,
2206 crate::common::RW,
2207 >::from_register(self, 0)
2208 }
2209
2210 #[doc = "Periodic Interrupt Enable"]
2211 #[inline(always)]
2212 pub fn pie(
2213 self,
2214 ) -> crate::common::RegisterField<
2215 2,
2216 0x1,
2217 1,
2218 0,
2219 rcr1::Pie,
2220 rcr1::Pie,
2221 Rcr1_SPEC,
2222 crate::common::RW,
2223 > {
2224 crate::common::RegisterField::<
2225 2,
2226 0x1,
2227 1,
2228 0,
2229 rcr1::Pie,
2230 rcr1::Pie,
2231 Rcr1_SPEC,
2232 crate::common::RW,
2233 >::from_register(self, 0)
2234 }
2235
2236 #[doc = "Carry Interrupt Enable"]
2237 #[inline(always)]
2238 pub fn cie(
2239 self,
2240 ) -> crate::common::RegisterField<
2241 1,
2242 0x1,
2243 1,
2244 0,
2245 rcr1::Cie,
2246 rcr1::Cie,
2247 Rcr1_SPEC,
2248 crate::common::RW,
2249 > {
2250 crate::common::RegisterField::<
2251 1,
2252 0x1,
2253 1,
2254 0,
2255 rcr1::Cie,
2256 rcr1::Cie,
2257 Rcr1_SPEC,
2258 crate::common::RW,
2259 >::from_register(self, 0)
2260 }
2261
2262 #[doc = "Alarm Interrupt Enable"]
2263 #[inline(always)]
2264 pub fn aie(
2265 self,
2266 ) -> crate::common::RegisterField<
2267 0,
2268 0x1,
2269 1,
2270 0,
2271 rcr1::Aie,
2272 rcr1::Aie,
2273 Rcr1_SPEC,
2274 crate::common::RW,
2275 > {
2276 crate::common::RegisterField::<
2277 0,
2278 0x1,
2279 1,
2280 0,
2281 rcr1::Aie,
2282 rcr1::Aie,
2283 Rcr1_SPEC,
2284 crate::common::RW,
2285 >::from_register(self, 0)
2286 }
2287}
2288impl ::core::default::Default for Rcr1 {
2289 #[inline(always)]
2290 fn default() -> Rcr1 {
2291 <crate::RegValueT<Rcr1_SPEC> as RegisterValue<_>>::new(0)
2292 }
2293}
2294pub mod rcr1 {
2295
2296 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2297 pub struct Pes_SPEC;
2298 pub type Pes = crate::EnumBitfieldStruct<u8, Pes_SPEC>;
2299 impl Pes {
2300 #[doc = "A periodic interrupt is generated every 1/256 second((RCR4.RCKSEL = 0)./A periodic interrupt is generated every 1/128 second((RCR4.RCKSEL = 1)."]
2301 pub const _0110: Self = Self::new(6);
2302
2303 #[doc = "A periodic interrupt is generated every 1/128 second."]
2304 pub const _0111: Self = Self::new(7);
2305
2306 #[doc = "A periodic interrupt is generated every 1/64 second."]
2307 pub const _1000: Self = Self::new(8);
2308
2309 #[doc = "A periodic interrupt is generated every 1/32 second."]
2310 pub const _1001: Self = Self::new(9);
2311
2312 #[doc = "A periodic interrupt is generated every 1/16 second."]
2313 pub const _1010: Self = Self::new(10);
2314
2315 #[doc = "A periodic interrupt is generated every 1/8 second."]
2316 pub const _1011: Self = Self::new(11);
2317
2318 #[doc = "A periodic interrupt is generated every 1/4 second."]
2319 pub const _1100: Self = Self::new(12);
2320
2321 #[doc = "A periodic interrupt is generated every 1/2 second."]
2322 pub const _1101: Self = Self::new(13);
2323
2324 #[doc = "A periodic interrupt is generated every 1 second."]
2325 pub const _1110: Self = Self::new(14);
2326
2327 #[doc = "A periodic interrupt is generated every 2 seconds."]
2328 pub const _1111: Self = Self::new(15);
2329 }
2330 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2331 pub struct Rtcos_SPEC;
2332 pub type Rtcos = crate::EnumBitfieldStruct<u8, Rtcos_SPEC>;
2333 impl Rtcos {
2334 #[doc = "RTCOUT outputs 1 Hz."]
2335 pub const _0: Self = Self::new(0);
2336
2337 #[doc = "RTCOUT outputs 64 Hz."]
2338 pub const _1: Self = Self::new(1);
2339 }
2340 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2341 pub struct Pie_SPEC;
2342 pub type Pie = crate::EnumBitfieldStruct<u8, Pie_SPEC>;
2343 impl Pie {
2344 #[doc = "A periodic interrupt request is disabled."]
2345 pub const _0: Self = Self::new(0);
2346
2347 #[doc = "A periodic interrupt request is enabled."]
2348 pub const _1: Self = Self::new(1);
2349 }
2350 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2351 pub struct Cie_SPEC;
2352 pub type Cie = crate::EnumBitfieldStruct<u8, Cie_SPEC>;
2353 impl Cie {
2354 #[doc = "A carry interrupt request is disabled."]
2355 pub const _0: Self = Self::new(0);
2356
2357 #[doc = "A carry interrupt request is enabled."]
2358 pub const _1: Self = Self::new(1);
2359 }
2360 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2361 pub struct Aie_SPEC;
2362 pub type Aie = crate::EnumBitfieldStruct<u8, Aie_SPEC>;
2363 impl Aie {
2364 #[doc = "An alarm interrupt request is disabled."]
2365 pub const _0: Self = Self::new(0);
2366
2367 #[doc = "An alarm interrupt request is enabled."]
2368 pub const _1: Self = Self::new(1);
2369 }
2370}
2371#[doc(hidden)]
2372#[derive(Copy, Clone, Eq, PartialEq)]
2373pub struct Rcr2_SPEC;
2374impl crate::sealed::RegSpec for Rcr2_SPEC {
2375 type DataType = u8;
2376}
2377
2378#[doc = "RTC Control Register 2"]
2379pub type Rcr2 = crate::RegValueT<Rcr2_SPEC>;
2380
2381impl Rcr2 {
2382 #[doc = "Count Mode Select"]
2383 #[inline(always)]
2384 pub fn cntmd(
2385 self,
2386 ) -> crate::common::RegisterField<
2387 7,
2388 0x1,
2389 1,
2390 0,
2391 rcr2::Cntmd,
2392 rcr2::Cntmd,
2393 Rcr2_SPEC,
2394 crate::common::RW,
2395 > {
2396 crate::common::RegisterField::<
2397 7,
2398 0x1,
2399 1,
2400 0,
2401 rcr2::Cntmd,
2402 rcr2::Cntmd,
2403 Rcr2_SPEC,
2404 crate::common::RW,
2405 >::from_register(self, 0)
2406 }
2407
2408 #[doc = "Hours Mode"]
2409 #[inline(always)]
2410 pub fn hr24(
2411 self,
2412 ) -> crate::common::RegisterField<
2413 6,
2414 0x1,
2415 1,
2416 0,
2417 rcr2::Hr24,
2418 rcr2::Hr24,
2419 Rcr2_SPEC,
2420 crate::common::RW,
2421 > {
2422 crate::common::RegisterField::<
2423 6,
2424 0x1,
2425 1,
2426 0,
2427 rcr2::Hr24,
2428 rcr2::Hr24,
2429 Rcr2_SPEC,
2430 crate::common::RW,
2431 >::from_register(self, 0)
2432 }
2433
2434 #[doc = "Automatic Adjustment Period Select (When the LOCO clock is selected, the setting of this bit is disabled.)"]
2435 #[inline(always)]
2436 pub fn aadjp(
2437 self,
2438 ) -> crate::common::RegisterField<
2439 5,
2440 0x1,
2441 1,
2442 0,
2443 rcr2::Aadjp,
2444 rcr2::Aadjp,
2445 Rcr2_SPEC,
2446 crate::common::RW,
2447 > {
2448 crate::common::RegisterField::<
2449 5,
2450 0x1,
2451 1,
2452 0,
2453 rcr2::Aadjp,
2454 rcr2::Aadjp,
2455 Rcr2_SPEC,
2456 crate::common::RW,
2457 >::from_register(self, 0)
2458 }
2459
2460 #[doc = "Automatic Adjustment Enable (When the LOCO clock is selected, the setting of this bit is disabled.)"]
2461 #[inline(always)]
2462 pub fn aadje(
2463 self,
2464 ) -> crate::common::RegisterField<
2465 4,
2466 0x1,
2467 1,
2468 0,
2469 rcr2::Aadje,
2470 rcr2::Aadje,
2471 Rcr2_SPEC,
2472 crate::common::RW,
2473 > {
2474 crate::common::RegisterField::<
2475 4,
2476 0x1,
2477 1,
2478 0,
2479 rcr2::Aadje,
2480 rcr2::Aadje,
2481 Rcr2_SPEC,
2482 crate::common::RW,
2483 >::from_register(self, 0)
2484 }
2485
2486 #[doc = "RTCOUT Output Enable"]
2487 #[inline(always)]
2488 pub fn rtcoe(
2489 self,
2490 ) -> crate::common::RegisterField<
2491 3,
2492 0x1,
2493 1,
2494 0,
2495 rcr2::Rtcoe,
2496 rcr2::Rtcoe,
2497 Rcr2_SPEC,
2498 crate::common::RW,
2499 > {
2500 crate::common::RegisterField::<
2501 3,
2502 0x1,
2503 1,
2504 0,
2505 rcr2::Rtcoe,
2506 rcr2::Rtcoe,
2507 Rcr2_SPEC,
2508 crate::common::RW,
2509 >::from_register(self, 0)
2510 }
2511
2512 #[doc = "30-Second Adjustment"]
2513 #[inline(always)]
2514 pub fn adj30(
2515 self,
2516 ) -> crate::common::RegisterField<
2517 2,
2518 0x1,
2519 1,
2520 0,
2521 rcr2::Adj30,
2522 rcr2::Adj30,
2523 Rcr2_SPEC,
2524 crate::common::RW,
2525 > {
2526 crate::common::RegisterField::<
2527 2,
2528 0x1,
2529 1,
2530 0,
2531 rcr2::Adj30,
2532 rcr2::Adj30,
2533 Rcr2_SPEC,
2534 crate::common::RW,
2535 >::from_register(self, 0)
2536 }
2537
2538 #[doc = "RTC Software Reset"]
2539 #[inline(always)]
2540 pub fn reset(
2541 self,
2542 ) -> crate::common::RegisterField<
2543 1,
2544 0x1,
2545 1,
2546 0,
2547 rcr2::Reset,
2548 rcr2::Reset,
2549 Rcr2_SPEC,
2550 crate::common::RW,
2551 > {
2552 crate::common::RegisterField::<
2553 1,
2554 0x1,
2555 1,
2556 0,
2557 rcr2::Reset,
2558 rcr2::Reset,
2559 Rcr2_SPEC,
2560 crate::common::RW,
2561 >::from_register(self, 0)
2562 }
2563
2564 #[doc = "Start"]
2565 #[inline(always)]
2566 pub fn start(
2567 self,
2568 ) -> crate::common::RegisterField<
2569 0,
2570 0x1,
2571 1,
2572 0,
2573 rcr2::Start,
2574 rcr2::Start,
2575 Rcr2_SPEC,
2576 crate::common::RW,
2577 > {
2578 crate::common::RegisterField::<
2579 0,
2580 0x1,
2581 1,
2582 0,
2583 rcr2::Start,
2584 rcr2::Start,
2585 Rcr2_SPEC,
2586 crate::common::RW,
2587 >::from_register(self, 0)
2588 }
2589}
2590impl ::core::default::Default for Rcr2 {
2591 #[inline(always)]
2592 fn default() -> Rcr2 {
2593 <crate::RegValueT<Rcr2_SPEC> as RegisterValue<_>>::new(0)
2594 }
2595}
2596pub mod rcr2 {
2597
2598 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2599 pub struct Cntmd_SPEC;
2600 pub type Cntmd = crate::EnumBitfieldStruct<u8, Cntmd_SPEC>;
2601 impl Cntmd {
2602 #[doc = "The calendar count mode."]
2603 pub const _0: Self = Self::new(0);
2604
2605 #[doc = "The binary count mode."]
2606 pub const _1: Self = Self::new(1);
2607 }
2608 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2609 pub struct Hr24_SPEC;
2610 pub type Hr24 = crate::EnumBitfieldStruct<u8, Hr24_SPEC>;
2611 impl Hr24 {
2612 #[doc = "The RTC operates in 12-hour mode."]
2613 pub const _0: Self = Self::new(0);
2614
2615 #[doc = "The RTC operates in 24-hour mode."]
2616 pub const _1: Self = Self::new(1);
2617 }
2618 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2619 pub struct Aadjp_SPEC;
2620 pub type Aadjp = crate::EnumBitfieldStruct<u8, Aadjp_SPEC>;
2621 impl Aadjp {
2622 #[doc = "The RADJ.ADJ\\[5:0\\] setting value is adjusted from the count value of the prescaler every minute."]
2623 pub const _0: Self = Self::new(0);
2624
2625 #[doc = "The RADJ.ADJ\\[5:0\\] setting value is adjusted from the count value of the prescaler every 10 seconds."]
2626 pub const _1: Self = Self::new(1);
2627 }
2628 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2629 pub struct Aadje_SPEC;
2630 pub type Aadje = crate::EnumBitfieldStruct<u8, Aadje_SPEC>;
2631 impl Aadje {
2632 #[doc = "Automatic adjustment is disabled."]
2633 pub const _0: Self = Self::new(0);
2634
2635 #[doc = "Automatic adjustment is enabled."]
2636 pub const _1: Self = Self::new(1);
2637 }
2638 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2639 pub struct Rtcoe_SPEC;
2640 pub type Rtcoe = crate::EnumBitfieldStruct<u8, Rtcoe_SPEC>;
2641 impl Rtcoe {
2642 #[doc = "RTCOUT output disabled."]
2643 pub const _0: Self = Self::new(0);
2644
2645 #[doc = "RTCOUT output enabled."]
2646 pub const _1: Self = Self::new(1);
2647 }
2648 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2649 pub struct Adj30_SPEC;
2650 pub type Adj30 = crate::EnumBitfieldStruct<u8, Adj30_SPEC>;
2651 impl Adj30 {
2652 #[doc = "Writing is invalid.(write) / In normal time operation, or 30-second adjustment has completed.(read)"]
2653 pub const _0: Self = Self::new(0);
2654
2655 #[doc = "30-second adjustment is executed.(write) / During 30-second adjustment.(read)"]
2656 pub const _1: Self = Self::new(1);
2657 }
2658 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2659 pub struct Reset_SPEC;
2660 pub type Reset = crate::EnumBitfieldStruct<u8, Reset_SPEC>;
2661 impl Reset {
2662 #[doc = "Writing is invalid.(write) / In normal time operation, or an RTC software reset has completed.(read)"]
2663 pub const _0: Self = Self::new(0);
2664
2665 #[doc = "The prescaler and the target registers for RTC software reset *1 are initialized.(write) / During an RTC software reset.(read)"]
2666 pub const _1: Self = Self::new(1);
2667 }
2668 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2669 pub struct Start_SPEC;
2670 pub type Start = crate::EnumBitfieldStruct<u8, Start_SPEC>;
2671 impl Start {
2672 #[doc = "Prescaler and time counter are stopped."]
2673 pub const _0: Self = Self::new(0);
2674
2675 #[doc = "Prescaler and time counter operate normally."]
2676 pub const _1: Self = Self::new(1);
2677 }
2678}
2679#[doc(hidden)]
2680#[derive(Copy, Clone, Eq, PartialEq)]
2681pub struct Rcr4_SPEC;
2682impl crate::sealed::RegSpec for Rcr4_SPEC {
2683 type DataType = u8;
2684}
2685
2686#[doc = "RTC Control Register 4"]
2687pub type Rcr4 = crate::RegValueT<Rcr4_SPEC>;
2688
2689impl Rcr4 {
2690 #[doc = "Count Source Select"]
2691 #[inline(always)]
2692 pub fn rcksel(
2693 self,
2694 ) -> crate::common::RegisterField<
2695 0,
2696 0x1,
2697 1,
2698 0,
2699 rcr4::Rcksel,
2700 rcr4::Rcksel,
2701 Rcr4_SPEC,
2702 crate::common::RW,
2703 > {
2704 crate::common::RegisterField::<
2705 0,
2706 0x1,
2707 1,
2708 0,
2709 rcr4::Rcksel,
2710 rcr4::Rcksel,
2711 Rcr4_SPEC,
2712 crate::common::RW,
2713 >::from_register(self, 0)
2714 }
2715}
2716impl ::core::default::Default for Rcr4 {
2717 #[inline(always)]
2718 fn default() -> Rcr4 {
2719 <crate::RegValueT<Rcr4_SPEC> as RegisterValue<_>>::new(0)
2720 }
2721}
2722pub mod rcr4 {
2723
2724 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2725 pub struct Rcksel_SPEC;
2726 pub type Rcksel = crate::EnumBitfieldStruct<u8, Rcksel_SPEC>;
2727 impl Rcksel {
2728 #[doc = "Sub-clock oscillator is selected."]
2729 pub const _0: Self = Self::new(0);
2730
2731 #[doc = "LOCO clock oscillator is selected."]
2732 pub const _1: Self = Self::new(1);
2733 }
2734}
2735#[doc(hidden)]
2736#[derive(Copy, Clone, Eq, PartialEq)]
2737pub struct Rfrh_SPEC;
2738impl crate::sealed::RegSpec for Rfrh_SPEC {
2739 type DataType = u16;
2740}
2741
2742#[doc = "Frequency Register H"]
2743pub type Rfrh = crate::RegValueT<Rfrh_SPEC>;
2744
2745impl Rfrh {
2746 #[doc = "Frequency Comparison Value (b16) To generate the operating clock from the LOCOclock, this bit sets the comparison value of the 128-Hz clock cycle."]
2747 #[inline(always)]
2748 pub fn rfc16(self) -> crate::common::RegisterFieldBool<0, 1, 0, Rfrh_SPEC, crate::common::RW> {
2749 crate::common::RegisterFieldBool::<0, 1, 0, Rfrh_SPEC, crate::common::RW>::from_register(
2750 self, 0,
2751 )
2752 }
2753}
2754impl ::core::default::Default for Rfrh {
2755 #[inline(always)]
2756 fn default() -> Rfrh {
2757 <crate::RegValueT<Rfrh_SPEC> as RegisterValue<_>>::new(0)
2758 }
2759}
2760
2761#[doc(hidden)]
2762#[derive(Copy, Clone, Eq, PartialEq)]
2763pub struct Rfrl_SPEC;
2764impl crate::sealed::RegSpec for Rfrl_SPEC {
2765 type DataType = u16;
2766}
2767
2768#[doc = "Frequency Register L"]
2769pub type Rfrl = crate::RegValueT<Rfrl_SPEC>;
2770
2771impl Rfrl {
2772 #[doc = "Frequency Comparison Value(b15-b0) To generate the operating clock from the main clock, this bit sets the comparison value of the 128-Hz clock cycle."]
2773 #[inline(always)]
2774 pub fn rfc(
2775 self,
2776 ) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Rfrl_SPEC, crate::common::RW> {
2777 crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Rfrl_SPEC,crate::common::RW>::from_register(self,0)
2778 }
2779}
2780impl ::core::default::Default for Rfrl {
2781 #[inline(always)]
2782 fn default() -> Rfrl {
2783 <crate::RegValueT<Rfrl_SPEC> as RegisterValue<_>>::new(0)
2784 }
2785}
2786
2787#[doc(hidden)]
2788#[derive(Copy, Clone, Eq, PartialEq)]
2789pub struct Radj_SPEC;
2790impl crate::sealed::RegSpec for Radj_SPEC {
2791 type DataType = u8;
2792}
2793
2794#[doc = "Time Error Adjustment Register"]
2795pub type Radj = crate::RegValueT<Radj_SPEC>;
2796
2797impl Radj {
2798 #[doc = "Plus-Minus"]
2799 #[inline(always)]
2800 pub fn pmadj(
2801 self,
2802 ) -> crate::common::RegisterField<
2803 6,
2804 0x3,
2805 1,
2806 0,
2807 radj::Pmadj,
2808 radj::Pmadj,
2809 Radj_SPEC,
2810 crate::common::RW,
2811 > {
2812 crate::common::RegisterField::<
2813 6,
2814 0x3,
2815 1,
2816 0,
2817 radj::Pmadj,
2818 radj::Pmadj,
2819 Radj_SPEC,
2820 crate::common::RW,
2821 >::from_register(self, 0)
2822 }
2823
2824 #[doc = "Adjustment Value These bits specify the adjustment value from the prescaler."]
2825 #[inline(always)]
2826 pub fn adj(
2827 self,
2828 ) -> crate::common::RegisterField<0, 0x3f, 1, 0, u8, u8, Radj_SPEC, crate::common::RW> {
2829 crate::common::RegisterField::<0,0x3f,1,0,u8,u8,Radj_SPEC,crate::common::RW>::from_register(self,0)
2830 }
2831}
2832impl ::core::default::Default for Radj {
2833 #[inline(always)]
2834 fn default() -> Radj {
2835 <crate::RegValueT<Radj_SPEC> as RegisterValue<_>>::new(0)
2836 }
2837}
2838pub mod radj {
2839
2840 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2841 pub struct Pmadj_SPEC;
2842 pub type Pmadj = crate::EnumBitfieldStruct<u8, Pmadj_SPEC>;
2843 impl Pmadj {
2844 #[doc = "Adjustment is not performed."]
2845 pub const _00: Self = Self::new(0);
2846
2847 #[doc = "Adjustment is performed by the addition to the prescaler."]
2848 pub const _01: Self = Self::new(1);
2849
2850 #[doc = "Adjustment is performed by the subtraction from the prescaler."]
2851 pub const _10: Self = Self::new(2);
2852
2853 #[doc = "Setting prohibited"]
2854 pub const _11: Self = Self::new(3);
2855 }
2856}
2857#[doc(hidden)]
2858#[derive(Copy, Clone, Eq, PartialEq)]
2859pub struct Rtccr_SPEC;
2860impl crate::sealed::RegSpec for Rtccr_SPEC {
2861 type DataType = u8;
2862}
2863
2864#[doc = "Time Capture Control Register %s"]
2865pub type Rtccr = crate::RegValueT<Rtccr_SPEC>;
2866
2867impl Rtccr {
2868 #[doc = "Time Capture Noise Filter Control"]
2869 #[inline(always)]
2870 pub fn tcnf(
2871 self,
2872 ) -> crate::common::RegisterField<
2873 4,
2874 0x3,
2875 1,
2876 0,
2877 rtccr::Tcnf,
2878 rtccr::Tcnf,
2879 Rtccr_SPEC,
2880 crate::common::RW,
2881 > {
2882 crate::common::RegisterField::<
2883 4,
2884 0x3,
2885 1,
2886 0,
2887 rtccr::Tcnf,
2888 rtccr::Tcnf,
2889 Rtccr_SPEC,
2890 crate::common::RW,
2891 >::from_register(self, 0)
2892 }
2893
2894 #[doc = "Time Capture Status"]
2895 #[inline(always)]
2896 pub fn tcst(
2897 self,
2898 ) -> crate::common::RegisterField<
2899 2,
2900 0x1,
2901 1,
2902 0,
2903 rtccr::Tcst,
2904 rtccr::Tcst,
2905 Rtccr_SPEC,
2906 crate::common::R,
2907 > {
2908 crate::common::RegisterField::<
2909 2,
2910 0x1,
2911 1,
2912 0,
2913 rtccr::Tcst,
2914 rtccr::Tcst,
2915 Rtccr_SPEC,
2916 crate::common::R,
2917 >::from_register(self, 0)
2918 }
2919
2920 #[doc = "Time Capture Control"]
2921 #[inline(always)]
2922 pub fn tcct(
2923 self,
2924 ) -> crate::common::RegisterField<
2925 0,
2926 0x3,
2927 1,
2928 0,
2929 rtccr::Tcct,
2930 rtccr::Tcct,
2931 Rtccr_SPEC,
2932 crate::common::RW,
2933 > {
2934 crate::common::RegisterField::<
2935 0,
2936 0x3,
2937 1,
2938 0,
2939 rtccr::Tcct,
2940 rtccr::Tcct,
2941 Rtccr_SPEC,
2942 crate::common::RW,
2943 >::from_register(self, 0)
2944 }
2945}
2946impl ::core::default::Default for Rtccr {
2947 #[inline(always)]
2948 fn default() -> Rtccr {
2949 <crate::RegValueT<Rtccr_SPEC> as RegisterValue<_>>::new(0)
2950 }
2951}
2952pub mod rtccr {
2953
2954 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2955 pub struct Tcnf_SPEC;
2956 pub type Tcnf = crate::EnumBitfieldStruct<u8, Tcnf_SPEC>;
2957 impl Tcnf {
2958 #[doc = "The noise filter is off."]
2959 pub const _00: Self = Self::new(0);
2960
2961 #[doc = "Setting prohibited"]
2962 pub const _01: Self = Self::new(1);
2963
2964 #[doc = "The noise filter is on (count source)."]
2965 pub const _10: Self = Self::new(2);
2966
2967 #[doc = "The noise filter is on (count source by divided by 32)."]
2968 pub const _11: Self = Self::new(3);
2969 }
2970 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2971 pub struct Tcst_SPEC;
2972 pub type Tcst = crate::EnumBitfieldStruct<u8, Tcst_SPEC>;
2973 impl Tcst {
2974 #[doc = "No event is detected."]
2975 pub const _0: Self = Self::new(0);
2976
2977 #[doc = "An event is detected."]
2978 pub const _1: Self = Self::new(1);
2979 }
2980 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2981 pub struct Tcct_SPEC;
2982 pub type Tcct = crate::EnumBitfieldStruct<u8, Tcct_SPEC>;
2983 impl Tcct {
2984 #[doc = "No event is detected."]
2985 pub const _00: Self = Self::new(0);
2986
2987 #[doc = "Rising edge is detected."]
2988 pub const _01: Self = Self::new(1);
2989
2990 #[doc = "Falling edge is detected."]
2991 pub const _10: Self = Self::new(2);
2992
2993 #[doc = "Both edges are detected."]
2994 pub const _11: Self = Self::new(3);
2995 }
2996}
2997#[doc(hidden)]
2998#[derive(Copy, Clone, Eq, PartialEq)]
2999pub struct Rseccp_SPEC;
3000impl crate::sealed::RegSpec for Rseccp_SPEC {
3001 type DataType = u8;
3002}
3003
3004#[doc = "Second Capture Register %s"]
3005pub type Rseccp = crate::RegValueT<Rseccp_SPEC>;
3006
3007impl Rseccp {
3008 #[doc = "10-Second Capture Capture value for the tens place of seconds"]
3009 #[inline(always)]
3010 pub fn sec10(
3011 self,
3012 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rseccp_SPEC, crate::common::R> {
3013 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rseccp_SPEC,crate::common::R>::from_register(self,0)
3014 }
3015
3016 #[doc = "1-Second Capture Capture value for the ones place of seconds"]
3017 #[inline(always)]
3018 pub fn sec1(
3019 self,
3020 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rseccp_SPEC, crate::common::R> {
3021 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rseccp_SPEC,crate::common::R>::from_register(self,0)
3022 }
3023}
3024impl ::core::default::Default for Rseccp {
3025 #[inline(always)]
3026 fn default() -> Rseccp {
3027 <crate::RegValueT<Rseccp_SPEC> as RegisterValue<_>>::new(0)
3028 }
3029}
3030
3031#[doc(hidden)]
3032#[derive(Copy, Clone, Eq, PartialEq)]
3033pub struct Bcnt0Cp_SPEC;
3034impl crate::sealed::RegSpec for Bcnt0Cp_SPEC {
3035 type DataType = u8;
3036}
3037
3038#[doc = "BCNT0 Capture Register %s"]
3039pub type Bcnt0Cp = crate::RegValueT<Bcnt0Cp_SPEC>;
3040
3041impl Bcnt0Cp {
3042 #[doc = "BCNT0CP is a read-only register that captures the BCNT0 value when a time capture event is detected."]
3043 #[inline(always)]
3044 pub fn bcnt0cp(
3045 self,
3046 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt0Cp_SPEC, crate::common::R> {
3047 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt0Cp_SPEC,crate::common::R>::from_register(self,0)
3048 }
3049}
3050impl ::core::default::Default for Bcnt0Cp {
3051 #[inline(always)]
3052 fn default() -> Bcnt0Cp {
3053 <crate::RegValueT<Bcnt0Cp_SPEC> as RegisterValue<_>>::new(0)
3054 }
3055}
3056
3057#[doc(hidden)]
3058#[derive(Copy, Clone, Eq, PartialEq)]
3059pub struct Rmincp_SPEC;
3060impl crate::sealed::RegSpec for Rmincp_SPEC {
3061 type DataType = u8;
3062}
3063
3064#[doc = "Minute Capture Register %s"]
3065pub type Rmincp = crate::RegValueT<Rmincp_SPEC>;
3066
3067impl Rmincp {
3068 #[doc = "10-Minute Capture Capture value for the tens place of minutes"]
3069 #[inline(always)]
3070 pub fn min10(
3071 self,
3072 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Rmincp_SPEC, crate::common::R> {
3073 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Rmincp_SPEC,crate::common::R>::from_register(self,0)
3074 }
3075
3076 #[doc = "1-Minute Capture Capture value for the ones place of minutes"]
3077 #[inline(always)]
3078 pub fn min1(
3079 self,
3080 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rmincp_SPEC, crate::common::R> {
3081 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rmincp_SPEC,crate::common::R>::from_register(self,0)
3082 }
3083}
3084impl ::core::default::Default for Rmincp {
3085 #[inline(always)]
3086 fn default() -> Rmincp {
3087 <crate::RegValueT<Rmincp_SPEC> as RegisterValue<_>>::new(0)
3088 }
3089}
3090
3091#[doc(hidden)]
3092#[derive(Copy, Clone, Eq, PartialEq)]
3093pub struct Bcnt1Cp_SPEC;
3094impl crate::sealed::RegSpec for Bcnt1Cp_SPEC {
3095 type DataType = u8;
3096}
3097
3098#[doc = "BCNT1 Capture Register %s"]
3099pub type Bcnt1Cp = crate::RegValueT<Bcnt1Cp_SPEC>;
3100
3101impl Bcnt1Cp {
3102 #[doc = "BCNT1CP is a read-only register that captures the BCNT1 value when a time capture event is detected."]
3103 #[inline(always)]
3104 pub fn bcnt1cp(
3105 self,
3106 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt1Cp_SPEC, crate::common::R> {
3107 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt1Cp_SPEC,crate::common::R>::from_register(self,0)
3108 }
3109}
3110impl ::core::default::Default for Bcnt1Cp {
3111 #[inline(always)]
3112 fn default() -> Bcnt1Cp {
3113 <crate::RegValueT<Bcnt1Cp_SPEC> as RegisterValue<_>>::new(0)
3114 }
3115}
3116
3117#[doc(hidden)]
3118#[derive(Copy, Clone, Eq, PartialEq)]
3119pub struct Rhrcp_SPEC;
3120impl crate::sealed::RegSpec for Rhrcp_SPEC {
3121 type DataType = u8;
3122}
3123
3124#[doc = "Hour Capture Register %s"]
3125pub type Rhrcp = crate::RegValueT<Rhrcp_SPEC>;
3126
3127impl Rhrcp {
3128 #[doc = "A.m./p.m. select for time counter setting."]
3129 #[inline(always)]
3130 pub fn pm(
3131 self,
3132 ) -> crate::common::RegisterField<
3133 6,
3134 0x1,
3135 1,
3136 0,
3137 rhrcp::Pm,
3138 rhrcp::Pm,
3139 Rhrcp_SPEC,
3140 crate::common::R,
3141 > {
3142 crate::common::RegisterField::<
3143 6,
3144 0x1,
3145 1,
3146 0,
3147 rhrcp::Pm,
3148 rhrcp::Pm,
3149 Rhrcp_SPEC,
3150 crate::common::R,
3151 >::from_register(self, 0)
3152 }
3153
3154 #[doc = "10-Minute Capture Capture value for the tens place of minutes"]
3155 #[inline(always)]
3156 pub fn hr10(
3157 self,
3158 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rhrcp_SPEC, crate::common::R> {
3159 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rhrcp_SPEC,crate::common::R>::from_register(self,0)
3160 }
3161
3162 #[doc = "1-Minute Capture Capture value for the ones place of minutes"]
3163 #[inline(always)]
3164 pub fn hr1(
3165 self,
3166 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rhrcp_SPEC, crate::common::R> {
3167 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rhrcp_SPEC,crate::common::R>::from_register(self,0)
3168 }
3169}
3170impl ::core::default::Default for Rhrcp {
3171 #[inline(always)]
3172 fn default() -> Rhrcp {
3173 <crate::RegValueT<Rhrcp_SPEC> as RegisterValue<_>>::new(0)
3174 }
3175}
3176pub mod rhrcp {
3177
3178 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
3179 pub struct Pm_SPEC;
3180 pub type Pm = crate::EnumBitfieldStruct<u8, Pm_SPEC>;
3181 impl Pm {
3182 #[doc = "a.m."]
3183 pub const _0: Self = Self::new(0);
3184
3185 #[doc = "p.m."]
3186 pub const _1: Self = Self::new(1);
3187 }
3188}
3189#[doc(hidden)]
3190#[derive(Copy, Clone, Eq, PartialEq)]
3191pub struct Bcnt2Cp_SPEC;
3192impl crate::sealed::RegSpec for Bcnt2Cp_SPEC {
3193 type DataType = u8;
3194}
3195
3196#[doc = "BCNT2 Capture Register %s"]
3197pub type Bcnt2Cp = crate::RegValueT<Bcnt2Cp_SPEC>;
3198
3199impl Bcnt2Cp {
3200 #[doc = "BCNT2CP is a read-only register that captures the BCNT2 value when a time capture event is detected."]
3201 #[inline(always)]
3202 pub fn bcnt2cp(
3203 self,
3204 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt2Cp_SPEC, crate::common::R> {
3205 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt2Cp_SPEC,crate::common::R>::from_register(self,0)
3206 }
3207}
3208impl ::core::default::Default for Bcnt2Cp {
3209 #[inline(always)]
3210 fn default() -> Bcnt2Cp {
3211 <crate::RegValueT<Bcnt2Cp_SPEC> as RegisterValue<_>>::new(0)
3212 }
3213}
3214
3215#[doc(hidden)]
3216#[derive(Copy, Clone, Eq, PartialEq)]
3217pub struct Rdaycp_SPEC;
3218impl crate::sealed::RegSpec for Rdaycp_SPEC {
3219 type DataType = u8;
3220}
3221
3222#[doc = "Date Capture Register %s"]
3223pub type Rdaycp = crate::RegValueT<Rdaycp_SPEC>;
3224
3225impl Rdaycp {
3226 #[doc = "10-Day Capture Capture value for the tens place of minutes"]
3227 #[inline(always)]
3228 pub fn date10(
3229 self,
3230 ) -> crate::common::RegisterField<4, 0x3, 1, 0, u8, u8, Rdaycp_SPEC, crate::common::R> {
3231 crate::common::RegisterField::<4,0x3,1,0,u8,u8,Rdaycp_SPEC,crate::common::R>::from_register(self,0)
3232 }
3233
3234 #[doc = "1-Day Capture Capture value for the ones place of minutes"]
3235 #[inline(always)]
3236 pub fn date1(
3237 self,
3238 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rdaycp_SPEC, crate::common::R> {
3239 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rdaycp_SPEC,crate::common::R>::from_register(self,0)
3240 }
3241}
3242impl ::core::default::Default for Rdaycp {
3243 #[inline(always)]
3244 fn default() -> Rdaycp {
3245 <crate::RegValueT<Rdaycp_SPEC> as RegisterValue<_>>::new(0)
3246 }
3247}
3248
3249#[doc(hidden)]
3250#[derive(Copy, Clone, Eq, PartialEq)]
3251pub struct Bcnt3Cp_SPEC;
3252impl crate::sealed::RegSpec for Bcnt3Cp_SPEC {
3253 type DataType = u8;
3254}
3255
3256#[doc = "BCNT3 Capture Register %s"]
3257pub type Bcnt3Cp = crate::RegValueT<Bcnt3Cp_SPEC>;
3258
3259impl Bcnt3Cp {
3260 #[doc = "BCNT3CP is a read-only register that captures the BCNT3 value when a time capture event is detected."]
3261 #[inline(always)]
3262 pub fn bcnt3cp(
3263 self,
3264 ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Bcnt3Cp_SPEC, crate::common::R> {
3265 crate::common::RegisterField::<0,0xff,1,0,u8,u8,Bcnt3Cp_SPEC,crate::common::R>::from_register(self,0)
3266 }
3267}
3268impl ::core::default::Default for Bcnt3Cp {
3269 #[inline(always)]
3270 fn default() -> Bcnt3Cp {
3271 <crate::RegValueT<Bcnt3Cp_SPEC> as RegisterValue<_>>::new(0)
3272 }
3273}
3274
3275#[doc(hidden)]
3276#[derive(Copy, Clone, Eq, PartialEq)]
3277pub struct Rmoncp_SPEC;
3278impl crate::sealed::RegSpec for Rmoncp_SPEC {
3279 type DataType = u8;
3280}
3281
3282#[doc = "Month Capture Register %s"]
3283pub type Rmoncp = crate::RegValueT<Rmoncp_SPEC>;
3284
3285impl Rmoncp {
3286 #[doc = "10-Month Capture Capture value for the tens place of months"]
3287 #[inline(always)]
3288 pub fn mon10(self) -> crate::common::RegisterFieldBool<4, 1, 0, Rmoncp_SPEC, crate::common::R> {
3289 crate::common::RegisterFieldBool::<4, 1, 0, Rmoncp_SPEC, crate::common::R>::from_register(
3290 self, 0,
3291 )
3292 }
3293
3294 #[doc = "1-Month Capture Capture value for the ones place of months"]
3295 #[inline(always)]
3296 pub fn mon1(
3297 self,
3298 ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Rmoncp_SPEC, crate::common::R> {
3299 crate::common::RegisterField::<0,0xf,1,0,u8,u8,Rmoncp_SPEC,crate::common::R>::from_register(self,0)
3300 }
3301}
3302impl ::core::default::Default for Rmoncp {
3303 #[inline(always)]
3304 fn default() -> Rmoncp {
3305 <crate::RegValueT<Rmoncp_SPEC> as RegisterValue<_>>::new(0)
3306 }
3307}