#[repr(C)] #[derive(Debug)] ///Register block pub struct RegisterBlock { dr: DR, idr: IDR, cr: CR, } impl RegisterBlock { ///0x00 - Data register #[inline(always)] pub const fn dr(&self) -> &DR { &self.dr } ///0x04 - Independent Data register #[inline(always)] pub const fn idr(&self) -> &IDR { &self.idr } ///0x08 - Control register #[inline(always)] pub const fn cr(&self) -> &CR { &self.cr } } /**DR (rw) register accessor: Data register You can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api). See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#CRC:DR) For information about available fields see [`mod@dr`] module*/ pub type DR = crate::Reg; ///Data register pub mod dr; /**IDR (rw) register accessor: Independent Data register You can [`read`](crate::Reg::read) this register and get [`idr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`idr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api). See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#CRC:IDR) For information about available fields see [`mod@idr`] module*/ pub type IDR = crate::Reg; ///Independent Data register pub mod idr; /**CR (w) register accessor: Control register You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api). See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#CRC:CR) For information about available fields see [`mod@cr`] module*/ pub type CR = crate::Reg; ///Control register pub mod cr;