1#[doc = r" Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control register 1"]
5 pub cr1: CR1,
6 #[doc = "0x04 - Control register 2"]
7 pub cr2: CR2,
8 #[doc = "0x08 - Control register 3"]
9 pub cr3: CR3,
10 #[doc = "0x0c - Baud rate register"]
11 pub brr: BRR,
12 _reserved0: [u8; 8usize],
13 #[doc = "0x18 - Request register"]
14 pub rqr: RQR,
15 #[doc = "0x1c - Interrupt & status register"]
16 pub isr: ISR,
17 #[doc = "0x20 - Interrupt flag clear register"]
18 pub icr: ICR,
19 #[doc = "0x24 - Receive data register"]
20 pub rdr: RDR,
21 #[doc = "0x28 - Transmit data register"]
22 pub tdr: TDR,
23}
24#[doc = "Control register 1"]
25pub struct CR1 {
26 register: ::vcell::VolatileCell<u32>,
27}
28#[doc = "Control register 1"]
29pub mod cr1;
30#[doc = "Control register 2"]
31pub struct CR2 {
32 register: ::vcell::VolatileCell<u32>,
33}
34#[doc = "Control register 2"]
35pub mod cr2;
36#[doc = "Control register 3"]
37pub struct CR3 {
38 register: ::vcell::VolatileCell<u32>,
39}
40#[doc = "Control register 3"]
41pub mod cr3;
42#[doc = "Baud rate register"]
43pub struct BRR {
44 register: ::vcell::VolatileCell<u32>,
45}
46#[doc = "Baud rate register"]
47pub mod brr;
48#[doc = "Request register"]
49pub struct RQR {
50 register: ::vcell::VolatileCell<u32>,
51}
52#[doc = "Request register"]
53pub mod rqr;
54#[doc = "Interrupt & status register"]
55pub struct ISR {
56 register: ::vcell::VolatileCell<u32>,
57}
58#[doc = "Interrupt & status register"]
59pub mod isr;
60#[doc = "Interrupt flag clear register"]
61pub struct ICR {
62 register: ::vcell::VolatileCell<u32>,
63}
64#[doc = "Interrupt flag clear register"]
65pub mod icr;
66#[doc = "Receive data register"]
67pub struct RDR {
68 register: ::vcell::VolatileCell<u32>,
69}
70#[doc = "Receive data register"]
71pub mod rdr;
72#[doc = "Transmit data register"]
73pub struct TDR {
74 register: ::vcell::VolatileCell<u32>,
75}
76#[doc = "Transmit data register"]
77pub mod tdr;