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 #[doc = "0x10 - Guard time and prescaler register"]
13 pub gtpr: GTPR,
14 #[doc = "0x14 - Receiver timeout register"]
15 pub rtor: RTOR,
16 #[doc = "0x18 - Request register"]
17 pub rqr: RQR,
18 #[doc = "0x1c - Interrupt & status register"]
19 pub isr: ISR,
20 #[doc = "0x20 - Interrupt flag clear register"]
21 pub icr: ICR,
22 #[doc = "0x24 - Receive data register"]
23 pub rdr: RDR,
24 #[doc = "0x28 - Transmit data register"]
25 pub tdr: TDR,
26}
27#[doc = "Control register 1"]
28pub struct CR1 {
29 register: ::vcell::VolatileCell<u32>,
30}
31#[doc = "Control register 1"]
32pub mod cr1;
33#[doc = "Control register 2"]
34pub struct CR2 {
35 register: ::vcell::VolatileCell<u32>,
36}
37#[doc = "Control register 2"]
38pub mod cr2;
39#[doc = "Control register 3"]
40pub struct CR3 {
41 register: ::vcell::VolatileCell<u32>,
42}
43#[doc = "Control register 3"]
44pub mod cr3;
45#[doc = "Baud rate register"]
46pub struct BRR {
47 register: ::vcell::VolatileCell<u32>,
48}
49#[doc = "Baud rate register"]
50pub mod brr;
51#[doc = "Guard time and prescaler register"]
52pub struct GTPR {
53 register: ::vcell::VolatileCell<u32>,
54}
55#[doc = "Guard time and prescaler register"]
56pub mod gtpr;
57#[doc = "Receiver timeout register"]
58pub struct RTOR {
59 register: ::vcell::VolatileCell<u32>,
60}
61#[doc = "Receiver timeout register"]
62pub mod rtor;
63#[doc = "Request register"]
64pub struct RQR {
65 register: ::vcell::VolatileCell<u32>,
66}
67#[doc = "Request register"]
68pub mod rqr;
69#[doc = "Interrupt & status register"]
70pub struct ISR {
71 register: ::vcell::VolatileCell<u32>,
72}
73#[doc = "Interrupt & status register"]
74pub mod isr;
75#[doc = "Interrupt flag clear register"]
76pub struct ICR {
77 register: ::vcell::VolatileCell<u32>,
78}
79#[doc = "Interrupt flag clear register"]
80pub mod icr;
81#[doc = "Receive data register"]
82pub struct RDR {
83 register: ::vcell::VolatileCell<u32>,
84}
85#[doc = "Receive data register"]
86pub mod rdr;
87#[doc = "Transmit data register"]
88pub struct TDR {
89 register: ::vcell::VolatileCell<u32>,
90}
91#[doc = "Transmit data register"]
92pub mod tdr;