nrf52840_pac/
uart0.rs
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..0x518 - Unspecified"]
47 pub psel: PSEL,
48 #[doc = "0x518 - RXD register"]
49 pub rxd: RXD,
50 #[doc = "0x51c - TXD register"]
51 pub txd: TXD,
52 _reserved19: [u8; 0x04],
53 #[doc = "0x524 - Baud rate. Accuracy depends on the HFCLK source selected."]
54 pub baudrate: BAUDRATE,
55 _reserved20: [u8; 0x44],
56 #[doc = "0x56c - Configuration of parity and hardware flow control"]
57 pub config: CONFIG,
58}
59#[doc = "TASKS_STARTRX (w) register accessor: an alias for `Reg<TASKS_STARTRX_SPEC>`"]
60pub type TASKS_STARTRX = crate::Reg<tasks_startrx::TASKS_STARTRX_SPEC>;
61#[doc = "Start UART receiver"]
62pub mod tasks_startrx;
63#[doc = "TASKS_STOPRX (w) register accessor: an alias for `Reg<TASKS_STOPRX_SPEC>`"]
64pub type TASKS_STOPRX = crate::Reg<tasks_stoprx::TASKS_STOPRX_SPEC>;
65#[doc = "Stop UART receiver"]
66pub mod tasks_stoprx;
67#[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg<TASKS_STARTTX_SPEC>`"]
68pub type TASKS_STARTTX = crate::Reg<tasks_starttx::TASKS_STARTTX_SPEC>;
69#[doc = "Start UART transmitter"]
70pub mod tasks_starttx;
71#[doc = "TASKS_STOPTX (w) register accessor: an alias for `Reg<TASKS_STOPTX_SPEC>`"]
72pub type TASKS_STOPTX = crate::Reg<tasks_stoptx::TASKS_STOPTX_SPEC>;
73#[doc = "Stop UART transmitter"]
74pub mod tasks_stoptx;
75#[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg<TASKS_SUSPEND_SPEC>`"]
76pub type TASKS_SUSPEND = crate::Reg<tasks_suspend::TASKS_SUSPEND_SPEC>;
77#[doc = "Suspend UART"]
78pub mod tasks_suspend;
79#[doc = "EVENTS_CTS (rw) register accessor: an alias for `Reg<EVENTS_CTS_SPEC>`"]
80pub type EVENTS_CTS = crate::Reg<events_cts::EVENTS_CTS_SPEC>;
81#[doc = "CTS is activated (set low). Clear To Send."]
82pub mod events_cts;
83#[doc = "EVENTS_NCTS (rw) register accessor: an alias for `Reg<EVENTS_NCTS_SPEC>`"]
84pub type EVENTS_NCTS = crate::Reg<events_ncts::EVENTS_NCTS_SPEC>;
85#[doc = "CTS is deactivated (set high). Not Clear To Send."]
86pub mod events_ncts;
87#[doc = "EVENTS_RXDRDY (rw) register accessor: an alias for `Reg<EVENTS_RXDRDY_SPEC>`"]
88pub type EVENTS_RXDRDY = crate::Reg<events_rxdrdy::EVENTS_RXDRDY_SPEC>;
89#[doc = "Data received in RXD"]
90pub mod events_rxdrdy;
91#[doc = "EVENTS_TXDRDY (rw) register accessor: an alias for `Reg<EVENTS_TXDRDY_SPEC>`"]
92pub type EVENTS_TXDRDY = crate::Reg<events_txdrdy::EVENTS_TXDRDY_SPEC>;
93#[doc = "Data sent from TXD"]
94pub mod events_txdrdy;
95#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
96pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
97#[doc = "Error detected"]
98pub mod events_error;
99#[doc = "EVENTS_RXTO (rw) register accessor: an alias for `Reg<EVENTS_RXTO_SPEC>`"]
100pub type EVENTS_RXTO = crate::Reg<events_rxto::EVENTS_RXTO_SPEC>;
101#[doc = "Receiver timeout"]
102pub mod events_rxto;
103#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
104pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
105#[doc = "Shortcut register"]
106pub mod shorts;
107#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
108pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
109#[doc = "Enable interrupt"]
110pub mod intenset;
111#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
112pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
113#[doc = "Disable interrupt"]
114pub mod intenclr;
115#[doc = "ERRORSRC (rw) register accessor: an alias for `Reg<ERRORSRC_SPEC>`"]
116pub type ERRORSRC = crate::Reg<errorsrc::ERRORSRC_SPEC>;
117#[doc = "Error source"]
118pub mod errorsrc;
119#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
120pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
121#[doc = "Enable UART"]
122pub mod enable;
123#[doc = "Unspecified"]
124pub use psel::PSEL;
125#[doc = r"Cluster"]
126#[doc = "Unspecified"]
127pub mod psel;
128#[doc = "RXD (r) register accessor: an alias for `Reg<RXD_SPEC>`"]
129pub type RXD = crate::Reg<rxd::RXD_SPEC>;
130#[doc = "RXD register"]
131pub mod rxd;
132#[doc = "TXD (w) register accessor: an alias for `Reg<TXD_SPEC>`"]
133pub type TXD = crate::Reg<txd::TXD_SPEC>;
134#[doc = "TXD register"]
135pub mod txd;
136#[doc = "BAUDRATE (rw) register accessor: an alias for `Reg<BAUDRATE_SPEC>`"]
137pub type BAUDRATE = crate::Reg<baudrate::BAUDRATE_SPEC>;
138#[doc = "Baud rate. Accuracy depends on the HFCLK source selected."]
139pub mod baudrate;
140#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
141pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
142#[doc = "Configuration of parity and hardware flow control"]
143pub mod config;