stm32f3_staging/stm32f303/
i2s2ext.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr1: CR1,
6    cr2: CR2,
7    sr: SR,
8    dr: DR,
9    crcpr: CRCPR,
10    rxcrcr: RXCRCR,
11    txcrcr: TXCRCR,
12    i2scfgr: I2SCFGR,
13    i2spr: I2SPR,
14}
15impl RegisterBlock {
16    ///0x00 - control register 1
17    #[inline(always)]
18    pub const fn cr1(&self) -> &CR1 {
19        &self.cr1
20    }
21    ///0x04 - control register 2
22    #[inline(always)]
23    pub const fn cr2(&self) -> &CR2 {
24        &self.cr2
25    }
26    ///0x08 - status register
27    #[inline(always)]
28    pub const fn sr(&self) -> &SR {
29        &self.sr
30    }
31    ///0x0c - data register
32    #[inline(always)]
33    pub const fn dr(&self) -> &DR {
34        &self.dr
35    }
36    ///0x10 - CRC polynomial register
37    #[inline(always)]
38    pub const fn crcpr(&self) -> &CRCPR {
39        &self.crcpr
40    }
41    ///0x14 - RX CRC register
42    #[inline(always)]
43    pub const fn rxcrcr(&self) -> &RXCRCR {
44        &self.rxcrcr
45    }
46    ///0x18 - TX CRC register
47    #[inline(always)]
48    pub const fn txcrcr(&self) -> &TXCRCR {
49        &self.txcrcr
50    }
51    ///0x1c - I2S configuration register
52    #[inline(always)]
53    pub const fn i2scfgr(&self) -> &I2SCFGR {
54        &self.i2scfgr
55    }
56    ///0x20 - I2S prescaler register
57    #[inline(always)]
58    pub const fn i2spr(&self) -> &I2SPR {
59        &self.i2spr
60    }
61}
62/**CR1 (rw) register accessor: control register 1
63
64You can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
65
66See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:CR1)
67
68For information about available fields see [`mod@cr1`]
69module*/
70pub type CR1 = crate::Reg<cr1::CR1rs>;
71///control register 1
72pub mod cr1;
73/**CR2 (rw) register accessor: control register 2
74
75You can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
76
77See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:CR2)
78
79For information about available fields see [`mod@cr2`]
80module*/
81pub type CR2 = crate::Reg<cr2::CR2rs>;
82///control register 2
83pub mod cr2;
84/**SR (rw) register accessor: status register
85
86You can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
87
88See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:SR)
89
90For information about available fields see [`mod@sr`]
91module*/
92pub type SR = crate::Reg<sr::SRrs>;
93///status register
94pub mod sr;
95/**DR (rw) register accessor: data register
96
97You can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
98
99See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:DR)
100
101For information about available fields see [`mod@dr`]
102module*/
103pub type DR = crate::Reg<dr::DRrs>;
104///data register
105pub mod dr;
106/**CRCPR (rw) register accessor: CRC polynomial register
107
108You can [`read`](crate::Reg::read) this register and get [`crcpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crcpr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
109
110See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:CRCPR)
111
112For information about available fields see [`mod@crcpr`]
113module*/
114pub type CRCPR = crate::Reg<crcpr::CRCPRrs>;
115///CRC polynomial register
116pub mod crcpr;
117/**RXCRCR (r) register accessor: RX CRC register
118
119You can [`read`](crate::Reg::read) this register and get [`rxcrcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
120
121See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:RXCRCR)
122
123For information about available fields see [`mod@rxcrcr`]
124module*/
125pub type RXCRCR = crate::Reg<rxcrcr::RXCRCRrs>;
126///RX CRC register
127pub mod rxcrcr;
128/**TXCRCR (r) register accessor: TX CRC register
129
130You can [`read`](crate::Reg::read) this register and get [`txcrcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
131
132See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:TXCRCR)
133
134For information about available fields see [`mod@txcrcr`]
135module*/
136pub type TXCRCR = crate::Reg<txcrcr::TXCRCRrs>;
137///TX CRC register
138pub mod txcrcr;
139/**I2SCFGR (rw) register accessor: I2S configuration register
140
141You can [`read`](crate::Reg::read) this register and get [`i2scfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2scfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
142
143See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:I2SCFGR)
144
145For information about available fields see [`mod@i2scfgr`]
146module*/
147pub type I2SCFGR = crate::Reg<i2scfgr::I2SCFGRrs>;
148///I2S configuration register
149pub mod i2scfgr;
150/**I2SPR (rw) register accessor: I2S prescaler register
151
152You can [`read`](crate::Reg::read) this register and get [`i2spr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2spr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
153
154See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#I2S2ext:I2SPR)
155
156For information about available fields see [`mod@i2spr`]
157module*/
158pub type I2SPR = crate::Reg<i2spr::I2SPRrs>;
159///I2S prescaler register
160pub mod i2spr;