stm32f1_staging/stm32f101/dbgmcu.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 idcode: IDCODE,
6 cr: CR,
7}
8impl RegisterBlock {
9 ///0x00 - DBGMCU_IDCODE
10 #[inline(always)]
11 pub const fn idcode(&self) -> &IDCODE {
12 &self.idcode
13 }
14 ///0x04 - DBGMCU_CR
15 #[inline(always)]
16 pub const fn cr(&self) -> &CR {
17 &self.cr
18 }
19}
20/**IDCODE (r) register accessor: DBGMCU_IDCODE
21
22You can [`read`](crate::Reg::read) this register and get [`idcode::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
23
24See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DBGMCU:IDCODE)
25
26For information about available fields see [`mod@idcode`] module*/
27pub type IDCODE = crate::Reg<idcode::IDCODErs>;
28///DBGMCU_IDCODE
29pub mod idcode;
30/**CR (rw) register accessor: DBGMCU_CR
31
32You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
33
34See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DBGMCU:CR)
35
36For information about available fields see [`mod@cr`] module*/
37pub type CR = crate::Reg<cr::CRrs>;
38///DBGMCU_CR
39pub mod cr;