stm32f7_staging/stm32f779/
mdios.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr: CR,
6    wrfr: WRFR,
7    cwrfr: CWRFR,
8    rdfr: RDFR,
9    crdfr: CRDFR,
10    sr: SR,
11    clrfr: CLRFR,
12    dinr: [DINR; 32],
13    doutr: [DOUTR; 32],
14}
15impl RegisterBlock {
16    ///0x00 - MDIOS configuration register
17    #[inline(always)]
18    pub const fn cr(&self) -> &CR {
19        &self.cr
20    }
21    ///0x04 - MDIOS write flag register
22    #[inline(always)]
23    pub const fn wrfr(&self) -> &WRFR {
24        &self.wrfr
25    }
26    ///0x08 - MDIOS clear write flag register
27    #[inline(always)]
28    pub const fn cwrfr(&self) -> &CWRFR {
29        &self.cwrfr
30    }
31    ///0x0c - MDIOS read flag register
32    #[inline(always)]
33    pub const fn rdfr(&self) -> &RDFR {
34        &self.rdfr
35    }
36    ///0x10 - MDIOS clear read flag register
37    #[inline(always)]
38    pub const fn crdfr(&self) -> &CRDFR {
39        &self.crdfr
40    }
41    ///0x14 - MDIOS status register
42    #[inline(always)]
43    pub const fn sr(&self) -> &SR {
44        &self.sr
45    }
46    ///0x18 - MDIOS clear flag register
47    #[inline(always)]
48    pub const fn clrfr(&self) -> &CLRFR {
49        &self.clrfr
50    }
51    ///0x1c..0x9c - MDIOS input data register %s
52    #[inline(always)]
53    pub const fn dinr(&self, n: usize) -> &DINR {
54        &self.dinr[n]
55    }
56    ///Iterator for array of:
57    ///0x1c..0x9c - MDIOS input data register %s
58    #[inline(always)]
59    pub fn dinr_iter(&self) -> impl Iterator<Item = &DINR> {
60        self.dinr.iter()
61    }
62    ///0x9c..0x11c - MDIOS output data register %s
63    #[inline(always)]
64    pub const fn doutr(&self, n: usize) -> &DOUTR {
65        &self.doutr[n]
66    }
67    ///Iterator for array of:
68    ///0x9c..0x11c - MDIOS output data register %s
69    #[inline(always)]
70    pub fn doutr_iter(&self) -> impl Iterator<Item = &DOUTR> {
71        self.doutr.iter()
72    }
73}
74/**CR (rw) register accessor: MDIOS configuration register
75
76You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
77
78See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:CR)
79
80For information about available fields see [`mod@cr`] module*/
81pub type CR = crate::Reg<cr::CRrs>;
82///MDIOS configuration register
83pub mod cr;
84/**WRFR (r) register accessor: MDIOS write flag register
85
86You can [`read`](crate::Reg::read) this register and get [`wrfr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
87
88See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:WRFR)
89
90For information about available fields see [`mod@wrfr`] module*/
91pub type WRFR = crate::Reg<wrfr::WRFRrs>;
92///MDIOS write flag register
93pub mod wrfr;
94/**CWRFR (rw) register accessor: MDIOS clear write flag register
95
96You can [`read`](crate::Reg::read) this register and get [`cwrfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cwrfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
97
98See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:CWRFR)
99
100For information about available fields see [`mod@cwrfr`] module*/
101pub type CWRFR = crate::Reg<cwrfr::CWRFRrs>;
102///MDIOS clear write flag register
103pub mod cwrfr;
104/**RDFR (r) register accessor: MDIOS read flag register
105
106You can [`read`](crate::Reg::read) this register and get [`rdfr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
107
108See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:RDFR)
109
110For information about available fields see [`mod@rdfr`] module*/
111pub type RDFR = crate::Reg<rdfr::RDFRrs>;
112///MDIOS read flag register
113pub mod rdfr;
114/**CRDFR (rw) register accessor: MDIOS clear read flag register
115
116You can [`read`](crate::Reg::read) this register and get [`crdfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crdfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
117
118See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:CRDFR)
119
120For information about available fields see [`mod@crdfr`] module*/
121pub type CRDFR = crate::Reg<crdfr::CRDFRrs>;
122///MDIOS clear read flag register
123pub mod crdfr;
124/**SR (r) register accessor: MDIOS status register
125
126You can [`read`](crate::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
127
128See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:SR)
129
130For information about available fields see [`mod@sr`] module*/
131pub type SR = crate::Reg<sr::SRrs>;
132///MDIOS status register
133pub mod sr;
134/**CLRFR (rw) register accessor: MDIOS clear flag register
135
136You can [`read`](crate::Reg::read) this register and get [`clrfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clrfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
137
138See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:CLRFR)
139
140For information about available fields see [`mod@clrfr`] module*/
141pub type CLRFR = crate::Reg<clrfr::CLRFRrs>;
142///MDIOS clear flag register
143pub mod clrfr;
144/**DINR (r) register accessor: MDIOS input data register %s
145
146You can [`read`](crate::Reg::read) this register and get [`dinr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
147
148See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:DINR[0])
149
150For information about available fields see [`mod@dinr`] module*/
151pub type DINR = crate::Reg<dinr::DINRrs>;
152///MDIOS input data register %s
153pub mod dinr;
154/**DOUTR (rw) register accessor: MDIOS output data register %s
155
156You can [`read`](crate::Reg::read) this register and get [`doutr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doutr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
157
158See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#MDIOS:DOUTR[0])
159
160For information about available fields see [`mod@doutr`] module*/
161pub type DOUTR = crate::Reg<doutr::DOUTRrs>;
162///MDIOS output data register %s
163pub mod doutr;