stm32f1_staging/stm32f101/
bkp.rs

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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
#[repr(C)]
#[derive(Debug)]
///Register block
pub struct RegisterBlock {
    dr: [DR; 10],
    rtccr: RTCCR,
    cr: CR,
    csr: CSR,
    _reserved4: [u8; 0x08],
    bkp_dr: [BKP_DR; 32],
}
impl RegisterBlock {
    ///0x00..0x28 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr(&self, n: usize) -> &DR {
        &self.dr[n]
    }
    ///Iterator for array of:
    ///0x00..0x28 - Backup data register (BKP_DR)
    #[inline(always)]
    pub fn dr_iter(&self) -> impl Iterator<Item = &DR> {
        self.dr.iter()
    }
    ///0x00 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr1(&self) -> &DR {
        self.dr(0)
    }
    ///0x04 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr2(&self) -> &DR {
        self.dr(1)
    }
    ///0x08 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr3(&self) -> &DR {
        self.dr(2)
    }
    ///0x0c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr4(&self) -> &DR {
        self.dr(3)
    }
    ///0x10 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr5(&self) -> &DR {
        self.dr(4)
    }
    ///0x14 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr6(&self) -> &DR {
        self.dr(5)
    }
    ///0x18 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr7(&self) -> &DR {
        self.dr(6)
    }
    ///0x1c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr8(&self) -> &DR {
        self.dr(7)
    }
    ///0x20 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr9(&self) -> &DR {
        self.dr(8)
    }
    ///0x24 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn dr10(&self) -> &DR {
        self.dr(9)
    }
    ///0x28 - RTC clock calibration register (BKP_RTCCR)
    #[inline(always)]
    pub const fn rtccr(&self) -> &RTCCR {
        &self.rtccr
    }
    ///0x2c - Backup control register (BKP_CR)
    #[inline(always)]
    pub const fn cr(&self) -> &CR {
        &self.cr
    }
    ///0x30 - BKP_CSR control/status register (BKP_CSR)
    #[inline(always)]
    pub const fn csr(&self) -> &CSR {
        &self.csr
    }
    ///0x3c..0xbc - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr(&self, n: usize) -> &BKP_DR {
        &self.bkp_dr[n]
    }
    ///Iterator for array of:
    ///0x3c..0xbc - Backup data register (BKP_DR)
    #[inline(always)]
    pub fn bkp_dr_iter(&self) -> impl Iterator<Item = &BKP_DR> {
        self.bkp_dr.iter()
    }
    ///0x3c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr11(&self) -> &BKP_DR {
        self.bkp_dr(0)
    }
    ///0x40 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr12(&self) -> &BKP_DR {
        self.bkp_dr(1)
    }
    ///0x44 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr13(&self) -> &BKP_DR {
        self.bkp_dr(2)
    }
    ///0x48 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr14(&self) -> &BKP_DR {
        self.bkp_dr(3)
    }
    ///0x4c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr15(&self) -> &BKP_DR {
        self.bkp_dr(4)
    }
    ///0x50 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr16(&self) -> &BKP_DR {
        self.bkp_dr(5)
    }
    ///0x54 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr17(&self) -> &BKP_DR {
        self.bkp_dr(6)
    }
    ///0x58 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr18(&self) -> &BKP_DR {
        self.bkp_dr(7)
    }
    ///0x5c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr19(&self) -> &BKP_DR {
        self.bkp_dr(8)
    }
    ///0x60 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr20(&self) -> &BKP_DR {
        self.bkp_dr(9)
    }
    ///0x64 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr21(&self) -> &BKP_DR {
        self.bkp_dr(10)
    }
    ///0x68 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr22(&self) -> &BKP_DR {
        self.bkp_dr(11)
    }
    ///0x6c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr23(&self) -> &BKP_DR {
        self.bkp_dr(12)
    }
    ///0x70 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr24(&self) -> &BKP_DR {
        self.bkp_dr(13)
    }
    ///0x74 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr25(&self) -> &BKP_DR {
        self.bkp_dr(14)
    }
    ///0x78 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr26(&self) -> &BKP_DR {
        self.bkp_dr(15)
    }
    ///0x7c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr27(&self) -> &BKP_DR {
        self.bkp_dr(16)
    }
    ///0x80 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr28(&self) -> &BKP_DR {
        self.bkp_dr(17)
    }
    ///0x84 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr29(&self) -> &BKP_DR {
        self.bkp_dr(18)
    }
    ///0x88 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr30(&self) -> &BKP_DR {
        self.bkp_dr(19)
    }
    ///0x8c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr31(&self) -> &BKP_DR {
        self.bkp_dr(20)
    }
    ///0x90 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr32(&self) -> &BKP_DR {
        self.bkp_dr(21)
    }
    ///0x94 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr33(&self) -> &BKP_DR {
        self.bkp_dr(22)
    }
    ///0x98 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr34(&self) -> &BKP_DR {
        self.bkp_dr(23)
    }
    ///0x9c - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr35(&self) -> &BKP_DR {
        self.bkp_dr(24)
    }
    ///0xa0 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr36(&self) -> &BKP_DR {
        self.bkp_dr(25)
    }
    ///0xa4 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr37(&self) -> &BKP_DR {
        self.bkp_dr(26)
    }
    ///0xa8 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr38(&self) -> &BKP_DR {
        self.bkp_dr(27)
    }
    ///0xac - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr39(&self) -> &BKP_DR {
        self.bkp_dr(28)
    }
    ///0xb0 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr40(&self) -> &BKP_DR {
        self.bkp_dr(29)
    }
    ///0xb4 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr41(&self) -> &BKP_DR {
        self.bkp_dr(30)
    }
    ///0xb8 - Backup data register (BKP_DR)
    #[inline(always)]
    pub const fn bkp_dr42(&self) -> &BKP_DR {
        self.bkp_dr(31)
    }
}
/**DR (rw) register accessor: Backup data register (BKP_DR)

You 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).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#BKP:DR[1])

For information about available fields see [`mod@dr`]
module*/
pub type DR = crate::Reg<dr::DRrs>;
///Backup data register (BKP_DR)
pub mod dr;
/**BKP_DR (rw) register accessor: Backup data register (BKP_DR)

You can [`read`](crate::Reg::read) this register and get [`bkp_dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bkp_dr::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/STM32F101.html#BKP:BKP_DR[11])

For information about available fields see [`mod@bkp_dr`]
module*/
pub type BKP_DR = crate::Reg<bkp_dr::BKP_DRrs>;
///Backup data register (BKP_DR)
pub mod bkp_dr;
/**RTCCR (rw) register accessor: RTC clock calibration register (BKP_RTCCR)

You can [`read`](crate::Reg::read) this register and get [`rtccr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccr::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/STM32F101.html#BKP:RTCCR)

For information about available fields see [`mod@rtccr`]
module*/
pub type RTCCR = crate::Reg<rtccr::RTCCRrs>;
///RTC clock calibration register (BKP_RTCCR)
pub mod rtccr;
/**CR (rw) register accessor: Backup control register (BKP_CR)

You 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).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#BKP:CR)

For information about available fields see [`mod@cr`]
module*/
pub type CR = crate::Reg<cr::CRrs>;
///Backup control register (BKP_CR)
pub mod cr;
/**CSR (rw) register accessor: BKP_CSR control/status register (BKP_CSR)

You can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::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/STM32F101.html#BKP:CSR)

For information about available fields see [`mod@csr`]
module*/
pub type CSR = crate::Reg<csr::CSRrs>;
///BKP_CSR control/status register (BKP_CSR)
pub mod csr;