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