stm32g0_staging/stm32g0c1/
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    comp3_csr: COMP3_CSR,
8}
9impl RegisterBlock {
10    ///0x00 - Comparator 1 control and status register
11    #[inline(always)]
12    pub const fn comp1_csr(&self) -> &COMP1_CSR {
13        &self.comp1_csr
14    }
15    ///0x04 - Comparator 2 control and status register
16    #[inline(always)]
17    pub const fn comp2_csr(&self) -> &COMP2_CSR {
18        &self.comp2_csr
19    }
20    ///0x08 - Comparator 2 control and status register
21    #[inline(always)]
22    pub const fn comp3_csr(&self) -> &COMP3_CSR {
23        &self.comp3_csr
24    }
25}
26/**COMP1_CSR (rw) register accessor: Comparator 1 control and status register
27
28You 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).
29
30See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#COMP:COMP1_CSR)
31
32For information about available fields see [`mod@comp1_csr`]
33module*/
34pub type COMP1_CSR = crate::Reg<comp1_csr::COMP1_CSRrs>;
35///Comparator 1 control and status register
36pub mod comp1_csr;
37/**COMP2_CSR (rw) register accessor: Comparator 2 control and status register
38
39You 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).
40
41See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#COMP:COMP2_CSR)
42
43For information about available fields see [`mod@comp2_csr`]
44module*/
45pub type COMP2_CSR = crate::Reg<comp2_csr::COMP2_CSRrs>;
46///Comparator 2 control and status register
47pub mod comp2_csr;
48/**COMP3_CSR (rw) register accessor: Comparator 2 control and status register
49
50You 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).
51
52See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#COMP:COMP3_CSR)
53
54For information about available fields see [`mod@comp3_csr`]
55module*/
56pub type COMP3_CSR = crate::Reg<comp3_csr::COMP3_CSRrs>;
57///Comparator 2 control and status register
58pub mod comp3_csr;