stm32f3_staging/stm32f303/comp.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 _reserved0: [u8; 0x1c],
6 comp1_csr: COMP1_CSR,
7 comp2_csr: COMP2_CSR,
8 comp3_csr: COMP3_CSR,
9 comp4_csr: COMP4_CSR,
10 comp5_csr: COMP5_CSR,
11 comp6_csr: COMP6_CSR,
12 comp7_csr: COMP7_CSR,
13}
14impl RegisterBlock {
15 ///0x1c - control and status register
16 #[inline(always)]
17 pub const fn comp1_csr(&self) -> &COMP1_CSR {
18 &self.comp1_csr
19 }
20 ///0x20 - control and status register
21 #[inline(always)]
22 pub const fn comp2_csr(&self) -> &COMP2_CSR {
23 &self.comp2_csr
24 }
25 ///0x24 - control and status register
26 #[inline(always)]
27 pub const fn comp3_csr(&self) -> &COMP3_CSR {
28 &self.comp3_csr
29 }
30 ///0x28 - control and status register
31 #[inline(always)]
32 pub const fn comp4_csr(&self) -> &COMP4_CSR {
33 &self.comp4_csr
34 }
35 ///0x2c - control and status register
36 #[inline(always)]
37 pub const fn comp5_csr(&self) -> &COMP5_CSR {
38 &self.comp5_csr
39 }
40 ///0x30 - control and status register
41 #[inline(always)]
42 pub const fn comp6_csr(&self) -> &COMP6_CSR {
43 &self.comp6_csr
44 }
45 ///0x34 - control and status register
46 #[inline(always)]
47 pub const fn comp7_csr(&self) -> &COMP7_CSR {
48 &self.comp7_csr
49 }
50}
51/**COMP2_CSR (rw) register accessor: control and status register
52
53You can [`read`](crate::Reg::read) this register and get [`comp2_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp2_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
54
55See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP2_CSR)
56
57For information about available fields see [`mod@comp2_csr`]
58module*/
59pub type COMP2_CSR = crate::Reg<comp2_csr::COMP2_CSRrs>;
60///control and status register
61pub mod comp2_csr;
62/**COMP4_CSR (rw) register accessor: control and status register
63
64You can [`read`](crate::Reg::read) this register and get [`comp4_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp4_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
65
66See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP4_CSR)
67
68For information about available fields see [`mod@comp4_csr`]
69module*/
70pub type COMP4_CSR = crate::Reg<comp4_csr::COMP4_CSRrs>;
71///control and status register
72pub mod comp4_csr;
73/**COMP6_CSR (rw) register accessor: control and status register
74
75You can [`read`](crate::Reg::read) this register and get [`comp6_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp6_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
76
77See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP6_CSR)
78
79For information about available fields see [`mod@comp6_csr`]
80module*/
81pub type COMP6_CSR = crate::Reg<comp6_csr::COMP6_CSRrs>;
82///control and status register
83pub mod comp6_csr;
84/**COMP3_CSR (rw) register accessor: control and status register
85
86You can [`read`](crate::Reg::read) this register and get [`comp3_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp3_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
87
88See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP3_CSR)
89
90For information about available fields see [`mod@comp3_csr`]
91module*/
92pub type COMP3_CSR = crate::Reg<comp3_csr::COMP3_CSRrs>;
93///control and status register
94pub mod comp3_csr;
95/**COMP5_CSR (rw) register accessor: control and status register
96
97You can [`read`](crate::Reg::read) this register and get [`comp5_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp5_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
98
99See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP5_CSR)
100
101For information about available fields see [`mod@comp5_csr`]
102module*/
103pub type COMP5_CSR = crate::Reg<comp5_csr::COMP5_CSRrs>;
104///control and status register
105pub mod comp5_csr;
106/**COMP7_CSR (rw) register accessor: control and status register
107
108You can [`read`](crate::Reg::read) this register and get [`comp7_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp7_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
109
110See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP7_CSR)
111
112For information about available fields see [`mod@comp7_csr`]
113module*/
114pub type COMP7_CSR = crate::Reg<comp7_csr::COMP7_CSRrs>;
115///control and status register
116pub mod comp7_csr;
117/**COMP1_CSR (rw) register accessor: control and status register
118
119You can [`read`](crate::Reg::read) this register and get [`comp1_csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp1_csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
120
121See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#COMP:COMP1_CSR)
122
123For information about available fields see [`mod@comp1_csr`]
124module*/
125pub type COMP1_CSR = crate::Reg<comp1_csr::COMP1_CSRrs>;
126///control and status register
127pub mod comp1_csr;