1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 rtcctl: Rtcctl,
5 _reserved1: [u8; 0x02],
6 rtciv: Rtciv,
7 _reserved2: [u8; 0x02],
8 rtcmod: Rtcmod,
9 _reserved3: [u8; 0x02],
10 rtccnt: Rtccnt,
11}
12impl RegisterBlock {
13 #[doc = "0x00 - RTCCTL0 Register"]
14 #[inline(always)]
15 pub const fn rtcctl(&self) -> &Rtcctl {
16 &self.rtcctl
17 }
18 #[doc = "0x04 - Real-Time Clock Interrupt Vector Register"]
19 #[inline(always)]
20 pub const fn rtciv(&self) -> &Rtciv {
21 &self.rtciv
22 }
23 #[doc = "0x08 - RTC Counter Modulo Register"]
24 #[inline(always)]
25 pub const fn rtcmod(&self) -> &Rtcmod {
26 &self.rtcmod
27 }
28 #[doc = "0x0c - RTC Counter Register"]
29 #[inline(always)]
30 pub const fn rtccnt(&self) -> &Rtccnt {
31 &self.rtccnt
32 }
33}
34#[doc = "RTCCTL (rw) register accessor: RTCCTL0 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcctl::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@rtcctl`] module"]
35#[doc(alias = "RTCCTL")]
36pub type Rtcctl = crate::Reg<rtcctl::RtcctlSpec>;
37#[doc = "RTCCTL0 Register"]
38pub mod rtcctl;
39#[doc = "RTCIV (rw) register accessor: Real-Time Clock Interrupt Vector Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rtciv::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtciv::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@rtciv`] module"]
40#[doc(alias = "RTCIV")]
41pub type Rtciv = crate::Reg<rtciv::RtcivSpec>;
42#[doc = "Real-Time Clock Interrupt Vector Register"]
43pub mod rtciv;
44#[doc = "RTCMOD (rw) register accessor: RTC Counter Modulo Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcmod::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcmod::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@rtcmod`] module"]
45#[doc(alias = "RTCMOD")]
46pub type Rtcmod = crate::Reg<rtcmod::RtcmodSpec>;
47#[doc = "RTC Counter Modulo Register"]
48pub mod rtcmod;
49#[doc = "RTCCNT (rw) register accessor: RTC Counter Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccnt::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@rtccnt`] module"]
50#[doc(alias = "RTCCNT")]
51pub type Rtccnt = crate::Reg<rtccnt::RtccntSpec>;
52#[doc = "RTC Counter Register"]
53pub mod rtccnt;