Skip to main content

mcxa_pac/
rtc0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    tsr: Tsr,
6    tpr: Tpr,
7    tar: Tar,
8    tcr: Tcr,
9    cr: Cr,
10    sr: Sr,
11    lr: Lr,
12    ier: Ier,
13}
14impl RegisterBlock {
15    #[doc = "0x00 - RTC Time Seconds"]
16    #[inline(always)]
17    pub const fn tsr(&self) -> &Tsr {
18        &self.tsr
19    }
20    #[doc = "0x04 - RTC Time Prescaler"]
21    #[inline(always)]
22    pub const fn tpr(&self) -> &Tpr {
23        &self.tpr
24    }
25    #[doc = "0x08 - RTC Time Alarm"]
26    #[inline(always)]
27    pub const fn tar(&self) -> &Tar {
28        &self.tar
29    }
30    #[doc = "0x0c - RTC Time Compensation"]
31    #[inline(always)]
32    pub const fn tcr(&self) -> &Tcr {
33        &self.tcr
34    }
35    #[doc = "0x10 - RTC Control"]
36    #[inline(always)]
37    pub const fn cr(&self) -> &Cr {
38        &self.cr
39    }
40    #[doc = "0x14 - RTC Status"]
41    #[inline(always)]
42    pub const fn sr(&self) -> &Sr {
43        &self.sr
44    }
45    #[doc = "0x18 - RTC Lock"]
46    #[inline(always)]
47    pub const fn lr(&self) -> &Lr {
48        &self.lr
49    }
50    #[doc = "0x1c - RTC Interrupt Enable"]
51    #[inline(always)]
52    pub const fn ier(&self) -> &Ier {
53        &self.ier
54    }
55}
56#[doc = "TSR (rw) register accessor: RTC Time Seconds\n\nYou can [`read`](crate::Reg::read) this register and get [`tsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tsr::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@tsr`] module"]
57#[doc(alias = "TSR")]
58pub type Tsr = crate::Reg<tsr::TsrSpec>;
59#[doc = "RTC Time Seconds"]
60pub mod tsr;
61#[doc = "TPR (rw) register accessor: RTC Time Prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`tpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tpr::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@tpr`] module"]
62#[doc(alias = "TPR")]
63pub type Tpr = crate::Reg<tpr::TprSpec>;
64#[doc = "RTC Time Prescaler"]
65pub mod tpr;
66#[doc = "TAR (rw) register accessor: RTC Time Alarm\n\nYou can [`read`](crate::Reg::read) this register and get [`tar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar::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@tar`] module"]
67#[doc(alias = "TAR")]
68pub type Tar = crate::Reg<tar::TarSpec>;
69#[doc = "RTC Time Alarm"]
70pub mod tar;
71#[doc = "TCR (rw) register accessor: RTC Time Compensation\n\nYou can [`read`](crate::Reg::read) this register and get [`tcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tcr::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@tcr`] module"]
72#[doc(alias = "TCR")]
73pub type Tcr = crate::Reg<tcr::TcrSpec>;
74#[doc = "RTC Time Compensation"]
75pub mod tcr;
76#[doc = "CR (rw) register accessor: RTC Control\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::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@cr`] module"]
77#[doc(alias = "CR")]
78pub type Cr = crate::Reg<cr::CrSpec>;
79#[doc = "RTC Control"]
80pub mod cr;
81#[doc = "SR (rw) register accessor: RTC Status\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::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@sr`] module"]
82#[doc(alias = "SR")]
83pub type Sr = crate::Reg<sr::SrSpec>;
84#[doc = "RTC Status"]
85pub mod sr;
86#[doc = "LR (rw) register accessor: RTC Lock\n\nYou can [`read`](crate::Reg::read) this register and get [`lr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lr::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@lr`] module"]
87#[doc(alias = "LR")]
88pub type Lr = crate::Reg<lr::LrSpec>;
89#[doc = "RTC Lock"]
90pub mod lr;
91#[doc = "IER (rw) register accessor: RTC Interrupt Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`ier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::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@ier`] module"]
92#[doc(alias = "IER")]
93pub type Ier = crate::Reg<ier::IerSpec>;
94#[doc = "RTC Interrupt Enable"]
95pub mod ier;