Skip to main content

ra4e2_pac/
rtc.rs

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