stm32f3_staging/stm32f373/comp.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 _reserved0: [u8; 0x1c],
6 csr: CSR,
7}
8impl RegisterBlock {
9 ///0x1c - control and status register
10 #[inline(always)]
11 pub const fn csr(&self) -> &CSR {
12 &self.csr
13 }
14}
15/**CSR (rw) register accessor: control and status register
16
17You can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
18
19See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#COMP:CSR)
20
21For information about available fields see [`mod@csr`]
22module*/
23pub type CSR = crate::Reg<csr::CSRrs>;
24///control and status register
25pub mod csr;