stm32f1_staging/stm32f103/iwdg.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 kr: KR,
6 _reserved1: [u8; 0x02],
7 pr: PR,
8 _reserved2: [u8; 0x02],
9 rlr: RLR,
10 _reserved3: [u8; 0x02],
11 sr: SR,
12}
13impl RegisterBlock {
14 ///0x00 - Key register (IWDG_KR)
15 #[inline(always)]
16 pub const fn kr(&self) -> &KR {
17 &self.kr
18 }
19 ///0x04 - Prescaler register (IWDG_PR)
20 #[inline(always)]
21 pub const fn pr(&self) -> &PR {
22 &self.pr
23 }
24 ///0x08 - Reload register (IWDG_RLR)
25 #[inline(always)]
26 pub const fn rlr(&self) -> &RLR {
27 &self.rlr
28 }
29 ///0x0c - Status register (IWDG_SR)
30 #[inline(always)]
31 pub const fn sr(&self) -> &SR {
32 &self.sr
33 }
34}
35/**KR (w) register accessor: Key register (IWDG_KR)
36
37You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`kr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
38
39See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#IWDG:KR)
40
41For information about available fields see [`mod@kr`] module*/
42pub type KR = crate::Reg<kr::KRrs>;
43///Key register (IWDG_KR)
44pub mod kr;
45/**PR (rw) register accessor: Prescaler register (IWDG_PR)
46
47You can [`read`](crate::Reg::read) this register and get [`pr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
48
49See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#IWDG:PR)
50
51For information about available fields see [`mod@pr`] module*/
52pub type PR = crate::Reg<pr::PRrs>;
53///Prescaler register (IWDG_PR)
54pub mod pr;
55/**RLR (rw) register accessor: Reload register (IWDG_RLR)
56
57You can [`read`](crate::Reg::read) this register and get [`rlr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rlr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
58
59See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#IWDG:RLR)
60
61For information about available fields see [`mod@rlr`] module*/
62pub type RLR = crate::Reg<rlr::RLRrs>;
63///Reload register (IWDG_RLR)
64pub mod rlr;
65/**SR (r) register accessor: Status register (IWDG_SR)
66
67You can [`read`](crate::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
68
69See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#IWDG:SR)
70
71For information about available fields see [`mod@sr`] module*/
72pub type SR = crate::Reg<sr::SRrs>;
73///Status register (IWDG_SR)
74pub mod sr;