nrf5340_net_pac/
twis0_ns.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x14],
5 #[doc = "0x14 - Stop TWI transaction"]
6 pub tasks_stop: TASKS_STOP,
7 _reserved1: [u8; 0x04],
8 #[doc = "0x1c - Suspend TWI transaction"]
9 pub tasks_suspend: TASKS_SUSPEND,
10 #[doc = "0x20 - Resume TWI transaction"]
11 pub tasks_resume: TASKS_RESUME,
12 _reserved3: [u8; 0x0c],
13 #[doc = "0x30 - Prepare the TWI slave to respond to a write command"]
14 pub tasks_preparerx: TASKS_PREPARERX,
15 #[doc = "0x34 - Prepare the TWI slave to respond to a read command"]
16 pub tasks_preparetx: TASKS_PREPARETX,
17 _reserved5: [u8; 0x5c],
18 #[doc = "0x94 - Subscribe configuration for task STOP"]
19 pub subscribe_stop: SUBSCRIBE_STOP,
20 _reserved6: [u8; 0x04],
21 #[doc = "0x9c - Subscribe configuration for task SUSPEND"]
22 pub subscribe_suspend: SUBSCRIBE_SUSPEND,
23 #[doc = "0xa0 - Subscribe configuration for task RESUME"]
24 pub subscribe_resume: SUBSCRIBE_RESUME,
25 _reserved8: [u8; 0x0c],
26 #[doc = "0xb0 - Subscribe configuration for task PREPARERX"]
27 pub subscribe_preparerx: SUBSCRIBE_PREPARERX,
28 #[doc = "0xb4 - Subscribe configuration for task PREPARETX"]
29 pub subscribe_preparetx: SUBSCRIBE_PREPARETX,
30 _reserved10: [u8; 0x4c],
31 #[doc = "0x104 - TWI stopped"]
32 pub events_stopped: EVENTS_STOPPED,
33 _reserved11: [u8; 0x1c],
34 #[doc = "0x124 - TWI error"]
35 pub events_error: EVENTS_ERROR,
36 _reserved12: [u8; 0x24],
37 #[doc = "0x14c - Receive sequence started"]
38 pub events_rxstarted: EVENTS_RXSTARTED,
39 #[doc = "0x150 - Transmit sequence started"]
40 pub events_txstarted: EVENTS_TXSTARTED,
41 _reserved14: [u8; 0x10],
42 #[doc = "0x164 - Write command received"]
43 pub events_write: EVENTS_WRITE,
44 #[doc = "0x168 - Read command received"]
45 pub events_read: EVENTS_READ,
46 _reserved16: [u8; 0x18],
47 #[doc = "0x184 - Publish configuration for event STOPPED"]
48 pub publish_stopped: PUBLISH_STOPPED,
49 _reserved17: [u8; 0x1c],
50 #[doc = "0x1a4 - Publish configuration for event ERROR"]
51 pub publish_error: PUBLISH_ERROR,
52 _reserved18: [u8; 0x24],
53 #[doc = "0x1cc - Publish configuration for event RXSTARTED"]
54 pub publish_rxstarted: PUBLISH_RXSTARTED,
55 #[doc = "0x1d0 - Publish configuration for event TXSTARTED"]
56 pub publish_txstarted: PUBLISH_TXSTARTED,
57 _reserved20: [u8; 0x10],
58 #[doc = "0x1e4 - Publish configuration for event WRITE"]
59 pub publish_write: PUBLISH_WRITE,
60 #[doc = "0x1e8 - Publish configuration for event READ"]
61 pub publish_read: PUBLISH_READ,
62 _reserved22: [u8; 0x14],
63 #[doc = "0x200 - Shortcuts between local events and tasks"]
64 pub shorts: SHORTS,
65 _reserved23: [u8; 0xfc],
66 #[doc = "0x300 - Enable or disable interrupt"]
67 pub inten: INTEN,
68 #[doc = "0x304 - Enable interrupt"]
69 pub intenset: INTENSET,
70 #[doc = "0x308 - Disable interrupt"]
71 pub intenclr: INTENCLR,
72 _reserved26: [u8; 0x01c4],
73 #[doc = "0x4d0 - Error source"]
74 pub errorsrc: ERRORSRC,
75 #[doc = "0x4d4 - Status register indicating which address had a match"]
76 pub match_: MATCH,
77 _reserved28: [u8; 0x28],
78 #[doc = "0x500 - Enable TWIS"]
79 pub enable: ENABLE,
80 _reserved29: [u8; 0x04],
81 #[doc = "0x508..0x510 - Unspecified"]
82 pub psel: PSEL,
83 _reserved30: [u8; 0x24],
84 #[doc = "0x534..0x544 - RXD EasyDMA channel"]
85 pub rxd: RXD,
86 #[doc = "0x544..0x554 - TXD EasyDMA channel"]
87 pub txd: TXD,
88 _reserved32: [u8; 0x34],
89 #[doc = "0x588..0x590 - Description collection: TWI slave address n"]
90 pub address: [ADDRESS; 2],
91 _reserved33: [u8; 0x04],
92 #[doc = "0x594 - Configuration register for the address match mechanism"]
93 pub config: CONFIG,
94 _reserved34: [u8; 0x28],
95 #[doc = "0x5c0 - Over-read character. Character sent out in case of an over-read of the transmit buffer."]
96 pub orc: ORC,
97}
98#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
99pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
100#[doc = "Stop TWI transaction"]
101pub mod tasks_stop;
102#[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg<TASKS_SUSPEND_SPEC>`"]
103pub type TASKS_SUSPEND = crate::Reg<tasks_suspend::TASKS_SUSPEND_SPEC>;
104#[doc = "Suspend TWI transaction"]
105pub mod tasks_suspend;
106#[doc = "TASKS_RESUME (w) register accessor: an alias for `Reg<TASKS_RESUME_SPEC>`"]
107pub type TASKS_RESUME = crate::Reg<tasks_resume::TASKS_RESUME_SPEC>;
108#[doc = "Resume TWI transaction"]
109pub mod tasks_resume;
110#[doc = "TASKS_PREPARERX (w) register accessor: an alias for `Reg<TASKS_PREPARERX_SPEC>`"]
111pub type TASKS_PREPARERX = crate::Reg<tasks_preparerx::TASKS_PREPARERX_SPEC>;
112#[doc = "Prepare the TWI slave to respond to a write command"]
113pub mod tasks_preparerx;
114#[doc = "TASKS_PREPARETX (w) register accessor: an alias for `Reg<TASKS_PREPARETX_SPEC>`"]
115pub type TASKS_PREPARETX = crate::Reg<tasks_preparetx::TASKS_PREPARETX_SPEC>;
116#[doc = "Prepare the TWI slave to respond to a read command"]
117pub mod tasks_preparetx;
118#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
119pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
120#[doc = "Subscribe configuration for task STOP"]
121pub mod subscribe_stop;
122#[doc = "SUBSCRIBE_SUSPEND (rw) register accessor: an alias for `Reg<SUBSCRIBE_SUSPEND_SPEC>`"]
123pub type SUBSCRIBE_SUSPEND = crate::Reg<subscribe_suspend::SUBSCRIBE_SUSPEND_SPEC>;
124#[doc = "Subscribe configuration for task SUSPEND"]
125pub mod subscribe_suspend;
126#[doc = "SUBSCRIBE_RESUME (rw) register accessor: an alias for `Reg<SUBSCRIBE_RESUME_SPEC>`"]
127pub type SUBSCRIBE_RESUME = crate::Reg<subscribe_resume::SUBSCRIBE_RESUME_SPEC>;
128#[doc = "Subscribe configuration for task RESUME"]
129pub mod subscribe_resume;
130#[doc = "SUBSCRIBE_PREPARERX (rw) register accessor: an alias for `Reg<SUBSCRIBE_PREPARERX_SPEC>`"]
131pub type SUBSCRIBE_PREPARERX = crate::Reg<subscribe_preparerx::SUBSCRIBE_PREPARERX_SPEC>;
132#[doc = "Subscribe configuration for task PREPARERX"]
133pub mod subscribe_preparerx;
134#[doc = "SUBSCRIBE_PREPARETX (rw) register accessor: an alias for `Reg<SUBSCRIBE_PREPARETX_SPEC>`"]
135pub type SUBSCRIBE_PREPARETX = crate::Reg<subscribe_preparetx::SUBSCRIBE_PREPARETX_SPEC>;
136#[doc = "Subscribe configuration for task PREPARETX"]
137pub mod subscribe_preparetx;
138#[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg<EVENTS_STOPPED_SPEC>`"]
139pub type EVENTS_STOPPED = crate::Reg<events_stopped::EVENTS_STOPPED_SPEC>;
140#[doc = "TWI stopped"]
141pub mod events_stopped;
142#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
143pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
144#[doc = "TWI error"]
145pub mod events_error;
146#[doc = "EVENTS_RXSTARTED (rw) register accessor: an alias for `Reg<EVENTS_RXSTARTED_SPEC>`"]
147pub type EVENTS_RXSTARTED = crate::Reg<events_rxstarted::EVENTS_RXSTARTED_SPEC>;
148#[doc = "Receive sequence started"]
149pub mod events_rxstarted;
150#[doc = "EVENTS_TXSTARTED (rw) register accessor: an alias for `Reg<EVENTS_TXSTARTED_SPEC>`"]
151pub type EVENTS_TXSTARTED = crate::Reg<events_txstarted::EVENTS_TXSTARTED_SPEC>;
152#[doc = "Transmit sequence started"]
153pub mod events_txstarted;
154#[doc = "EVENTS_WRITE (rw) register accessor: an alias for `Reg<EVENTS_WRITE_SPEC>`"]
155pub type EVENTS_WRITE = crate::Reg<events_write::EVENTS_WRITE_SPEC>;
156#[doc = "Write command received"]
157pub mod events_write;
158#[doc = "EVENTS_READ (rw) register accessor: an alias for `Reg<EVENTS_READ_SPEC>`"]
159pub type EVENTS_READ = crate::Reg<events_read::EVENTS_READ_SPEC>;
160#[doc = "Read command received"]
161pub mod events_read;
162#[doc = "PUBLISH_STOPPED (rw) register accessor: an alias for `Reg<PUBLISH_STOPPED_SPEC>`"]
163pub type PUBLISH_STOPPED = crate::Reg<publish_stopped::PUBLISH_STOPPED_SPEC>;
164#[doc = "Publish configuration for event STOPPED"]
165pub mod publish_stopped;
166#[doc = "PUBLISH_ERROR (rw) register accessor: an alias for `Reg<PUBLISH_ERROR_SPEC>`"]
167pub type PUBLISH_ERROR = crate::Reg<publish_error::PUBLISH_ERROR_SPEC>;
168#[doc = "Publish configuration for event ERROR"]
169pub mod publish_error;
170#[doc = "PUBLISH_RXSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_RXSTARTED_SPEC>`"]
171pub type PUBLISH_RXSTARTED = crate::Reg<publish_rxstarted::PUBLISH_RXSTARTED_SPEC>;
172#[doc = "Publish configuration for event RXSTARTED"]
173pub mod publish_rxstarted;
174#[doc = "PUBLISH_TXSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_TXSTARTED_SPEC>`"]
175pub type PUBLISH_TXSTARTED = crate::Reg<publish_txstarted::PUBLISH_TXSTARTED_SPEC>;
176#[doc = "Publish configuration for event TXSTARTED"]
177pub mod publish_txstarted;
178#[doc = "PUBLISH_WRITE (rw) register accessor: an alias for `Reg<PUBLISH_WRITE_SPEC>`"]
179pub type PUBLISH_WRITE = crate::Reg<publish_write::PUBLISH_WRITE_SPEC>;
180#[doc = "Publish configuration for event WRITE"]
181pub mod publish_write;
182#[doc = "PUBLISH_READ (rw) register accessor: an alias for `Reg<PUBLISH_READ_SPEC>`"]
183pub type PUBLISH_READ = crate::Reg<publish_read::PUBLISH_READ_SPEC>;
184#[doc = "Publish configuration for event READ"]
185pub mod publish_read;
186#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
187pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
188#[doc = "Shortcuts between local events and tasks"]
189pub mod shorts;
190#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
191pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
192#[doc = "Enable or disable interrupt"]
193pub mod inten;
194#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
195pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
196#[doc = "Enable interrupt"]
197pub mod intenset;
198#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
199pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
200#[doc = "Disable interrupt"]
201pub mod intenclr;
202#[doc = "ERRORSRC (rw) register accessor: an alias for `Reg<ERRORSRC_SPEC>`"]
203pub type ERRORSRC = crate::Reg<errorsrc::ERRORSRC_SPEC>;
204#[doc = "Error source"]
205pub mod errorsrc;
206#[doc = "MATCH (r) register accessor: an alias for `Reg<MATCH_SPEC>`"]
207pub type MATCH = crate::Reg<match_::MATCH_SPEC>;
208#[doc = "Status register indicating which address had a match"]
209pub mod match_;
210#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
211pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
212#[doc = "Enable TWIS"]
213pub mod enable;
214#[doc = "Unspecified"]
215pub use psel::PSEL;
216#[doc = r"Cluster"]
217#[doc = "Unspecified"]
218pub mod psel;
219#[doc = "RXD EasyDMA channel"]
220pub use rxd::RXD;
221#[doc = r"Cluster"]
222#[doc = "RXD EasyDMA channel"]
223pub mod rxd;
224#[doc = "TXD EasyDMA channel"]
225pub use txd::TXD;
226#[doc = r"Cluster"]
227#[doc = "TXD EasyDMA channel"]
228pub mod txd;
229#[doc = "ADDRESS (rw) register accessor: an alias for `Reg<ADDRESS_SPEC>`"]
230pub type ADDRESS = crate::Reg<address::ADDRESS_SPEC>;
231#[doc = "Description collection: TWI slave address n"]
232pub mod address;
233#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
234pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
235#[doc = "Configuration register for the address match mechanism"]
236pub mod config;
237#[doc = "ORC (rw) register accessor: an alias for `Reg<ORC_SPEC>`"]
238pub type ORC = crate::Reg<orc::ORC_SPEC>;
239#[doc = "Over-read character. Character sent out in case of an over-read of the transmit buffer."]
240pub mod orc;