gd32f1/gd32f130/
dbg.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    id: Id,
5    ctl0: Ctl0,
6    ctl1: Ctl1,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - MCU Device ID Code Register"]
10    #[inline(always)]
11    pub const fn id(&self) -> &Id {
12        &self.id
13    }
14    #[doc = "0x04 - Debug Control Register 0"]
15    #[inline(always)]
16    pub const fn ctl0(&self) -> &Ctl0 {
17        &self.ctl0
18    }
19    #[doc = "0x08 - Debug Control Register 1"]
20    #[inline(always)]
21    pub const fn ctl1(&self) -> &Ctl1 {
22        &self.ctl1
23    }
24}
25#[doc = "ID (r) register accessor: MCU Device ID Code Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`id::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id`]
26module"]
27#[doc(alias = "ID")]
28pub type Id = crate::Reg<id::IdSpec>;
29#[doc = "MCU Device ID Code Register"]
30pub mod id;
31#[doc = "CTL0 (rw) register accessor: Debug Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
32module"]
33#[doc(alias = "CTL0")]
34pub type Ctl0 = crate::Reg<ctl0::Ctl0Spec>;
35#[doc = "Debug Control Register 0"]
36pub mod ctl0;
37#[doc = "CTL1 (rw) register accessor: Debug Control Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl1`]
38module"]
39#[doc(alias = "CTL1")]
40pub type Ctl1 = crate::Reg<ctl1::Ctl1Spec>;
41#[doc = "Debug Control Register 1"]
42pub mod ctl1;