Skip to main content

mcxa_pac/
lptmr0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    csr: Csr,
6    psr: Psr,
7    cmr: Cmr,
8    cnr: Cnr,
9}
10impl RegisterBlock {
11    #[doc = "0x00 - Control Status"]
12    #[inline(always)]
13    pub const fn csr(&self) -> &Csr {
14        &self.csr
15    }
16    #[doc = "0x04 - Prescaler and Glitch Filter"]
17    #[inline(always)]
18    pub const fn psr(&self) -> &Psr {
19        &self.psr
20    }
21    #[doc = "0x08 - Compare"]
22    #[inline(always)]
23    pub const fn cmr(&self) -> &Cmr {
24        &self.cmr
25    }
26    #[doc = "0x0c - Counter"]
27    #[inline(always)]
28    pub const fn cnr(&self) -> &Cnr {
29        &self.cnr
30    }
31}
32#[doc = "CSR (rw) register accessor: Control Status\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::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@csr`] module"]
33#[doc(alias = "CSR")]
34pub type Csr = crate::Reg<csr::CsrSpec>;
35#[doc = "Control Status"]
36pub mod csr;
37#[doc = "PSR (rw) register accessor: Prescaler and Glitch Filter\n\nYou can [`read`](crate::Reg::read) this register and get [`psr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psr::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@psr`] module"]
38#[doc(alias = "PSR")]
39pub type Psr = crate::Reg<psr::PsrSpec>;
40#[doc = "Prescaler and Glitch Filter"]
41pub mod psr;
42#[doc = "CMR (rw) register accessor: Compare\n\nYou can [`read`](crate::Reg::read) this register and get [`cmr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmr::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@cmr`] module"]
43#[doc(alias = "CMR")]
44pub type Cmr = crate::Reg<cmr::CmrSpec>;
45#[doc = "Compare"]
46pub mod cmr;
47#[doc = "CNR (rw) register accessor: Counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnr::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@cnr`] module"]
48#[doc(alias = "CNR")]
49pub type Cnr = crate::Reg<cnr::CnrSpec>;
50#[doc = "Counter"]
51pub mod cnr;