1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 sec: Sec,
5 ssec: Ssec,
6 toda: Toda,
7 sseca: Sseca,
8 ctrl: Ctrl,
9 trim: Trim,
10 oscctrl: Oscctrl,
11}
12impl RegisterBlock {
13 #[doc = "0x00 - RTC Second Counter. This register contains the 32-bit second counter."]
14 #[inline(always)]
15 pub const fn sec(&self) -> &Sec {
16 &self.sec
17 }
18 #[doc = "0x04 - RTC Sub-second Counter. This counter increments at 256Hz. RTC_SEC is incremented when this register rolls over from 0xFF to 0x00."]
19 #[inline(always)]
20 pub const fn ssec(&self) -> &Ssec {
21 &self.ssec
22 }
23 #[doc = "0x08 - Time-of-day Alarm."]
24 #[inline(always)]
25 pub const fn toda(&self) -> &Toda {
26 &self.toda
27 }
28 #[doc = "0x0c - RTC sub-second alarm. This register contains the reload value for the sub-second alarm."]
29 #[inline(always)]
30 pub const fn sseca(&self) -> &Sseca {
31 &self.sseca
32 }
33 #[doc = "0x10 - RTC Control Register."]
34 #[inline(always)]
35 pub const fn ctrl(&self) -> &Ctrl {
36 &self.ctrl
37 }
38 #[doc = "0x14 - RTC Trim Register."]
39 #[inline(always)]
40 pub const fn trim(&self) -> &Trim {
41 &self.trim
42 }
43 #[doc = "0x18 - RTC Oscillator Control Register."]
44 #[inline(always)]
45 pub const fn oscctrl(&self) -> &Oscctrl {
46 &self.oscctrl
47 }
48}
49#[doc = "SEC (rw) register accessor: RTC Second Counter. This register contains the 32-bit second counter.\n\nYou can [`read`](crate::Reg::read) this register and get [`sec::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sec::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sec`]
50module"]
51#[doc(alias = "SEC")]
52pub type Sec = crate::Reg<sec::SecSpec>;
53#[doc = "RTC Second Counter. This register contains the 32-bit second counter."]
54pub mod sec;
55#[doc = "SSEC (rw) register accessor: RTC Sub-second Counter. This counter increments at 256Hz. RTC_SEC is incremented when this register rolls over from 0xFF to 0x00.\n\nYou can [`read`](crate::Reg::read) this register and get [`ssec::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ssec::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ssec`]
56module"]
57#[doc(alias = "SSEC")]
58pub type Ssec = crate::Reg<ssec::SsecSpec>;
59#[doc = "RTC Sub-second Counter. This counter increments at 256Hz. RTC_SEC is incremented when this register rolls over from 0xFF to 0x00."]
60pub mod ssec;
61#[doc = "TODA (rw) register accessor: Time-of-day Alarm.\n\nYou can [`read`](crate::Reg::read) this register and get [`toda::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`toda::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@toda`]
62module"]
63#[doc(alias = "TODA")]
64pub type Toda = crate::Reg<toda::TodaSpec>;
65#[doc = "Time-of-day Alarm."]
66pub mod toda;
67#[doc = "SSECA (rw) register accessor: RTC sub-second alarm. This register contains the reload value for the sub-second alarm.\n\nYou can [`read`](crate::Reg::read) this register and get [`sseca::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sseca::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sseca`]
68module"]
69#[doc(alias = "SSECA")]
70pub type Sseca = crate::Reg<sseca::SsecaSpec>;
71#[doc = "RTC sub-second alarm. This register contains the reload value for the sub-second alarm."]
72pub mod sseca;
73#[doc = "CTRL (rw) register accessor: RTC Control Register.\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl`]
74module"]
75#[doc(alias = "CTRL")]
76pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
77#[doc = "RTC Control Register."]
78pub mod ctrl;
79#[doc = "TRIM (rw) register accessor: RTC Trim Register.\n\nYou can [`read`](crate::Reg::read) this register and get [`trim::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trim::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trim`]
80module"]
81#[doc(alias = "TRIM")]
82pub type Trim = crate::Reg<trim::TrimSpec>;
83#[doc = "RTC Trim Register."]
84pub mod trim;
85#[doc = "OSCCTRL (rw) register accessor: RTC Oscillator Control Register.\n\nYou can [`read`](crate::Reg::read) this register and get [`oscctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oscctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@oscctrl`]
86module"]
87#[doc(alias = "OSCCTRL")]
88pub type Oscctrl = crate::Reg<oscctrl::OscctrlSpec>;
89#[doc = "RTC Oscillator Control Register."]
90pub mod oscctrl;