xmc4500/
rtc.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    id: ID,
5    ctr: CTR,
6    rawstat: RAWSTAT,
7    stssr: STSSR,
8    msksr: MSKSR,
9    clrsr: CLRSR,
10    atim0: ATIM0,
11    atim1: ATIM1,
12    tim0: TIM0,
13    tim1: TIM1,
14}
15impl RegisterBlock {
16    #[doc = "0x00 - RTC ID Register"]
17    #[inline(always)]
18    pub const fn id(&self) -> &ID {
19        &self.id
20    }
21    #[doc = "0x04 - RTC Control Register"]
22    #[inline(always)]
23    pub const fn ctr(&self) -> &CTR {
24        &self.ctr
25    }
26    #[doc = "0x08 - RTC Raw Service Request Register"]
27    #[inline(always)]
28    pub const fn rawstat(&self) -> &RAWSTAT {
29        &self.rawstat
30    }
31    #[doc = "0x0c - RTC Service Request Status Register"]
32    #[inline(always)]
33    pub const fn stssr(&self) -> &STSSR {
34        &self.stssr
35    }
36    #[doc = "0x10 - RTC Service Request Mask Register"]
37    #[inline(always)]
38    pub const fn msksr(&self) -> &MSKSR {
39        &self.msksr
40    }
41    #[doc = "0x14 - RTC Clear Service Request Register"]
42    #[inline(always)]
43    pub const fn clrsr(&self) -> &CLRSR {
44        &self.clrsr
45    }
46    #[doc = "0x18 - RTC Alarm Time Register 0"]
47    #[inline(always)]
48    pub const fn atim0(&self) -> &ATIM0 {
49        &self.atim0
50    }
51    #[doc = "0x1c - RTC Alarm Time Register 1"]
52    #[inline(always)]
53    pub const fn atim1(&self) -> &ATIM1 {
54        &self.atim1
55    }
56    #[doc = "0x20 - RTC Time Register 0"]
57    #[inline(always)]
58    pub const fn tim0(&self) -> &TIM0 {
59        &self.tim0
60    }
61    #[doc = "0x24 - RTC Time Register 1"]
62    #[inline(always)]
63    pub const fn tim1(&self) -> &TIM1 {
64        &self.tim1
65    }
66}
67#[doc = "ID (r) register accessor: RTC ID Register\n\nYou can [`read`](crate::Reg::read) this register and get [`id::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id`]
68module"]
69pub type ID = crate::Reg<id::ID_SPEC>;
70#[doc = "RTC ID Register"]
71pub mod id;
72#[doc = "CTR (rw) register accessor: RTC Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ctr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctr::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@ctr`]
73module"]
74pub type CTR = crate::Reg<ctr::CTR_SPEC>;
75#[doc = "RTC Control Register"]
76pub mod ctr;
77#[doc = "RAWSTAT (r) register accessor: RTC Raw Service Request Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rawstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rawstat`]
78module"]
79pub type RAWSTAT = crate::Reg<rawstat::RAWSTAT_SPEC>;
80#[doc = "RTC Raw Service Request Register"]
81pub mod rawstat;
82#[doc = "STSSR (r) register accessor: RTC Service Request Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`stssr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stssr`]
83module"]
84pub type STSSR = crate::Reg<stssr::STSSR_SPEC>;
85#[doc = "RTC Service Request Status Register"]
86pub mod stssr;
87#[doc = "MSKSR (rw) register accessor: RTC Service Request Mask Register\n\nYou can [`read`](crate::Reg::read) this register and get [`msksr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`msksr::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@msksr`]
88module"]
89pub type MSKSR = crate::Reg<msksr::MSKSR_SPEC>;
90#[doc = "RTC Service Request Mask Register"]
91pub mod msksr;
92#[doc = "CLRSR (w) register accessor: RTC Clear Service Request Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clrsr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clrsr`]
93module"]
94pub type CLRSR = crate::Reg<clrsr::CLRSR_SPEC>;
95#[doc = "RTC Clear Service Request Register"]
96pub mod clrsr;
97#[doc = "ATIM0 (rw) register accessor: RTC Alarm Time Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`atim0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`atim0::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@atim0`]
98module"]
99pub type ATIM0 = crate::Reg<atim0::ATIM0_SPEC>;
100#[doc = "RTC Alarm Time Register 0"]
101pub mod atim0;
102#[doc = "ATIM1 (rw) register accessor: RTC Alarm Time Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`atim1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`atim1::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@atim1`]
103module"]
104pub type ATIM1 = crate::Reg<atim1::ATIM1_SPEC>;
105#[doc = "RTC Alarm Time Register 1"]
106pub mod atim1;
107#[doc = "TIM0 (rw) register accessor: RTC Time Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`tim0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tim0::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@tim0`]
108module"]
109pub type TIM0 = crate::Reg<tim0::TIM0_SPEC>;
110#[doc = "RTC Time Register 0"]
111pub mod tim0;
112#[doc = "TIM1 (rw) register accessor: RTC Time Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`tim1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tim1::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@tim1`]
113module"]
114pub type TIM1 = crate::Reg<tim1::TIM1_SPEC>;
115#[doc = "RTC Time Register 1"]
116pub mod tim1;