1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 owa_gen_ctl: OWA_GEN_CTL,
5 owa_tx_cfig: OWA_TX_CFIG,
6 owa_rx_cfig: OWA_RX_CFIG,
7 owa_ista: OWA_ISTA,
8 owa_rxfifo: OWA_RXFIFO,
9 owa_fctl: OWA_FCTL,
10 owa_fsta: OWA_FSTA,
11 owa_int: OWA_INT,
12 owa_tx_fifo: OWA_TX_FIFO,
13 owa_tx_cnt: OWA_TX_CNT,
14 owa_rx_cnt: OWA_RX_CNT,
15 owa_tx_chsta0: OWA_TX_CHSTA0,
16 owa_tx_chsta1: OWA_TX_CHSTA1,
17 owa_rxchsta0: OWA_RXCHSTA0,
18 owa_rxchsta1: OWA_RXCHSTA1,
19 _reserved15: [u8; 0x04],
20 owa_exp_ctl: OWA_EXP_CTL,
21 owa_exp_ista: OWA_EXP_ISTA,
22 owa_exp_info_0: OWA_EXP_INFO_0,
23 owa_exp_info_1: OWA_EXP_INFO_1,
24 owa_exp_dbg_0: OWA_EXP_DBG_0,
25 owa_exp_dbg_1: OWA_EXP_DBG_1,
26}
27impl RegisterBlock {
28 #[doc = "0x00 - OWA General Control Register"]
29 #[inline(always)]
30 pub const fn owa_gen_ctl(&self) -> &OWA_GEN_CTL {
31 &self.owa_gen_ctl
32 }
33 #[doc = "0x04 - OWA TX Configuration Register"]
34 #[inline(always)]
35 pub const fn owa_tx_cfig(&self) -> &OWA_TX_CFIG {
36 &self.owa_tx_cfig
37 }
38 #[doc = "0x08 - OWA RX Configuration Register"]
39 #[inline(always)]
40 pub const fn owa_rx_cfig(&self) -> &OWA_RX_CFIG {
41 &self.owa_rx_cfig
42 }
43 #[doc = "0x0c - OWA Interrupt Status Register"]
44 #[inline(always)]
45 pub const fn owa_ista(&self) -> &OWA_ISTA {
46 &self.owa_ista
47 }
48 #[doc = "0x10 - OWA RXFIFO Register"]
49 #[inline(always)]
50 pub const fn owa_rxfifo(&self) -> &OWA_RXFIFO {
51 &self.owa_rxfifo
52 }
53 #[doc = "0x14 - OWA FIFO Control Register"]
54 #[inline(always)]
55 pub const fn owa_fctl(&self) -> &OWA_FCTL {
56 &self.owa_fctl
57 }
58 #[doc = "0x18 - OWA FIFO Status Register"]
59 #[inline(always)]
60 pub const fn owa_fsta(&self) -> &OWA_FSTA {
61 &self.owa_fsta
62 }
63 #[doc = "0x1c - OWA Interrupt Control Register"]
64 #[inline(always)]
65 pub const fn owa_int(&self) -> &OWA_INT {
66 &self.owa_int
67 }
68 #[doc = "0x20 - OWA TX FIFO Register"]
69 #[inline(always)]
70 pub const fn owa_tx_fifo(&self) -> &OWA_TX_FIFO {
71 &self.owa_tx_fifo
72 }
73 #[doc = "0x24 - OWA TX Counter Register"]
74 #[inline(always)]
75 pub const fn owa_tx_cnt(&self) -> &OWA_TX_CNT {
76 &self.owa_tx_cnt
77 }
78 #[doc = "0x28 - OWA RX Counter Register"]
79 #[inline(always)]
80 pub const fn owa_rx_cnt(&self) -> &OWA_RX_CNT {
81 &self.owa_rx_cnt
82 }
83 #[doc = "0x2c - OWA TX Channel Status Register0"]
84 #[inline(always)]
85 pub const fn owa_tx_chsta0(&self) -> &OWA_TX_CHSTA0 {
86 &self.owa_tx_chsta0
87 }
88 #[doc = "0x30 - OWA TX Channel Status Register1"]
89 #[inline(always)]
90 pub const fn owa_tx_chsta1(&self) -> &OWA_TX_CHSTA1 {
91 &self.owa_tx_chsta1
92 }
93 #[doc = "0x34 - OWA RX Channel Status Register0"]
94 #[inline(always)]
95 pub const fn owa_rxchsta0(&self) -> &OWA_RXCHSTA0 {
96 &self.owa_rxchsta0
97 }
98 #[doc = "0x38 - OWA RX Channel Status Register1"]
99 #[inline(always)]
100 pub const fn owa_rxchsta1(&self) -> &OWA_RXCHSTA1 {
101 &self.owa_rxchsta1
102 }
103 #[doc = "0x40 - OWA Expand Control Register"]
104 #[inline(always)]
105 pub const fn owa_exp_ctl(&self) -> &OWA_EXP_CTL {
106 &self.owa_exp_ctl
107 }
108 #[doc = "0x44 - OWA Expand Interrupt Status Register"]
109 #[inline(always)]
110 pub const fn owa_exp_ista(&self) -> &OWA_EXP_ISTA {
111 &self.owa_exp_ista
112 }
113 #[doc = "0x48 - OWA Expand Infomation Register0"]
114 #[inline(always)]
115 pub const fn owa_exp_info_0(&self) -> &OWA_EXP_INFO_0 {
116 &self.owa_exp_info_0
117 }
118 #[doc = "0x4c - OWA Expand Infomation Register1"]
119 #[inline(always)]
120 pub const fn owa_exp_info_1(&self) -> &OWA_EXP_INFO_1 {
121 &self.owa_exp_info_1
122 }
123 #[doc = "0x50 - OWA Expand Debug Register0"]
124 #[inline(always)]
125 pub const fn owa_exp_dbg_0(&self) -> &OWA_EXP_DBG_0 {
126 &self.owa_exp_dbg_0
127 }
128 #[doc = "0x54 - OWA Expand Debug Register1"]
129 #[inline(always)]
130 pub const fn owa_exp_dbg_1(&self) -> &OWA_EXP_DBG_1 {
131 &self.owa_exp_dbg_1
132 }
133}
134#[doc = "owa_gen_ctl (rw) register accessor: OWA General Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_gen_ctl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_gen_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_gen_ctl`] module"]
135pub type OWA_GEN_CTL = crate::Reg<owa_gen_ctl::OWA_GEN_CTL_SPEC>;
136#[doc = "OWA General Control Register"]
137pub mod owa_gen_ctl;
138#[doc = "owa_tx_cfig (rw) register accessor: OWA TX Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_tx_cfig::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_tx_cfig::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_tx_cfig`] module"]
139pub type OWA_TX_CFIG = crate::Reg<owa_tx_cfig::OWA_TX_CFIG_SPEC>;
140#[doc = "OWA TX Configuration Register"]
141pub mod owa_tx_cfig;
142#[doc = "owa_rx_cfig (rw) register accessor: OWA RX Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_rx_cfig::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_rx_cfig::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_rx_cfig`] module"]
143pub type OWA_RX_CFIG = crate::Reg<owa_rx_cfig::OWA_RX_CFIG_SPEC>;
144#[doc = "OWA RX Configuration Register"]
145pub mod owa_rx_cfig;
146#[doc = "owa_ista (rw) register accessor: OWA Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_ista::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_ista::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_ista`] module"]
147pub type OWA_ISTA = crate::Reg<owa_ista::OWA_ISTA_SPEC>;
148#[doc = "OWA Interrupt Status Register"]
149pub mod owa_ista;
150#[doc = "owa_rxfifo (rw) register accessor: OWA RXFIFO Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_rxfifo::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_rxfifo::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_rxfifo`] module"]
151pub type OWA_RXFIFO = crate::Reg<owa_rxfifo::OWA_RXFIFO_SPEC>;
152#[doc = "OWA RXFIFO Register"]
153pub mod owa_rxfifo;
154#[doc = "owa_fctl (rw) register accessor: OWA FIFO Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_fctl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_fctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_fctl`] module"]
155pub type OWA_FCTL = crate::Reg<owa_fctl::OWA_FCTL_SPEC>;
156#[doc = "OWA FIFO Control Register"]
157pub mod owa_fctl;
158#[doc = "owa_fsta (rw) register accessor: OWA FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_fsta::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_fsta::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_fsta`] module"]
159pub type OWA_FSTA = crate::Reg<owa_fsta::OWA_FSTA_SPEC>;
160#[doc = "OWA FIFO Status Register"]
161pub mod owa_fsta;
162#[doc = "owa_int (rw) register accessor: OWA Interrupt Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_int::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_int::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_int`] module"]
163pub type OWA_INT = crate::Reg<owa_int::OWA_INT_SPEC>;
164#[doc = "OWA Interrupt Control Register"]
165pub mod owa_int;
166#[doc = "owa_tx_fifo (rw) register accessor: OWA TX FIFO Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_tx_fifo::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_tx_fifo::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_tx_fifo`] module"]
167pub type OWA_TX_FIFO = crate::Reg<owa_tx_fifo::OWA_TX_FIFO_SPEC>;
168#[doc = "OWA TX FIFO Register"]
169pub mod owa_tx_fifo;
170#[doc = "owa_tx_cnt (rw) register accessor: OWA TX Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_tx_cnt::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_tx_cnt::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_tx_cnt`] module"]
171pub type OWA_TX_CNT = crate::Reg<owa_tx_cnt::OWA_TX_CNT_SPEC>;
172#[doc = "OWA TX Counter Register"]
173pub mod owa_tx_cnt;
174#[doc = "owa_rx_cnt (rw) register accessor: OWA RX Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_rx_cnt::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_rx_cnt::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_rx_cnt`] module"]
175pub type OWA_RX_CNT = crate::Reg<owa_rx_cnt::OWA_RX_CNT_SPEC>;
176#[doc = "OWA RX Counter Register"]
177pub mod owa_rx_cnt;
178#[doc = "owa_tx_chsta0 (rw) register accessor: OWA TX Channel Status Register0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_tx_chsta0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_tx_chsta0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_tx_chsta0`] module"]
179pub type OWA_TX_CHSTA0 = crate::Reg<owa_tx_chsta0::OWA_TX_CHSTA0_SPEC>;
180#[doc = "OWA TX Channel Status Register0"]
181pub mod owa_tx_chsta0;
182#[doc = "owa_tx_chsta1 (rw) register accessor: OWA TX Channel Status Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_tx_chsta1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_tx_chsta1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_tx_chsta1`] module"]
183pub type OWA_TX_CHSTA1 = crate::Reg<owa_tx_chsta1::OWA_TX_CHSTA1_SPEC>;
184#[doc = "OWA TX Channel Status Register1"]
185pub mod owa_tx_chsta1;
186#[doc = "owa_rxchsta0 (rw) register accessor: OWA RX Channel Status Register0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_rxchsta0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_rxchsta0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_rxchsta0`] module"]
187pub type OWA_RXCHSTA0 = crate::Reg<owa_rxchsta0::OWA_RXCHSTA0_SPEC>;
188#[doc = "OWA RX Channel Status Register0"]
189pub mod owa_rxchsta0;
190#[doc = "owa_rxchsta1 (rw) register accessor: OWA RX Channel Status Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_rxchsta1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_rxchsta1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_rxchsta1`] module"]
191pub type OWA_RXCHSTA1 = crate::Reg<owa_rxchsta1::OWA_RXCHSTA1_SPEC>;
192#[doc = "OWA RX Channel Status Register1"]
193pub mod owa_rxchsta1;
194#[doc = "owa_exp_ctl (rw) register accessor: OWA Expand Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_ctl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_ctl`] module"]
195pub type OWA_EXP_CTL = crate::Reg<owa_exp_ctl::OWA_EXP_CTL_SPEC>;
196#[doc = "OWA Expand Control Register"]
197pub mod owa_exp_ctl;
198#[doc = "owa_exp_ista (rw) register accessor: OWA Expand Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_ista::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_ista::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_ista`] module"]
199pub type OWA_EXP_ISTA = crate::Reg<owa_exp_ista::OWA_EXP_ISTA_SPEC>;
200#[doc = "OWA Expand Interrupt Status Register"]
201pub mod owa_exp_ista;
202#[doc = "owa_exp_info_0 (rw) register accessor: OWA Expand Infomation Register0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_info_0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_info_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_info_0`] module"]
203pub type OWA_EXP_INFO_0 = crate::Reg<owa_exp_info_0::OWA_EXP_INFO_0_SPEC>;
204#[doc = "OWA Expand Infomation Register0"]
205pub mod owa_exp_info_0;
206#[doc = "owa_exp_info_1 (rw) register accessor: OWA Expand Infomation Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_info_1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_info_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_info_1`] module"]
207pub type OWA_EXP_INFO_1 = crate::Reg<owa_exp_info_1::OWA_EXP_INFO_1_SPEC>;
208#[doc = "OWA Expand Infomation Register1"]
209pub mod owa_exp_info_1;
210#[doc = "owa_exp_dbg_0 (rw) register accessor: OWA Expand Debug Register0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_dbg_0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_dbg_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_dbg_0`] module"]
211pub type OWA_EXP_DBG_0 = crate::Reg<owa_exp_dbg_0::OWA_EXP_DBG_0_SPEC>;
212#[doc = "OWA Expand Debug Register0"]
213pub mod owa_exp_dbg_0;
214#[doc = "owa_exp_dbg_1 (rw) register accessor: OWA Expand Debug Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`owa_exp_dbg_1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`owa_exp_dbg_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@owa_exp_dbg_1`] module"]
215pub type OWA_EXP_DBG_1 = crate::Reg<owa_exp_dbg_1::OWA_EXP_DBG_1_SPEC>;
216#[doc = "OWA Expand Debug Register1"]
217pub mod owa_exp_dbg_1;