bcm2835_lpa/
systmr.rs

1#[doc = r"Register block"]
2#[repr(C)]
3#[derive(Debug)]
4pub struct RegisterBlock {
5    cs: CS,
6    clo: CLO,
7    chi: CHI,
8    c0: C0,
9    c1: C1,
10    c2: C2,
11    c3: C3,
12}
13impl RegisterBlock {
14    #[doc = "0x00 - Control / Status"]
15    #[inline(always)]
16    pub const fn cs(&self) -> &CS {
17        &self.cs
18    }
19    #[doc = "0x04 - Lower 32 bits for the free running counter"]
20    #[inline(always)]
21    pub const fn clo(&self) -> &CLO {
22        &self.clo
23    }
24    #[doc = "0x08 - Higher 32 bits for the free running counter"]
25    #[inline(always)]
26    pub const fn chi(&self) -> &CHI {
27        &self.chi
28    }
29    #[doc = "0x0c - Compare channel 0"]
30    #[inline(always)]
31    pub const fn c0(&self) -> &C0 {
32        &self.c0
33    }
34    #[doc = "0x10 - Compare channel 1"]
35    #[inline(always)]
36    pub const fn c1(&self) -> &C1 {
37        &self.c1
38    }
39    #[doc = "0x14 - Compare channel 2"]
40    #[inline(always)]
41    pub const fn c2(&self) -> &C2 {
42        &self.c2
43    }
44    #[doc = "0x18 - Compare channel 3"]
45    #[inline(always)]
46    pub const fn c3(&self) -> &C3 {
47        &self.c3
48    }
49}
50#[doc = "CS (rw) register accessor: Control / Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cs::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cs::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cs`]
51module"]
52pub type CS = crate::Reg<cs::CS_SPEC>;
53#[doc = "Control / Status"]
54pub mod cs;
55#[doc = "CLO (r) register accessor: Lower 32 bits for the free running counter\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clo::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clo`]
56module"]
57pub type CLO = crate::Reg<clo::CLO_SPEC>;
58#[doc = "Lower 32 bits for the free running counter"]
59pub mod clo;
60#[doc = "CHI (r) register accessor: Higher 32 bits for the free running counter\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`chi::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@chi`]
61module"]
62pub type CHI = crate::Reg<chi::CHI_SPEC>;
63#[doc = "Higher 32 bits for the free running counter"]
64pub mod chi;
65#[doc = "C0 (rw) register accessor: Compare channel 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`c0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`c0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@c0`]
66module"]
67pub type C0 = crate::Reg<c0::C0_SPEC>;
68#[doc = "Compare channel 0"]
69pub mod c0;
70#[doc = "C1 (rw) register accessor: Compare channel 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`c1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`c1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@c1`]
71module"]
72pub type C1 = crate::Reg<c1::C1_SPEC>;
73#[doc = "Compare channel 1"]
74pub mod c1;
75#[doc = "C2 (rw) register accessor: Compare channel 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`c2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`c2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@c2`]
76module"]
77pub type C2 = crate::Reg<c2::C2_SPEC>;
78#[doc = "Compare channel 2"]
79pub mod c2;
80#[doc = "C3 (rw) register accessor: Compare channel 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`c3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`c3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@c3`]
81module"]
82pub type C3 = crate::Reg<c3::C3_SPEC>;
83#[doc = "Compare channel 3"]
84pub mod c3;