1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start UART receiver"]
5 pub tasks_startrx: TASKS_STARTRX,
6 #[doc = "0x04 - Stop UART receiver"]
7 pub tasks_stoprx: TASKS_STOPRX,
8 #[doc = "0x08 - Start UART transmitter"]
9 pub tasks_starttx: TASKS_STARTTX,
10 #[doc = "0x0c - Stop UART transmitter"]
11 pub tasks_stoptx: TASKS_STOPTX,
12 _reserved4: [u8; 0x0c],
13 #[doc = "0x1c - Suspend UART"]
14 pub tasks_suspend: TASKS_SUSPEND,
15 _reserved5: [u8; 0xe0],
16 #[doc = "0x100 - CTS is activated (set low). Clear To Send."]
17 pub events_cts: EVENTS_CTS,
18 #[doc = "0x104 - CTS is deactivated (set high). Not Clear To Send."]
19 pub events_ncts: EVENTS_NCTS,
20 #[doc = "0x108 - Data received in RXD"]
21 pub events_rxdrdy: EVENTS_RXDRDY,
22 _reserved8: [u8; 0x10],
23 #[doc = "0x11c - Data sent from TXD"]
24 pub events_txdrdy: EVENTS_TXDRDY,
25 _reserved9: [u8; 0x04],
26 #[doc = "0x124 - Error detected"]
27 pub events_error: EVENTS_ERROR,
28 _reserved10: [u8; 0x1c],
29 #[doc = "0x144 - Receiver timeout"]
30 pub events_rxto: EVENTS_RXTO,
31 _reserved11: [u8; 0xb8],
32 #[doc = "0x200 - Shortcut register"]
33 pub shorts: SHORTS,
34 _reserved12: [u8; 0x0100],
35 #[doc = "0x304 - Enable interrupt"]
36 pub intenset: INTENSET,
37 #[doc = "0x308 - Disable interrupt"]
38 pub intenclr: INTENCLR,
39 _reserved14: [u8; 0x0174],
40 #[doc = "0x480 - Error source"]
41 pub errorsrc: ERRORSRC,
42 _reserved15: [u8; 0x7c],
43 #[doc = "0x500 - Enable UART"]
44 pub enable: ENABLE,
45 _reserved16: [u8; 0x04],
46 #[doc = "0x508 - Pin select for RTS"]
47 pub pselrts: PSELRTS,
48 #[doc = "0x50c - Pin select for TXD"]
49 pub pseltxd: PSELTXD,
50 #[doc = "0x510 - Pin select for CTS"]
51 pub pselcts: PSELCTS,
52 #[doc = "0x514 - Pin select for RXD"]
53 pub pselrxd: PSELRXD,
54 #[doc = "0x518 - RXD register"]
55 pub rxd: RXD,
56 #[doc = "0x51c - TXD register"]
57 pub txd: TXD,
58 _reserved22: [u8; 0x04],
59 #[doc = "0x524 - Baud rate"]
60 pub baudrate: BAUDRATE,
61 _reserved23: [u8; 0x44],
62 #[doc = "0x56c - Configuration of parity and hardware flow control"]
63 pub config: CONFIG,
64}
65#[doc = "TASKS_STARTRX (w) register accessor: an alias for `Reg<TASKS_STARTRX_SPEC>`"]
66pub type TASKS_STARTRX = crate::Reg<tasks_startrx::TASKS_STARTRX_SPEC>;
67#[doc = "Start UART receiver"]
68pub mod tasks_startrx;
69#[doc = "TASKS_STOPRX (w) register accessor: an alias for `Reg<TASKS_STOPRX_SPEC>`"]
70pub type TASKS_STOPRX = crate::Reg<tasks_stoprx::TASKS_STOPRX_SPEC>;
71#[doc = "Stop UART receiver"]
72pub mod tasks_stoprx;
73#[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg<TASKS_STARTTX_SPEC>`"]
74pub type TASKS_STARTTX = crate::Reg<tasks_starttx::TASKS_STARTTX_SPEC>;
75#[doc = "Start UART transmitter"]
76pub mod tasks_starttx;
77#[doc = "TASKS_STOPTX (w) register accessor: an alias for `Reg<TASKS_STOPTX_SPEC>`"]
78pub type TASKS_STOPTX = crate::Reg<tasks_stoptx::TASKS_STOPTX_SPEC>;
79#[doc = "Stop UART transmitter"]
80pub mod tasks_stoptx;
81#[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg<TASKS_SUSPEND_SPEC>`"]
82pub type TASKS_SUSPEND = crate::Reg<tasks_suspend::TASKS_SUSPEND_SPEC>;
83#[doc = "Suspend UART"]
84pub mod tasks_suspend;
85#[doc = "EVENTS_CTS (rw) register accessor: an alias for `Reg<EVENTS_CTS_SPEC>`"]
86pub type EVENTS_CTS = crate::Reg<events_cts::EVENTS_CTS_SPEC>;
87#[doc = "CTS is activated (set low). Clear To Send."]
88pub mod events_cts;
89#[doc = "EVENTS_NCTS (rw) register accessor: an alias for `Reg<EVENTS_NCTS_SPEC>`"]
90pub type EVENTS_NCTS = crate::Reg<events_ncts::EVENTS_NCTS_SPEC>;
91#[doc = "CTS is deactivated (set high). Not Clear To Send."]
92pub mod events_ncts;
93#[doc = "EVENTS_RXDRDY (rw) register accessor: an alias for `Reg<EVENTS_RXDRDY_SPEC>`"]
94pub type EVENTS_RXDRDY = crate::Reg<events_rxdrdy::EVENTS_RXDRDY_SPEC>;
95#[doc = "Data received in RXD"]
96pub mod events_rxdrdy;
97#[doc = "EVENTS_TXDRDY (rw) register accessor: an alias for `Reg<EVENTS_TXDRDY_SPEC>`"]
98pub type EVENTS_TXDRDY = crate::Reg<events_txdrdy::EVENTS_TXDRDY_SPEC>;
99#[doc = "Data sent from TXD"]
100pub mod events_txdrdy;
101#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
102pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
103#[doc = "Error detected"]
104pub mod events_error;
105#[doc = "EVENTS_RXTO (rw) register accessor: an alias for `Reg<EVENTS_RXTO_SPEC>`"]
106pub type EVENTS_RXTO = crate::Reg<events_rxto::EVENTS_RXTO_SPEC>;
107#[doc = "Receiver timeout"]
108pub mod events_rxto;
109#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
110pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
111#[doc = "Shortcut register"]
112pub mod shorts;
113#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
114pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
115#[doc = "Enable interrupt"]
116pub mod intenset;
117#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
118pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
119#[doc = "Disable interrupt"]
120pub mod intenclr;
121#[doc = "ERRORSRC (rw) register accessor: an alias for `Reg<ERRORSRC_SPEC>`"]
122pub type ERRORSRC = crate::Reg<errorsrc::ERRORSRC_SPEC>;
123#[doc = "Error source"]
124pub mod errorsrc;
125#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
126pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
127#[doc = "Enable UART"]
128pub mod enable;
129#[doc = "PSELRTS (rw) register accessor: an alias for `Reg<PSELRTS_SPEC>`"]
130pub type PSELRTS = crate::Reg<pselrts::PSELRTS_SPEC>;
131#[doc = "Pin select for RTS"]
132pub mod pselrts;
133#[doc = "PSELTXD (rw) register accessor: an alias for `Reg<PSELTXD_SPEC>`"]
134pub type PSELTXD = crate::Reg<pseltxd::PSELTXD_SPEC>;
135#[doc = "Pin select for TXD"]
136pub mod pseltxd;
137#[doc = "PSELCTS (rw) register accessor: an alias for `Reg<PSELCTS_SPEC>`"]
138pub type PSELCTS = crate::Reg<pselcts::PSELCTS_SPEC>;
139#[doc = "Pin select for CTS"]
140pub mod pselcts;
141#[doc = "PSELRXD (rw) register accessor: an alias for `Reg<PSELRXD_SPEC>`"]
142pub type PSELRXD = crate::Reg<pselrxd::PSELRXD_SPEC>;
143#[doc = "Pin select for RXD"]
144pub mod pselrxd;
145#[doc = "RXD (r) register accessor: an alias for `Reg<RXD_SPEC>`"]
146pub type RXD = crate::Reg<rxd::RXD_SPEC>;
147#[doc = "RXD register"]
148pub mod rxd;
149#[doc = "TXD (w) register accessor: an alias for `Reg<TXD_SPEC>`"]
150pub type TXD = crate::Reg<txd::TXD_SPEC>;
151#[doc = "TXD register"]
152pub mod txd;
153#[doc = "BAUDRATE (rw) register accessor: an alias for `Reg<BAUDRATE_SPEC>`"]
154pub type BAUDRATE = crate::Reg<baudrate::BAUDRATE_SPEC>;
155#[doc = "Baud rate"]
156pub mod baudrate;
157#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
158pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
159#[doc = "Configuration of parity and hardware flow control"]
160pub mod config;