1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5 _reserved0: [u8; 0x0c],
6 int_raw: INT_RAW,
7 int_st: INT_ST,
8 int_ena: INT_ENA,
9 int_clr: INT_CLR,
10 _reserved4: [u8; 0x04],
11 rx_conf: RX_CONF,
12 tx_conf: TX_CONF,
13 rx_conf1: RX_CONF1,
14 tx_conf1: TX_CONF1,
15 rx_clkm_conf: RX_CLKM_CONF,
16 tx_clkm_conf: TX_CLKM_CONF,
17 rx_clkm_div_conf: RX_CLKM_DIV_CONF,
18 tx_clkm_div_conf: TX_CLKM_DIV_CONF,
19 tx_pcm2pdm_conf: TX_PCM2PDM_CONF,
20 tx_pcm2pdm_conf1: TX_PCM2PDM_CONF1,
21 _reserved14: [u8; 0x08],
22 rx_tdm_ctrl: RX_TDM_CTRL,
23 tx_tdm_ctrl: TX_TDM_CTRL,
24 rx_timing: RX_TIMING,
25 tx_timing: TX_TIMING,
26 lc_hung_conf: LC_HUNG_CONF,
27 rxeof_num: RXEOF_NUM,
28 conf_sigle_data: CONF_SIGLE_DATA,
29 state: STATE,
30 _reserved22: [u8; 0x10],
31 date: DATE,
32}
33impl RegisterBlock {
34 #[doc = "0x0c - I2S interrupt raw register, valid in level."]
35 #[inline(always)]
36 pub const fn int_raw(&self) -> &INT_RAW {
37 &self.int_raw
38 }
39 #[doc = "0x10 - I2S interrupt status register."]
40 #[inline(always)]
41 pub const fn int_st(&self) -> &INT_ST {
42 &self.int_st
43 }
44 #[doc = "0x14 - I2S interrupt enable register."]
45 #[inline(always)]
46 pub const fn int_ena(&self) -> &INT_ENA {
47 &self.int_ena
48 }
49 #[doc = "0x18 - I2S interrupt clear register."]
50 #[inline(always)]
51 pub const fn int_clr(&self) -> &INT_CLR {
52 &self.int_clr
53 }
54 #[doc = "0x20 - I2S RX configure register"]
55 #[inline(always)]
56 pub const fn rx_conf(&self) -> &RX_CONF {
57 &self.rx_conf
58 }
59 #[doc = "0x24 - I2S TX configure register"]
60 #[inline(always)]
61 pub const fn tx_conf(&self) -> &TX_CONF {
62 &self.tx_conf
63 }
64 #[doc = "0x28 - I2S RX configure register 1"]
65 #[inline(always)]
66 pub const fn rx_conf1(&self) -> &RX_CONF1 {
67 &self.rx_conf1
68 }
69 #[doc = "0x2c - I2S TX configure register 1"]
70 #[inline(always)]
71 pub const fn tx_conf1(&self) -> &TX_CONF1 {
72 &self.tx_conf1
73 }
74 #[doc = "0x30 - I2S RX clock configure register"]
75 #[inline(always)]
76 pub const fn rx_clkm_conf(&self) -> &RX_CLKM_CONF {
77 &self.rx_clkm_conf
78 }
79 #[doc = "0x34 - I2S TX clock configure register"]
80 #[inline(always)]
81 pub const fn tx_clkm_conf(&self) -> &TX_CLKM_CONF {
82 &self.tx_clkm_conf
83 }
84 #[doc = "0x38 - I2S RX module clock divider configure register"]
85 #[inline(always)]
86 pub const fn rx_clkm_div_conf(&self) -> &RX_CLKM_DIV_CONF {
87 &self.rx_clkm_div_conf
88 }
89 #[doc = "0x3c - I2S TX module clock divider configure register"]
90 #[inline(always)]
91 pub const fn tx_clkm_div_conf(&self) -> &TX_CLKM_DIV_CONF {
92 &self.tx_clkm_div_conf
93 }
94 #[doc = "0x40 - I2S TX PCM2PDM configuration register"]
95 #[inline(always)]
96 pub const fn tx_pcm2pdm_conf(&self) -> &TX_PCM2PDM_CONF {
97 &self.tx_pcm2pdm_conf
98 }
99 #[doc = "0x44 - I2S TX PCM2PDM configuration register"]
100 #[inline(always)]
101 pub const fn tx_pcm2pdm_conf1(&self) -> &TX_PCM2PDM_CONF1 {
102 &self.tx_pcm2pdm_conf1
103 }
104 #[doc = "0x50 - I2S TX TDM mode control register"]
105 #[inline(always)]
106 pub const fn rx_tdm_ctrl(&self) -> &RX_TDM_CTRL {
107 &self.rx_tdm_ctrl
108 }
109 #[doc = "0x54 - I2S TX TDM mode control register"]
110 #[inline(always)]
111 pub const fn tx_tdm_ctrl(&self) -> &TX_TDM_CTRL {
112 &self.tx_tdm_ctrl
113 }
114 #[doc = "0x58 - I2S RX timing control register"]
115 #[inline(always)]
116 pub const fn rx_timing(&self) -> &RX_TIMING {
117 &self.rx_timing
118 }
119 #[doc = "0x5c - I2S TX timing control register"]
120 #[inline(always)]
121 pub const fn tx_timing(&self) -> &TX_TIMING {
122 &self.tx_timing
123 }
124 #[doc = "0x60 - I2S HUNG configure register."]
125 #[inline(always)]
126 pub const fn lc_hung_conf(&self) -> &LC_HUNG_CONF {
127 &self.lc_hung_conf
128 }
129 #[doc = "0x64 - I2S RX data number control register."]
130 #[inline(always)]
131 pub const fn rxeof_num(&self) -> &RXEOF_NUM {
132 &self.rxeof_num
133 }
134 #[doc = "0x68 - I2S signal data register"]
135 #[inline(always)]
136 pub const fn conf_sigle_data(&self) -> &CONF_SIGLE_DATA {
137 &self.conf_sigle_data
138 }
139 #[doc = "0x6c - I2S TX status register"]
140 #[inline(always)]
141 pub const fn state(&self) -> &STATE {
142 &self.state
143 }
144 #[doc = "0x80 - Version control register"]
145 #[inline(always)]
146 pub const fn date(&self) -> &DATE {
147 &self.date
148 }
149}
150#[doc = "INT_RAW (r) register accessor: I2S interrupt raw register, valid in level.\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_raw`] module"]
151pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
152#[doc = "I2S interrupt raw register, valid in level."]
153pub mod int_raw;
154#[doc = "INT_ST (r) register accessor: I2S interrupt status register.\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_st`] module"]
155pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
156#[doc = "I2S interrupt status register."]
157pub mod int_st;
158#[doc = "INT_ENA (rw) register accessor: I2S interrupt enable register.\n\nYou can [`read`](crate::Reg::read) this register and get [`int_ena::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_ena::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_ena`] module"]
159pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
160#[doc = "I2S interrupt enable register."]
161pub mod int_ena;
162#[doc = "INT_CLR (w) register accessor: I2S interrupt clear register.\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_clr`] module"]
163pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
164#[doc = "I2S interrupt clear register."]
165pub mod int_clr;
166#[doc = "RX_CONF (rw) register accessor: I2S RX configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_conf`] module"]
167pub type RX_CONF = crate::Reg<rx_conf::RX_CONF_SPEC>;
168#[doc = "I2S RX configure register"]
169pub mod rx_conf;
170#[doc = "TX_CONF (rw) register accessor: I2S TX configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_conf`] module"]
171pub type TX_CONF = crate::Reg<tx_conf::TX_CONF_SPEC>;
172#[doc = "I2S TX configure register"]
173pub mod tx_conf;
174#[doc = "RX_CONF1 (rw) register accessor: I2S RX configure register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_conf1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_conf1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_conf1`] module"]
175pub type RX_CONF1 = crate::Reg<rx_conf1::RX_CONF1_SPEC>;
176#[doc = "I2S RX configure register 1"]
177pub mod rx_conf1;
178#[doc = "TX_CONF1 (rw) register accessor: I2S TX configure register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_conf1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_conf1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_conf1`] module"]
179pub type TX_CONF1 = crate::Reg<tx_conf1::TX_CONF1_SPEC>;
180#[doc = "I2S TX configure register 1"]
181pub mod tx_conf1;
182#[doc = "RX_CLKM_CONF (rw) register accessor: I2S RX clock configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_clkm_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_clkm_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_clkm_conf`] module"]
183pub type RX_CLKM_CONF = crate::Reg<rx_clkm_conf::RX_CLKM_CONF_SPEC>;
184#[doc = "I2S RX clock configure register"]
185pub mod rx_clkm_conf;
186#[doc = "TX_CLKM_CONF (rw) register accessor: I2S TX clock configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_clkm_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_clkm_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_clkm_conf`] module"]
187pub type TX_CLKM_CONF = crate::Reg<tx_clkm_conf::TX_CLKM_CONF_SPEC>;
188#[doc = "I2S TX clock configure register"]
189pub mod tx_clkm_conf;
190#[doc = "RX_CLKM_DIV_CONF (rw) register accessor: I2S RX module clock divider configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_clkm_div_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_clkm_div_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_clkm_div_conf`] module"]
191pub type RX_CLKM_DIV_CONF = crate::Reg<rx_clkm_div_conf::RX_CLKM_DIV_CONF_SPEC>;
192#[doc = "I2S RX module clock divider configure register"]
193pub mod rx_clkm_div_conf;
194#[doc = "TX_CLKM_DIV_CONF (rw) register accessor: I2S TX module clock divider configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_clkm_div_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_clkm_div_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_clkm_div_conf`] module"]
195pub type TX_CLKM_DIV_CONF = crate::Reg<tx_clkm_div_conf::TX_CLKM_DIV_CONF_SPEC>;
196#[doc = "I2S TX module clock divider configure register"]
197pub mod tx_clkm_div_conf;
198#[doc = "TX_PCM2PDM_CONF (rw) register accessor: I2S TX PCM2PDM configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_pcm2pdm_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_pcm2pdm_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_pcm2pdm_conf`] module"]
199pub type TX_PCM2PDM_CONF = crate::Reg<tx_pcm2pdm_conf::TX_PCM2PDM_CONF_SPEC>;
200#[doc = "I2S TX PCM2PDM configuration register"]
201pub mod tx_pcm2pdm_conf;
202#[doc = "TX_PCM2PDM_CONF1 (rw) register accessor: I2S TX PCM2PDM configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_pcm2pdm_conf1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_pcm2pdm_conf1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_pcm2pdm_conf1`] module"]
203pub type TX_PCM2PDM_CONF1 = crate::Reg<tx_pcm2pdm_conf1::TX_PCM2PDM_CONF1_SPEC>;
204#[doc = "I2S TX PCM2PDM configuration register"]
205pub mod tx_pcm2pdm_conf1;
206#[doc = "RX_TDM_CTRL (rw) register accessor: I2S TX TDM mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_tdm_ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_tdm_ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_tdm_ctrl`] module"]
207pub type RX_TDM_CTRL = crate::Reg<rx_tdm_ctrl::RX_TDM_CTRL_SPEC>;
208#[doc = "I2S TX TDM mode control register"]
209pub mod rx_tdm_ctrl;
210#[doc = "TX_TDM_CTRL (rw) register accessor: I2S TX TDM mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_tdm_ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_tdm_ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_tdm_ctrl`] module"]
211pub type TX_TDM_CTRL = crate::Reg<tx_tdm_ctrl::TX_TDM_CTRL_SPEC>;
212#[doc = "I2S TX TDM mode control register"]
213pub mod tx_tdm_ctrl;
214#[doc = "RX_TIMING (rw) register accessor: I2S RX timing control register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_timing::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_timing::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rx_timing`] module"]
215pub type RX_TIMING = crate::Reg<rx_timing::RX_TIMING_SPEC>;
216#[doc = "I2S RX timing control register"]
217pub mod rx_timing;
218#[doc = "TX_TIMING (rw) register accessor: I2S TX timing control register\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_timing::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_timing::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tx_timing`] module"]
219pub type TX_TIMING = crate::Reg<tx_timing::TX_TIMING_SPEC>;
220#[doc = "I2S TX timing control register"]
221pub mod tx_timing;
222#[doc = "LC_HUNG_CONF (rw) register accessor: I2S HUNG configure register.\n\nYou can [`read`](crate::Reg::read) this register and get [`lc_hung_conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lc_hung_conf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lc_hung_conf`] module"]
223pub type LC_HUNG_CONF = crate::Reg<lc_hung_conf::LC_HUNG_CONF_SPEC>;
224#[doc = "I2S HUNG configure register."]
225pub mod lc_hung_conf;
226#[doc = "RXEOF_NUM (rw) register accessor: I2S RX data number control register.\n\nYou can [`read`](crate::Reg::read) this register and get [`rxeof_num::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rxeof_num::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxeof_num`] module"]
227pub type RXEOF_NUM = crate::Reg<rxeof_num::RXEOF_NUM_SPEC>;
228#[doc = "I2S RX data number control register."]
229pub mod rxeof_num;
230#[doc = "CONF_SIGLE_DATA (rw) register accessor: I2S signal data register\n\nYou can [`read`](crate::Reg::read) this register and get [`conf_sigle_data::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf_sigle_data::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@conf_sigle_data`] module"]
231pub type CONF_SIGLE_DATA = crate::Reg<conf_sigle_data::CONF_SIGLE_DATA_SPEC>;
232#[doc = "I2S signal data register"]
233pub mod conf_sigle_data;
234#[doc = "STATE (r) register accessor: I2S TX status register\n\nYou can [`read`](crate::Reg::read) this register and get [`state::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@state`] module"]
235pub type STATE = crate::Reg<state::STATE_SPEC>;
236#[doc = "I2S TX status register"]
237pub mod state;
238#[doc = "DATE (rw) register accessor: Version control register\n\nYou can [`read`](crate::Reg::read) this register and get [`date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`date::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@date`] module"]
239pub type DATE = crate::Reg<date::DATE_SPEC>;
240#[doc = "Version control register"]
241pub mod date;