stm32f7/stm32f779/
ethernet_dma.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    dmabmr: DMABMR,
6    dmatpdr: DMATPDR,
7    dmarpdr: DMARPDR,
8    dmardlar: DMARDLAR,
9    dmatdlar: DMATDLAR,
10    dmasr: DMASR,
11    dmaomr: DMAOMR,
12    dmaier: DMAIER,
13    dmamfbocr: DMAMFBOCR,
14    dmarswtr: DMARSWTR,
15    _reserved10: [u8; 0x20],
16    dmachtdr: DMACHTDR,
17    dmachrdr: DMACHRDR,
18    dmachtbar: DMACHTBAR,
19    dmachrbar: DMACHRBAR,
20}
21impl RegisterBlock {
22    ///0x00 - Ethernet DMA bus mode register
23    #[inline(always)]
24    pub const fn dmabmr(&self) -> &DMABMR {
25        &self.dmabmr
26    }
27    ///0x04 - Ethernet DMA transmit poll demand register
28    #[inline(always)]
29    pub const fn dmatpdr(&self) -> &DMATPDR {
30        &self.dmatpdr
31    }
32    ///0x08 - EHERNET DMA receive poll demand register
33    #[inline(always)]
34    pub const fn dmarpdr(&self) -> &DMARPDR {
35        &self.dmarpdr
36    }
37    ///0x0c - Ethernet DMA receive descriptor list address register
38    #[inline(always)]
39    pub const fn dmardlar(&self) -> &DMARDLAR {
40        &self.dmardlar
41    }
42    ///0x10 - Ethernet DMA transmit descriptor list address register
43    #[inline(always)]
44    pub const fn dmatdlar(&self) -> &DMATDLAR {
45        &self.dmatdlar
46    }
47    ///0x14 - Ethernet DMA status register
48    #[inline(always)]
49    pub const fn dmasr(&self) -> &DMASR {
50        &self.dmasr
51    }
52    ///0x18 - Ethernet DMA operation mode register
53    #[inline(always)]
54    pub const fn dmaomr(&self) -> &DMAOMR {
55        &self.dmaomr
56    }
57    ///0x1c - Ethernet DMA interrupt enable register
58    #[inline(always)]
59    pub const fn dmaier(&self) -> &DMAIER {
60        &self.dmaier
61    }
62    ///0x20 - Ethernet DMA missed frame and buffer overflow counter register
63    #[inline(always)]
64    pub const fn dmamfbocr(&self) -> &DMAMFBOCR {
65        &self.dmamfbocr
66    }
67    ///0x24 - Ethernet DMA receive status watchdog timer register
68    #[inline(always)]
69    pub const fn dmarswtr(&self) -> &DMARSWTR {
70        &self.dmarswtr
71    }
72    ///0x48 - Ethernet DMA current host transmit descriptor register
73    #[inline(always)]
74    pub const fn dmachtdr(&self) -> &DMACHTDR {
75        &self.dmachtdr
76    }
77    ///0x4c - Ethernet DMA current host receive descriptor register
78    #[inline(always)]
79    pub const fn dmachrdr(&self) -> &DMACHRDR {
80        &self.dmachrdr
81    }
82    ///0x50 - Ethernet DMA current host transmit buffer address register
83    #[inline(always)]
84    pub const fn dmachtbar(&self) -> &DMACHTBAR {
85        &self.dmachtbar
86    }
87    ///0x54 - Ethernet DMA current host receive buffer address register
88    #[inline(always)]
89    pub const fn dmachrbar(&self) -> &DMACHRBAR {
90        &self.dmachrbar
91    }
92}
93/**DMABMR (rw) register accessor: Ethernet DMA bus mode register
94
95You can [`read`](crate::Reg::read) this register and get [`dmabmr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmabmr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
96
97See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMABMR)
98
99For information about available fields see [`mod@dmabmr`] module*/
100pub type DMABMR = crate::Reg<dmabmr::DMABMRrs>;
101///Ethernet DMA bus mode register
102pub mod dmabmr;
103/**DMATPDR (rw) register accessor: Ethernet DMA transmit poll demand register
104
105You can [`read`](crate::Reg::read) this register and get [`dmatpdr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatpdr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
106
107See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMATPDR)
108
109For information about available fields see [`mod@dmatpdr`] module*/
110pub type DMATPDR = crate::Reg<dmatpdr::DMATPDRrs>;
111///Ethernet DMA transmit poll demand register
112pub mod dmatpdr;
113/**DMARPDR (rw) register accessor: EHERNET DMA receive poll demand register
114
115You can [`read`](crate::Reg::read) this register and get [`dmarpdr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmarpdr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
116
117See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMARPDR)
118
119For information about available fields see [`mod@dmarpdr`] module*/
120pub type DMARPDR = crate::Reg<dmarpdr::DMARPDRrs>;
121///EHERNET DMA receive poll demand register
122pub mod dmarpdr;
123/**DMARDLAR (rw) register accessor: Ethernet DMA receive descriptor list address register
124
125You can [`read`](crate::Reg::read) this register and get [`dmardlar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmardlar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
126
127See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMARDLAR)
128
129For information about available fields see [`mod@dmardlar`] module*/
130pub type DMARDLAR = crate::Reg<dmardlar::DMARDLARrs>;
131///Ethernet DMA receive descriptor list address register
132pub mod dmardlar;
133/**DMATDLAR (rw) register accessor: Ethernet DMA transmit descriptor list address register
134
135You can [`read`](crate::Reg::read) this register and get [`dmatdlar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatdlar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
136
137See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMATDLAR)
138
139For information about available fields see [`mod@dmatdlar`] module*/
140pub type DMATDLAR = crate::Reg<dmatdlar::DMATDLARrs>;
141///Ethernet DMA transmit descriptor list address register
142pub mod dmatdlar;
143/**DMASR (rw) register accessor: Ethernet DMA status register
144
145You can [`read`](crate::Reg::read) this register and get [`dmasr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmasr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
146
147See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMASR)
148
149For information about available fields see [`mod@dmasr`] module*/
150pub type DMASR = crate::Reg<dmasr::DMASRrs>;
151///Ethernet DMA status register
152pub mod dmasr;
153/**DMAOMR (rw) register accessor: Ethernet DMA operation mode register
154
155You can [`read`](crate::Reg::read) this register and get [`dmaomr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaomr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
156
157See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMAOMR)
158
159For information about available fields see [`mod@dmaomr`] module*/
160pub type DMAOMR = crate::Reg<dmaomr::DMAOMRrs>;
161///Ethernet DMA operation mode register
162pub mod dmaomr;
163/**DMAIER (rw) register accessor: Ethernet DMA interrupt enable register
164
165You can [`read`](crate::Reg::read) this register and get [`dmaier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
166
167See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMAIER)
168
169For information about available fields see [`mod@dmaier`] module*/
170pub type DMAIER = crate::Reg<dmaier::DMAIERrs>;
171///Ethernet DMA interrupt enable register
172pub mod dmaier;
173/**DMAMFBOCR (rw) register accessor: Ethernet DMA missed frame and buffer overflow counter register
174
175You can [`read`](crate::Reg::read) this register and get [`dmamfbocr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmamfbocr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
176
177See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMAMFBOCR)
178
179For information about available fields see [`mod@dmamfbocr`] module*/
180pub type DMAMFBOCR = crate::Reg<dmamfbocr::DMAMFBOCRrs>;
181///Ethernet DMA missed frame and buffer overflow counter register
182pub mod dmamfbocr;
183/**DMARSWTR (rw) register accessor: Ethernet DMA receive status watchdog timer register
184
185You can [`read`](crate::Reg::read) this register and get [`dmarswtr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmarswtr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
186
187See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMARSWTR)
188
189For information about available fields see [`mod@dmarswtr`] module*/
190pub type DMARSWTR = crate::Reg<dmarswtr::DMARSWTRrs>;
191///Ethernet DMA receive status watchdog timer register
192pub mod dmarswtr;
193/**DMACHTDR (r) register accessor: Ethernet DMA current host transmit descriptor register
194
195You can [`read`](crate::Reg::read) this register and get [`dmachtdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
196
197See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMACHTDR)
198
199For information about available fields see [`mod@dmachtdr`] module*/
200pub type DMACHTDR = crate::Reg<dmachtdr::DMACHTDRrs>;
201///Ethernet DMA current host transmit descriptor register
202pub mod dmachtdr;
203/**DMACHRDR (r) register accessor: Ethernet DMA current host receive descriptor register
204
205You can [`read`](crate::Reg::read) this register and get [`dmachrdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
206
207See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMACHRDR)
208
209For information about available fields see [`mod@dmachrdr`] module*/
210pub type DMACHRDR = crate::Reg<dmachrdr::DMACHRDRrs>;
211///Ethernet DMA current host receive descriptor register
212pub mod dmachrdr;
213/**DMACHTBAR (r) register accessor: Ethernet DMA current host transmit buffer address register
214
215You can [`read`](crate::Reg::read) this register and get [`dmachtbar::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
216
217See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMACHTBAR)
218
219For information about available fields see [`mod@dmachtbar`] module*/
220pub type DMACHTBAR = crate::Reg<dmachtbar::DMACHTBARrs>;
221///Ethernet DMA current host transmit buffer address register
222pub mod dmachtbar;
223/**DMACHRBAR (r) register accessor: Ethernet DMA current host receive buffer address register
224
225You can [`read`](crate::Reg::read) this register and get [`dmachrbar::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
226
227See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#Ethernet_DMA:DMACHRBAR)
228
229For information about available fields see [`mod@dmachrbar`] module*/
230pub type DMACHRBAR = crate::Reg<dmachrbar::DMACHRBARrs>;
231///Ethernet DMA current host receive buffer address register
232pub mod dmachrbar;