stm32h7 0.5.0

Device support crates for STM32H7 devices
Documentation
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - The RTC_TR is the calendar time shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_tr: RTC_TR,
    #[doc = "0x04 - The RTC_DR is the calendar date shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_dr: RTC_DR,
    #[doc = "0x08 - RTC control register"]
    pub rtc_cr: RTC_CR,
    #[doc = "0x0c - This register is write protected (except for RTC_ISR\\[13:8\\] bits). The write access procedure is described in RTC register write protection on page9."]
    pub rtc_isr: RTC_ISR,
    #[doc = "0x10 - This register must be written in initialization mode only. The initialization must be performed in two separate write accesses. Refer to Calendar initialization and configuration on page9.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_prer: RTC_PRER,
    #[doc = "0x14 - This register can be written only when WUTWF is set to 1 in RTC_ISR.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_wutr: RTC_WUTR,
    _reserved0: [u8; 4usize],
    #[doc = "0x1c - This register can be written only when ALRAWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_alrmar: RTC_ALRMAR,
    #[doc = "0x20 - This register can be written only when ALRBWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_alrmbr: RTC_ALRMBR,
    #[doc = "0x24 - RTC write protection register"]
    pub rtc_wpr: RTC_WPR,
    #[doc = "0x28 - RTC sub second register"]
    pub rtc_ssr: RTC_SSR,
    #[doc = "0x2c - This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_shiftr: RTC_SHIFTR,
    #[doc = "0x30 - The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
    pub rtc_tstr: RTC_TSTR,
    #[doc = "0x34 - The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
    pub rtc_tsdr: RTC_TSDR,
    #[doc = "0x38 - The content of this register is valid only when RTC_ISR/TSF is set. It is cleared when the RTC_ISR/TSF bit is reset."]
    pub rtc_tsssr: RTC_TSSSR,
    #[doc = "0x3c - This register is write protected. The write access procedure is described in RTC register write protection on page9."]
    pub rtc_calr: RTC_CALR,
    #[doc = "0x40 - RTC tamper and alternate function configuration register"]
    pub rtc_tampcr: RTC_TAMPCR,
    #[doc = "0x44 - This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9"]
    pub rtc_alrmassr: RTC_ALRMASSR,
    #[doc = "0x48 - This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode.This register is write protected.The write access procedure is described in Section: RTC register write protection."]
    pub rtc_alrmbssr: RTC_ALRMBSSR,
    #[doc = "0x4c - RTC option register"]
    pub rtc_or: RTC_OR,
    #[doc = "0x50 - RTC backup registers"]
    pub rtc_bkp0r: RTC_BKP0R,
    #[doc = "0x54 - RTC backup registers"]
    pub rtc_bkp1r: RTC_BKP1R,
    #[doc = "0x58 - RTC backup registers"]
    pub rtc_bkp2r: RTC_BKP2R,
    #[doc = "0x5c - RTC backup registers"]
    pub rtc_bkp3r: RTC_BKP3R,
    #[doc = "0x60 - RTC backup registers"]
    pub rtc_bkp4r: RTC_BKP4R,
    #[doc = "0x64 - RTC backup registers"]
    pub rtc_bkp5r: RTC_BKP5R,
    #[doc = "0x68 - RTC backup registers"]
    pub rtc_bkp6r: RTC_BKP6R,
    #[doc = "0x6c - RTC backup registers"]
    pub rtc_bkp7r: RTC_BKP7R,
    #[doc = "0x70 - RTC backup registers"]
    pub rtc_bkp8r: RTC_BKP8R,
    #[doc = "0x74 - RTC backup registers"]
    pub rtc_bkp9r: RTC_BKP9R,
    #[doc = "0x78 - RTC backup registers"]
    pub rtc_bkp10r: RTC_BKP10R,
    #[doc = "0x7c - RTC backup registers"]
    pub rtc_bkp11r: RTC_BKP11R,
    #[doc = "0x80 - RTC backup registers"]
    pub rtc_bkp12r: RTC_BKP12R,
    #[doc = "0x84 - RTC backup registers"]
    pub rtc_bkp13r: RTC_BKP13R,
    #[doc = "0x88 - RTC backup registers"]
    pub rtc_bkp14r: RTC_BKP14R,
    #[doc = "0x8c - RTC backup registers"]
    pub rtc_bkp15r: RTC_BKP15R,
    #[doc = "0x90 - RTC backup registers"]
    pub rtc_bkp16r: RTC_BKP16R,
    #[doc = "0x94 - RTC backup registers"]
    pub rtc_bkp17r: RTC_BKP17R,
    #[doc = "0x98 - RTC backup registers"]
    pub rtc_bkp18r: RTC_BKP18R,
    #[doc = "0x9c - RTC backup registers"]
    pub rtc_bkp19r: RTC_BKP19R,
    #[doc = "0xa0 - RTC backup registers"]
    pub rtc_bkp20r: RTC_BKP20R,
    #[doc = "0xa4 - RTC backup registers"]
    pub rtc_bkp21r: RTC_BKP21R,
    #[doc = "0xa8 - RTC backup registers"]
    pub rtc_bkp22r: RTC_BKP22R,
    #[doc = "0xac - RTC backup registers"]
    pub rtc_bkp23r: RTC_BKP23R,
    #[doc = "0xb0 - RTC backup registers"]
    pub rtc_bkp24r: RTC_BKP24R,
    #[doc = "0xb4 - RTC backup registers"]
    pub rtc_bkp25r: RTC_BKP25R,
    #[doc = "0xb8 - RTC backup registers"]
    pub rtc_bkp26r: RTC_BKP26R,
    #[doc = "0xbc - RTC backup registers"]
    pub rtc_bkp27r: RTC_BKP27R,
    #[doc = "0xc0 - RTC backup registers"]
    pub rtc_bkp28r: RTC_BKP28R,
    #[doc = "0xc4 - RTC backup registers"]
    pub rtc_bkp29r: RTC_BKP29R,
    #[doc = "0xc8 - RTC backup registers"]
    pub rtc_bkp30r: RTC_BKP30R,
    #[doc = "0xcc - RTC backup registers"]
    pub rtc_bkp31r: RTC_BKP31R,
}
#[doc = "The RTC_TR is the calendar time shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_TR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "The RTC_TR is the calendar time shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_tr;
#[doc = "The RTC_DR is the calendar date shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_DR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "The RTC_DR is the calendar date shadow register. This register must be written in initialization mode only. Refer to Calendar initialization and configuration on page9 and Reading the calendar on page10.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_dr;
#[doc = "RTC control register"]
pub struct RTC_CR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC control register"]
pub mod rtc_cr;
#[doc = "This register is write protected (except for RTC_ISR\\[13:8\\] bits). The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_ISR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register is write protected (except for RTC_ISR\\[13:8\\] bits). The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_isr;
#[doc = "This register must be written in initialization mode only. The initialization must be performed in two separate write accesses. Refer to Calendar initialization and configuration on page9.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_PRER {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register must be written in initialization mode only. The initialization must be performed in two separate write accesses. Refer to Calendar initialization and configuration on page9.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_prer;
#[doc = "This register can be written only when WUTWF is set to 1 in RTC_ISR.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_WUTR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register can be written only when WUTWF is set to 1 in RTC_ISR.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_wutr;
#[doc = "This register can be written only when ALRAWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_ALRMAR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register can be written only when ALRAWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_alrmar;
#[doc = "This register can be written only when ALRBWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_ALRMBR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register can be written only when ALRBWF is set to 1 in RTC_ISR, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_alrmbr;
#[doc = "RTC write protection register"]
pub struct RTC_WPR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC write protection register"]
pub mod rtc_wpr;
#[doc = "RTC sub second register"]
pub struct RTC_SSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC sub second register"]
pub mod rtc_ssr;
#[doc = "This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_SHIFTR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_shiftr;
#[doc = "The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
pub struct RTC_TSTR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
pub mod rtc_tstr;
#[doc = "The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
pub struct RTC_TSDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "The content of this register is valid only when TSF is set to 1 in RTC_ISR. It is cleared when TSF bit is reset."]
pub mod rtc_tsdr;
#[doc = "The content of this register is valid only when RTC_ISR/TSF is set. It is cleared when the RTC_ISR/TSF bit is reset."]
pub struct RTC_TSSSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "The content of this register is valid only when RTC_ISR/TSF is set. It is cleared when the RTC_ISR/TSF bit is reset."]
pub mod rtc_tsssr;
#[doc = "This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub struct RTC_CALR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register is write protected. The write access procedure is described in RTC register write protection on page9."]
pub mod rtc_calr;
#[doc = "RTC tamper and alternate function configuration register"]
pub struct RTC_TAMPCR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC tamper and alternate function configuration register"]
pub mod rtc_tampcr;
#[doc = "This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9"]
pub struct RTC_ALRMASSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode.This register is write protected. The write access procedure is described in RTC register write protection on page9"]
pub mod rtc_alrmassr;
#[doc = "This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode.This register is write protected.The write access procedure is described in Section: RTC register write protection."]
pub struct RTC_ALRMBSSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode.This register is write protected.The write access procedure is described in Section: RTC register write protection."]
pub mod rtc_alrmbssr;
#[doc = "RTC backup registers"]
pub struct RTC_BKP0R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp0r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP1R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp1r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP2R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp2r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP3R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp3r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP4R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp4r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP5R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp5r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP6R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp6r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP7R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp7r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP8R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp8r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP9R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp9r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP10R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp10r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP11R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp11r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP12R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp12r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP13R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp13r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP14R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp14r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP15R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp15r;
#[doc = "RTC option register"]
pub struct RTC_OR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC option register"]
pub mod rtc_or;
#[doc = "RTC backup registers"]
pub struct RTC_BKP16R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp16r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP17R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp17r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP18R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp18r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP19R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp19r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP20R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp20r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP21R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp21r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP22R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp22r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP23R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp23r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP24R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp24r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP25R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp25r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP26R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp26r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP27R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp27r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP28R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp28r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP29R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp29r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP30R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp30r;
#[doc = "RTC backup registers"]
pub struct RTC_BKP31R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "RTC backup registers"]
pub mod rtc_bkp31r;