stm32f4_staging/stm32f413/crc.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 dr: DR,
6 idr: IDR,
7 cr: CR,
8}
9impl RegisterBlock {
10 ///0x00 - Data register
11 #[inline(always)]
12 pub const fn dr(&self) -> &DR {
13 &self.dr
14 }
15 ///0x04 - Independent Data register
16 #[inline(always)]
17 pub const fn idr(&self) -> &IDR {
18 &self.idr
19 }
20 ///0x08 - Control register
21 #[inline(always)]
22 pub const fn cr(&self) -> &CR {
23 &self.cr
24 }
25}
26/**DR (rw) register accessor: Data register
27
28You 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).
29
30See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#CRC:DR)
31
32For information about available fields see [`mod@dr`] module*/
33pub type DR = crate::Reg<dr::DRrs>;
34///Data register
35pub mod dr;
36/**IDR (rw) register accessor: Independent Data register
37
38You 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).
39
40See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#CRC:IDR)
41
42For information about available fields see [`mod@idr`] module*/
43pub type IDR = crate::Reg<idr::IDRrs>;
44///Independent Data register
45pub mod idr;
46/**CR (w) register accessor: Control register
47
48You 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).
49
50See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#CRC:CR)
51
52For information about available fields see [`mod@cr`] module*/
53pub type CR = crate::Reg<cr::CRrs>;
54///Control register
55pub mod cr;