stm32l5/stm32l562/wwdg.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 cr: CR,
6 _reserved1: [u8; 0x02],
7 cfr: CFR,
8 _reserved2: [u8; 0x02],
9 sr: SR,
10}
11impl RegisterBlock {
12 ///0x00 - Control register
13 #[inline(always)]
14 pub const fn cr(&self) -> &CR {
15 &self.cr
16 }
17 ///0x04 - Configuration register
18 #[inline(always)]
19 pub const fn cfr(&self) -> &CFR {
20 &self.cfr
21 }
22 ///0x08 - Status register
23 #[inline(always)]
24 pub const fn sr(&self) -> &SR {
25 &self.sr
26 }
27}
28/**CR (rw) register accessor: Control register
29
30You 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).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L562.html#WWDG:CR)
33
34For information about available fields see [`mod@cr`] module*/
35pub type CR = crate::Reg<cr::CRrs>;
36///Control register
37pub mod cr;
38/**CFR (rw) register accessor: Configuration register
39
40You can [`read`](crate::Reg::read) this register and get [`cfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
41
42See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L562.html#WWDG:CFR)
43
44For information about available fields see [`mod@cfr`] module*/
45pub type CFR = crate::Reg<cfr::CFRrs>;
46///Configuration register
47pub mod cfr;
48/**SR (rw) register accessor: Status register
49
50You can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
51
52See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L562.html#WWDG:SR)
53
54For information about available fields see [`mod@sr`] module*/
55pub type SR = crate::Reg<sr::SRrs>;
56///Status register
57pub mod sr;