stm32g0_staging/stm32g081/comp.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 comp1_csr: COMP1_CSR,
6 comp2_csr: COMP2_CSR,
7}
8impl RegisterBlock {
9 ///0x00 - Comparator 1 control and status register
10 #[inline(always)]
11 pub const fn comp1_csr(&self) -> &COMP1_CSR {
12 &self.comp1_csr
13 }
14 ///0x04 - Comparator 2 control and status register
15 #[inline(always)]
16 pub const fn comp2_csr(&self) -> &COMP2_CSR {
17 &self.comp2_csr
18 }
19}
20/**COMP1_CSR (rw) register accessor: Comparator 1 control and status register
21
22You 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).
23
24See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G081.html#COMP:COMP1_CSR)
25
26For information about available fields see [`mod@comp1_csr`]
27module*/
28pub type COMP1_CSR = crate::Reg<comp1_csr::COMP1_CSRrs>;
29///Comparator 1 control and status register
30pub mod comp1_csr;
31/**COMP2_CSR (rw) register accessor: Comparator 2 control and status register
32
33You 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).
34
35See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G081.html#COMP:COMP2_CSR)
36
37For information about available fields see [`mod@comp2_csr`]
38module*/
39pub type COMP2_CSR = crate::Reg<comp2_csr::COMP2_CSRrs>;
40///Comparator 2 control and status register
41pub mod comp2_csr;