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