1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start 2-Wire master receive sequence."]
5 pub tasks_startrx: TASKS_STARTRX,
6 _reserved1: [u8; 0x04],
7 #[doc = "0x08 - Start 2-Wire master transmit sequence."]
8 pub tasks_starttx: TASKS_STARTTX,
9 _reserved2: [u8; 0x08],
10 #[doc = "0x14 - Stop 2-Wire transaction."]
11 pub tasks_stop: TASKS_STOP,
12 _reserved3: [u8; 0x04],
13 #[doc = "0x1c - Suspend 2-Wire transaction."]
14 pub tasks_suspend: TASKS_SUSPEND,
15 #[doc = "0x20 - Resume 2-Wire transaction."]
16 pub tasks_resume: TASKS_RESUME,
17 _reserved5: [u8; 0xe0],
18 #[doc = "0x104 - Two-wire stopped."]
19 pub events_stopped: EVENTS_STOPPED,
20 #[doc = "0x108 - Two-wire ready to deliver new RXD byte received."]
21 pub events_rxdready: EVENTS_RXDREADY,
22 _reserved7: [u8; 0x10],
23 #[doc = "0x11c - Two-wire finished sending last TXD byte."]
24 pub events_txdsent: EVENTS_TXDSENT,
25 _reserved8: [u8; 0x04],
26 #[doc = "0x124 - Two-wire error detected."]
27 pub events_error: EVENTS_ERROR,
28 _reserved9: [u8; 0x10],
29 #[doc = "0x138 - Two-wire byte boundary."]
30 pub events_bb: EVENTS_BB,
31 _reserved10: [u8; 0x0c],
32 #[doc = "0x148 - Two-wire suspended."]
33 pub events_suspended: EVENTS_SUSPENDED,
34 _reserved11: [u8; 0xb4],
35 #[doc = "0x200 - Shortcuts for TWI."]
36 pub shorts: SHORTS,
37 _reserved12: [u8; 0x0100],
38 #[doc = "0x304 - Interrupt enable set register."]
39 pub intenset: INTENSET,
40 #[doc = "0x308 - Interrupt enable clear register."]
41 pub intenclr: INTENCLR,
42 _reserved14: [u8; 0x01b8],
43 #[doc = "0x4c4 - Two-wire error source. Write error field to 1 to clear error."]
44 pub errorsrc: ERRORSRC,
45 _reserved15: [u8; 0x38],
46 #[doc = "0x500 - Enable two-wire master."]
47 pub enable: ENABLE,
48 _reserved16: [u8; 0x04],
49 #[doc = "0x508 - Pin select for SCL."]
50 pub pselscl: PSELSCL,
51 #[doc = "0x50c - Pin select for SDA."]
52 pub pselsda: PSELSDA,
53 _reserved18: [u8; 0x08],
54 #[doc = "0x518 - RX data register."]
55 pub rxd: RXD,
56 #[doc = "0x51c - TX data register."]
57 pub txd: TXD,
58 _reserved20: [u8; 0x04],
59 #[doc = "0x524 - Two-wire frequency."]
60 pub frequency: FREQUENCY,
61 _reserved21: [u8; 0x60],
62 #[doc = "0x588 - Address used in the two-wire transfer."]
63 pub address: ADDRESS,
64 _reserved22: [u8; 0x0a70],
65 #[doc = "0xffc - Peripheral power control."]
66 pub power: POWER,
67}
68#[doc = "TASKS_STARTRX (w) register accessor: an alias for `Reg<TASKS_STARTRX_SPEC>`"]
69pub type TASKS_STARTRX = crate::Reg<tasks_startrx::TASKS_STARTRX_SPEC>;
70#[doc = "Start 2-Wire master receive sequence."]
71pub mod tasks_startrx;
72#[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg<TASKS_STARTTX_SPEC>`"]
73pub type TASKS_STARTTX = crate::Reg<tasks_starttx::TASKS_STARTTX_SPEC>;
74#[doc = "Start 2-Wire master transmit sequence."]
75pub mod tasks_starttx;
76#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
77pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
78#[doc = "Stop 2-Wire transaction."]
79pub mod tasks_stop;
80#[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg<TASKS_SUSPEND_SPEC>`"]
81pub type TASKS_SUSPEND = crate::Reg<tasks_suspend::TASKS_SUSPEND_SPEC>;
82#[doc = "Suspend 2-Wire transaction."]
83pub mod tasks_suspend;
84#[doc = "TASKS_RESUME (w) register accessor: an alias for `Reg<TASKS_RESUME_SPEC>`"]
85pub type TASKS_RESUME = crate::Reg<tasks_resume::TASKS_RESUME_SPEC>;
86#[doc = "Resume 2-Wire transaction."]
87pub mod tasks_resume;
88#[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg<EVENTS_STOPPED_SPEC>`"]
89pub type EVENTS_STOPPED = crate::Reg<events_stopped::EVENTS_STOPPED_SPEC>;
90#[doc = "Two-wire stopped."]
91pub mod events_stopped;
92#[doc = "EVENTS_RXDREADY (rw) register accessor: an alias for `Reg<EVENTS_RXDREADY_SPEC>`"]
93pub type EVENTS_RXDREADY = crate::Reg<events_rxdready::EVENTS_RXDREADY_SPEC>;
94#[doc = "Two-wire ready to deliver new RXD byte received."]
95pub mod events_rxdready;
96#[doc = "EVENTS_TXDSENT (rw) register accessor: an alias for `Reg<EVENTS_TXDSENT_SPEC>`"]
97pub type EVENTS_TXDSENT = crate::Reg<events_txdsent::EVENTS_TXDSENT_SPEC>;
98#[doc = "Two-wire finished sending last TXD byte."]
99pub mod events_txdsent;
100#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
101pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
102#[doc = "Two-wire error detected."]
103pub mod events_error;
104#[doc = "EVENTS_BB (rw) register accessor: an alias for `Reg<EVENTS_BB_SPEC>`"]
105pub type EVENTS_BB = crate::Reg<events_bb::EVENTS_BB_SPEC>;
106#[doc = "Two-wire byte boundary."]
107pub mod events_bb;
108#[doc = "EVENTS_SUSPENDED (rw) register accessor: an alias for `Reg<EVENTS_SUSPENDED_SPEC>`"]
109pub type EVENTS_SUSPENDED = crate::Reg<events_suspended::EVENTS_SUSPENDED_SPEC>;
110#[doc = "Two-wire suspended."]
111pub mod events_suspended;
112#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
113pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
114#[doc = "Shortcuts for TWI."]
115pub mod shorts;
116#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
117pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
118#[doc = "Interrupt enable set register."]
119pub mod intenset;
120#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
121pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
122#[doc = "Interrupt enable clear register."]
123pub mod intenclr;
124#[doc = "ERRORSRC (rw) register accessor: an alias for `Reg<ERRORSRC_SPEC>`"]
125pub type ERRORSRC = crate::Reg<errorsrc::ERRORSRC_SPEC>;
126#[doc = "Two-wire error source. Write error field to 1 to clear error."]
127pub mod errorsrc;
128#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
129pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
130#[doc = "Enable two-wire master."]
131pub mod enable;
132#[doc = "PSELSCL (rw) register accessor: an alias for `Reg<PSELSCL_SPEC>`"]
133pub type PSELSCL = crate::Reg<pselscl::PSELSCL_SPEC>;
134#[doc = "Pin select for SCL."]
135pub mod pselscl;
136#[doc = "PSELSDA (rw) register accessor: an alias for `Reg<PSELSDA_SPEC>`"]
137pub type PSELSDA = crate::Reg<pselsda::PSELSDA_SPEC>;
138#[doc = "Pin select for SDA."]
139pub mod pselsda;
140#[doc = "RXD (r) register accessor: an alias for `Reg<RXD_SPEC>`"]
141pub type RXD = crate::Reg<rxd::RXD_SPEC>;
142#[doc = "RX data register."]
143pub mod rxd;
144#[doc = "TXD (rw) register accessor: an alias for `Reg<TXD_SPEC>`"]
145pub type TXD = crate::Reg<txd::TXD_SPEC>;
146#[doc = "TX data register."]
147pub mod txd;
148#[doc = "FREQUENCY (rw) register accessor: an alias for `Reg<FREQUENCY_SPEC>`"]
149pub type FREQUENCY = crate::Reg<frequency::FREQUENCY_SPEC>;
150#[doc = "Two-wire frequency."]
151pub mod frequency;
152#[doc = "ADDRESS (rw) register accessor: an alias for `Reg<ADDRESS_SPEC>`"]
153pub type ADDRESS = crate::Reg<address::ADDRESS_SPEC>;
154#[doc = "Address used in the two-wire transfer."]
155pub mod address;
156#[doc = "POWER (rw) register accessor: an alias for `Reg<POWER_SPEC>`"]
157pub type POWER = crate::Reg<power::POWER_SPEC>;
158#[doc = "Peripheral power control."]
159pub mod power;