1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 cr1: Cr1,
5 cr2: Cr2,
6 cr3: Cr3,
7 brr: Brr,
8 gtpr: Gtpr,
9 rtor: Rtor,
10 rqr: Rqr,
11 isr: Isr,
12 icr: Icr,
13 rdr: Rdr,
14 tdr: Tdr,
15}
16impl RegisterBlock {
17 #[doc = "0x00 - Control register 1"]
18 #[inline(always)]
19 pub const fn cr1(&self) -> &Cr1 {
20 &self.cr1
21 }
22 #[doc = "0x04 - Control register 2"]
23 #[inline(always)]
24 pub const fn cr2(&self) -> &Cr2 {
25 &self.cr2
26 }
27 #[doc = "0x08 - Control register 3"]
28 #[inline(always)]
29 pub const fn cr3(&self) -> &Cr3 {
30 &self.cr3
31 }
32 #[doc = "0x0c - Baud rate register"]
33 #[inline(always)]
34 pub const fn brr(&self) -> &Brr {
35 &self.brr
36 }
37 #[doc = "0x10 - Guard time and prescaler register"]
38 #[inline(always)]
39 pub const fn gtpr(&self) -> &Gtpr {
40 &self.gtpr
41 }
42 #[doc = "0x14 - Receiver timeout register"]
43 #[inline(always)]
44 pub const fn rtor(&self) -> &Rtor {
45 &self.rtor
46 }
47 #[doc = "0x18 - Request register"]
48 #[inline(always)]
49 pub const fn rqr(&self) -> &Rqr {
50 &self.rqr
51 }
52 #[doc = "0x1c - Interrupt & status register"]
53 #[inline(always)]
54 pub const fn isr(&self) -> &Isr {
55 &self.isr
56 }
57 #[doc = "0x20 - Interrupt flag clear register"]
58 #[inline(always)]
59 pub const fn icr(&self) -> &Icr {
60 &self.icr
61 }
62 #[doc = "0x24 - Receive data register"]
63 #[inline(always)]
64 pub const fn rdr(&self) -> &Rdr {
65 &self.rdr
66 }
67 #[doc = "0x28 - Transmit data register"]
68 #[inline(always)]
69 pub const fn tdr(&self) -> &Tdr {
70 &self.tdr
71 }
72}
73#[doc = "CR1 (rw) register accessor: Control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
74#[doc(alias = "CR1")]
75pub type Cr1 = crate::Reg<cr1::Cr1Spec>;
76#[doc = "Control register 1"]
77pub mod cr1;
78#[doc = "CR2 (rw) register accessor: Control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
79#[doc(alias = "CR2")]
80pub type Cr2 = crate::Reg<cr2::Cr2Spec>;
81#[doc = "Control register 2"]
82pub mod cr2;
83#[doc = "CR3 (rw) register accessor: Control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr3`] module"]
84#[doc(alias = "CR3")]
85pub type Cr3 = crate::Reg<cr3::Cr3Spec>;
86#[doc = "Control register 3"]
87pub mod cr3;
88#[doc = "BRR (rw) register accessor: Baud rate register\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@brr`] module"]
89#[doc(alias = "BRR")]
90pub type Brr = crate::Reg<brr::BrrSpec>;
91#[doc = "Baud rate register"]
92pub mod brr;
93#[doc = "GTPR (rw) register accessor: Guard time and prescaler register\n\nYou can [`read`](crate::Reg::read) this register and get [`gtpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gtpr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gtpr`] module"]
94#[doc(alias = "GTPR")]
95pub type Gtpr = crate::Reg<gtpr::GtprSpec>;
96#[doc = "Guard time and prescaler register"]
97pub mod gtpr;
98#[doc = "RTOR (rw) register accessor: Receiver timeout register\n\nYou can [`read`](crate::Reg::read) this register and get [`rtor::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtor::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rtor`] module"]
99#[doc(alias = "RTOR")]
100pub type Rtor = crate::Reg<rtor::RtorSpec>;
101#[doc = "Receiver timeout register"]
102pub mod rtor;
103#[doc = "RQR (w) register accessor: Request register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rqr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rqr`] module"]
104#[doc(alias = "RQR")]
105pub type Rqr = crate::Reg<rqr::RqrSpec>;
106#[doc = "Request register"]
107pub mod rqr;
108#[doc = "ISR (r) register accessor: Interrupt & status register\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`] module"]
109#[doc(alias = "ISR")]
110pub type Isr = crate::Reg<isr::IsrSpec>;
111#[doc = "Interrupt & status register"]
112pub mod isr;
113#[doc = "ICR (w) register accessor: Interrupt flag clear register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@icr`] module"]
114#[doc(alias = "ICR")]
115pub type Icr = crate::Reg<icr::IcrSpec>;
116#[doc = "Interrupt flag clear register"]
117pub mod icr;
118#[doc = "RDR (r) register accessor: Receive data register\n\nYou can [`read`](crate::Reg::read) this register and get [`rdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rdr`] module"]
119#[doc(alias = "RDR")]
120pub type Rdr = crate::Reg<rdr::RdrSpec>;
121#[doc = "Receive data register"]
122pub mod rdr;
123#[doc = "TDR (rw) register accessor: Transmit data register\n\nYou can [`read`](crate::Reg::read) this register and get [`tdr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tdr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tdr`] module"]
124#[doc(alias = "TDR")]
125pub type Tdr = crate::Reg<tdr::TdrSpec>;
126#[doc = "Transmit data register"]
127pub mod tdr;