1#[doc = r" Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start TWI receive sequence"]
5 pub tasks_startrx: TASKS_STARTRX,
6 _reserved0: [u8; 4usize],
7 #[doc = "0x08 - Start TWI transmit sequence"]
8 pub tasks_starttx: TASKS_STARTTX,
9 _reserved1: [u8; 8usize],
10 #[doc = "0x14 - Stop TWI transaction"]
11 pub tasks_stop: TASKS_STOP,
12 _reserved2: [u8; 4usize],
13 #[doc = "0x1c - Suspend TWI transaction"]
14 pub tasks_suspend: TASKS_SUSPEND,
15 #[doc = "0x20 - Resume TWI transaction"]
16 pub tasks_resume: TASKS_RESUME,
17 _reserved3: [u8; 224usize],
18 #[doc = "0x104 - TWI stopped"]
19 pub events_stopped: EVENTS_STOPPED,
20 #[doc = "0x108 - TWI RXD byte received"]
21 pub events_rxdready: EVENTS_RXDREADY,
22 _reserved4: [u8; 16usize],
23 #[doc = "0x11c - TWI TXD byte sent"]
24 pub events_txdsent: EVENTS_TXDSENT,
25 _reserved5: [u8; 4usize],
26 #[doc = "0x124 - TWI error"]
27 pub events_error: EVENTS_ERROR,
28 _reserved6: [u8; 16usize],
29 #[doc = "0x138 - TWI byte boundary, generated before each byte that is sent or received"]
30 pub events_bb: EVENTS_BB,
31 _reserved7: [u8; 12usize],
32 #[doc = "0x148 - TWI entered the suspended state"]
33 pub events_suspended: EVENTS_SUSPENDED,
34 _reserved8: [u8; 180usize],
35 #[doc = "0x200 - Shortcut register"]
36 pub shorts: SHORTS,
37 _reserved9: [u8; 256usize],
38 #[doc = "0x304 - Enable interrupt"]
39 pub intenset: INTENSET,
40 #[doc = "0x308 - Disable interrupt"]
41 pub intenclr: INTENCLR,
42 _reserved10: [u8; 440usize],
43 #[doc = "0x4c4 - Error source"]
44 pub errorsrc: ERRORSRC,
45 _reserved11: [u8; 56usize],
46 #[doc = "0x500 - Enable TWI"]
47 pub enable: ENABLE,
48 _reserved12: [u8; 4usize],
49 #[doc = "0x508 - Pin select for SCL"]
50 pub pselscl: PSELSCL,
51 #[doc = "0x50c - Pin select for SDA"]
52 pub pselsda: PSELSDA,
53 _reserved13: [u8; 8usize],
54 #[doc = "0x518 - RXD register"]
55 pub rxd: RXD,
56 #[doc = "0x51c - TXD register"]
57 pub txd: TXD,
58 _reserved14: [u8; 4usize],
59 #[doc = "0x524 - TWI frequency"]
60 pub frequency: FREQUENCY,
61 _reserved15: [u8; 96usize],
62 #[doc = "0x588 - Address used in the TWI transfer"]
63 pub address: ADDRESS,
64}
65#[doc = "Start TWI receive sequence"]
66pub struct TASKS_STARTRX {
67 register: ::vcell::VolatileCell<u32>,
68}
69#[doc = "Start TWI receive sequence"]
70pub mod tasks_startrx;
71#[doc = "Start TWI transmit sequence"]
72pub struct TASKS_STARTTX {
73 register: ::vcell::VolatileCell<u32>,
74}
75#[doc = "Start TWI transmit sequence"]
76pub mod tasks_starttx;
77#[doc = "Stop TWI transaction"]
78pub struct TASKS_STOP {
79 register: ::vcell::VolatileCell<u32>,
80}
81#[doc = "Stop TWI transaction"]
82pub mod tasks_stop;
83#[doc = "Suspend TWI transaction"]
84pub struct TASKS_SUSPEND {
85 register: ::vcell::VolatileCell<u32>,
86}
87#[doc = "Suspend TWI transaction"]
88pub mod tasks_suspend;
89#[doc = "Resume TWI transaction"]
90pub struct TASKS_RESUME {
91 register: ::vcell::VolatileCell<u32>,
92}
93#[doc = "Resume TWI transaction"]
94pub mod tasks_resume;
95#[doc = "TWI stopped"]
96pub struct EVENTS_STOPPED {
97 register: ::vcell::VolatileCell<u32>,
98}
99#[doc = "TWI stopped"]
100pub mod events_stopped;
101#[doc = "TWI RXD byte received"]
102pub struct EVENTS_RXDREADY {
103 register: ::vcell::VolatileCell<u32>,
104}
105#[doc = "TWI RXD byte received"]
106pub mod events_rxdready;
107#[doc = "TWI TXD byte sent"]
108pub struct EVENTS_TXDSENT {
109 register: ::vcell::VolatileCell<u32>,
110}
111#[doc = "TWI TXD byte sent"]
112pub mod events_txdsent;
113#[doc = "TWI error"]
114pub struct EVENTS_ERROR {
115 register: ::vcell::VolatileCell<u32>,
116}
117#[doc = "TWI error"]
118pub mod events_error;
119#[doc = "TWI byte boundary, generated before each byte that is sent or received"]
120pub struct EVENTS_BB {
121 register: ::vcell::VolatileCell<u32>,
122}
123#[doc = "TWI byte boundary, generated before each byte that is sent or received"]
124pub mod events_bb;
125#[doc = "TWI entered the suspended state"]
126pub struct EVENTS_SUSPENDED {
127 register: ::vcell::VolatileCell<u32>,
128}
129#[doc = "TWI entered the suspended state"]
130pub mod events_suspended;
131#[doc = "Shortcut register"]
132pub struct SHORTS {
133 register: ::vcell::VolatileCell<u32>,
134}
135#[doc = "Shortcut register"]
136pub mod shorts;
137#[doc = "Enable interrupt"]
138pub struct INTENSET {
139 register: ::vcell::VolatileCell<u32>,
140}
141#[doc = "Enable interrupt"]
142pub mod intenset;
143#[doc = "Disable interrupt"]
144pub struct INTENCLR {
145 register: ::vcell::VolatileCell<u32>,
146}
147#[doc = "Disable interrupt"]
148pub mod intenclr;
149#[doc = "Error source"]
150pub struct ERRORSRC {
151 register: ::vcell::VolatileCell<u32>,
152}
153#[doc = "Error source"]
154pub mod errorsrc;
155#[doc = "Enable TWI"]
156pub struct ENABLE {
157 register: ::vcell::VolatileCell<u32>,
158}
159#[doc = "Enable TWI"]
160pub mod enable;
161#[doc = "Pin select for SCL"]
162pub struct PSELSCL {
163 register: ::vcell::VolatileCell<u32>,
164}
165#[doc = "Pin select for SCL"]
166pub mod pselscl;
167#[doc = "Pin select for SDA"]
168pub struct PSELSDA {
169 register: ::vcell::VolatileCell<u32>,
170}
171#[doc = "Pin select for SDA"]
172pub mod pselsda;
173#[doc = "RXD register"]
174pub struct RXD {
175 register: ::vcell::VolatileCell<u32>,
176}
177#[doc = "RXD register"]
178pub mod rxd;
179#[doc = "TXD register"]
180pub struct TXD {
181 register: ::vcell::VolatileCell<u32>,
182}
183#[doc = "TXD register"]
184pub mod txd;
185#[doc = "TWI frequency"]
186pub struct FREQUENCY {
187 register: ::vcell::VolatileCell<u32>,
188}
189#[doc = "TWI frequency"]
190pub mod frequency;
191#[doc = "Address used in the TWI transfer"]
192pub struct ADDRESS {
193 register: ::vcell::VolatileCell<u32>,
194}
195#[doc = "Address used in the TWI transfer"]
196pub mod address;