stm32g0_staging/stm32g0b0/
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/STM32G0B0.html#WWDG:CR)
33
34For information about available fields see [`mod@cr`]
35module*/
36pub type CR = crate::Reg<cr::CRrs>;
37///Control register
38pub mod cr;
39/**CFR (rw) register accessor: Configuration register
40
41You 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).
42
43See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0B0.html#WWDG:CFR)
44
45For information about available fields see [`mod@cfr`]
46module*/
47pub type CFR = crate::Reg<cfr::CFRrs>;
48///Configuration register
49pub mod cfr;
50/**SR (rw) register accessor: Status register
51
52You 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).
53
54See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0B0.html#WWDG:SR)
55
56For information about available fields see [`mod@sr`]
57module*/
58pub type SR = crate::Reg<sr::SRrs>;
59///Status register
60pub mod sr;