1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - MCU Device ID Code Register"] pub id: ID, #[doc = "0x04 - Debug Control Register 0"] pub ctl0: CTL0, #[doc = "0x08 - Debug Control Register 1"] pub ctl1: CTL1, } #[doc = "MCU Device ID Code Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [id](id) module"] pub type ID = crate::Reg<u32, _ID>; #[allow(missing_docs)] #[doc(hidden)] pub struct _ID; #[doc = "`read()` method returns [id::R](id::R) reader structure"] impl crate::Readable for ID {} #[doc = "MCU Device ID Code Register"] pub mod id; #[doc = "Debug Control Register 0\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctl0](ctl0) module"] pub type CTL0 = crate::Reg<u32, _CTL0>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTL0; #[doc = "`read()` method returns [ctl0::R](ctl0::R) reader structure"] impl crate::Readable for CTL0 {} #[doc = "`write(|w| ..)` method takes [ctl0::W](ctl0::W) writer structure"] impl crate::Writable for CTL0 {} #[doc = "Debug Control Register 0"] pub mod ctl0; #[doc = "Debug Control Register 1\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctl1](ctl1) module"] pub type CTL1 = crate::Reg<u32, _CTL1>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTL1; #[doc = "`read()` method returns [ctl1::R](ctl1::R) reader structure"] impl crate::Readable for CTL1 {} #[doc = "`write(|w| ..)` method takes [ctl1::W](ctl1::W) writer structure"] impl crate::Writable for CTL1 {} #[doc = "Debug Control Register 1"] pub mod ctl1;