stm32f3_staging/stm32f302/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 _reserved2: [u8; 0x04],
9 comp4_csr: COMP4_CSR,
10 _reserved3: [u8; 0x04],
11 comp6_csr: COMP6_CSR,
12}
13impl RegisterBlock {
14 ///0x1c - control and status register
15 #[inline(always)]
16 pub const fn comp1_csr(&self) -> &COMP1_CSR {
17 &self.comp1_csr
18 }
19 ///0x20 - control and status register
20 #[inline(always)]
21 pub const fn comp2_csr(&self) -> &COMP2_CSR {
22 &self.comp2_csr
23 }
24 ///0x28 - control and status register
25 #[inline(always)]
26 pub const fn comp4_csr(&self) -> &COMP4_CSR {
27 &self.comp4_csr
28 }
29 ///0x30 - control and status register
30 #[inline(always)]
31 pub const fn comp6_csr(&self) -> &COMP6_CSR {
32 &self.comp6_csr
33 }
34}
35/**COMP2_CSR (rw) register accessor: control and status register
36
37You 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).
38
39See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#COMP:COMP2_CSR)
40
41For information about available fields see [`mod@comp2_csr`]
42module*/
43pub type COMP2_CSR = crate::Reg<comp2_csr::COMP2_CSRrs>;
44///control and status register
45pub mod comp2_csr;
46/**COMP4_CSR (rw) register accessor: control and status register
47
48You 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).
49
50See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#COMP:COMP4_CSR)
51
52For information about available fields see [`mod@comp4_csr`]
53module*/
54pub type COMP4_CSR = crate::Reg<comp4_csr::COMP4_CSRrs>;
55///control and status register
56pub mod comp4_csr;
57/**COMP6_CSR (rw) register accessor: control and status register
58
59You 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).
60
61See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#COMP:COMP6_CSR)
62
63For information about available fields see [`mod@comp6_csr`]
64module*/
65pub type COMP6_CSR = crate::Reg<comp6_csr::COMP6_CSRrs>;
66///control and status register
67pub mod comp6_csr;
68/**COMP1_CSR (rw) register accessor: control and status register
69
70You 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).
71
72See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#COMP:COMP1_CSR)
73
74For information about available fields see [`mod@comp1_csr`]
75module*/
76pub type COMP1_CSR = crate::Reg<comp1_csr::COMP1_CSRrs>;
77///control and status register
78pub mod comp1_csr;