stm32f1_staging/stm32f101/ethernet_ptp.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 ptptscr: PTPTSCR,
6 ptpssir: PTPSSIR,
7 ptptshr: PTPTSHR,
8 ptptslr: PTPTSLR,
9 ptptshur: PTPTSHUR,
10 ptptslur: PTPTSLUR,
11 ptptsar: PTPTSAR,
12 ptptthr: PTPTTHR,
13 ptpttlr: PTPTTLR,
14}
15impl RegisterBlock {
16 ///0x00 - Ethernet PTP time stamp control register (ETH_PTPTSCR)
17 #[inline(always)]
18 pub const fn ptptscr(&self) -> &PTPTSCR {
19 &self.ptptscr
20 }
21 ///0x04 - Ethernet PTP subsecond increment register
22 #[inline(always)]
23 pub const fn ptpssir(&self) -> &PTPSSIR {
24 &self.ptpssir
25 }
26 ///0x08 - Ethernet PTP time stamp high register
27 #[inline(always)]
28 pub const fn ptptshr(&self) -> &PTPTSHR {
29 &self.ptptshr
30 }
31 ///0x0c - Ethernet PTP time stamp low register (ETH_PTPTSLR)
32 #[inline(always)]
33 pub const fn ptptslr(&self) -> &PTPTSLR {
34 &self.ptptslr
35 }
36 ///0x10 - Ethernet PTP time stamp high update register
37 #[inline(always)]
38 pub const fn ptptshur(&self) -> &PTPTSHUR {
39 &self.ptptshur
40 }
41 ///0x14 - Ethernet PTP time stamp low update register (ETH_PTPTSLUR)
42 #[inline(always)]
43 pub const fn ptptslur(&self) -> &PTPTSLUR {
44 &self.ptptslur
45 }
46 ///0x18 - Ethernet PTP time stamp addend register
47 #[inline(always)]
48 pub const fn ptptsar(&self) -> &PTPTSAR {
49 &self.ptptsar
50 }
51 ///0x1c - Ethernet PTP target time high register
52 #[inline(always)]
53 pub const fn ptptthr(&self) -> &PTPTTHR {
54 &self.ptptthr
55 }
56 ///0x20 - Ethernet PTP target time low register
57 #[inline(always)]
58 pub const fn ptpttlr(&self) -> &PTPTTLR {
59 &self.ptpttlr
60 }
61}
62/**PTPTSCR (rw) register accessor: Ethernet PTP time stamp control register (ETH_PTPTSCR)
63
64You can [`read`](crate::Reg::read) this register and get [`ptptscr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptscr::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/STM32F101.html#Ethernet_PTP:PTPTSCR)
67
68For information about available fields see [`mod@ptptscr`] module*/
69pub type PTPTSCR = crate::Reg<ptptscr::PTPTSCRrs>;
70///Ethernet PTP time stamp control register (ETH_PTPTSCR)
71pub mod ptptscr;
72/**PTPSSIR (rw) register accessor: Ethernet PTP subsecond increment register
73
74You can [`read`](crate::Reg::read) this register and get [`ptpssir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpssir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
75
76See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPSSIR)
77
78For information about available fields see [`mod@ptpssir`] module*/
79pub type PTPSSIR = crate::Reg<ptpssir::PTPSSIRrs>;
80///Ethernet PTP subsecond increment register
81pub mod ptpssir;
82/**PTPTSHR (r) register accessor: Ethernet PTP time stamp high register
83
84You can [`read`](crate::Reg::read) this register and get [`ptptshr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
85
86See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTSHR)
87
88For information about available fields see [`mod@ptptshr`] module*/
89pub type PTPTSHR = crate::Reg<ptptshr::PTPTSHRrs>;
90///Ethernet PTP time stamp high register
91pub mod ptptshr;
92/**PTPTSLR (r) register accessor: Ethernet PTP time stamp low register (ETH_PTPTSLR)
93
94You can [`read`](crate::Reg::read) this register and get [`ptptslr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
95
96See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTSLR)
97
98For information about available fields see [`mod@ptptslr`] module*/
99pub type PTPTSLR = crate::Reg<ptptslr::PTPTSLRrs>;
100///Ethernet PTP time stamp low register (ETH_PTPTSLR)
101pub mod ptptslr;
102/**PTPTSHUR (rw) register accessor: Ethernet PTP time stamp high update register
103
104You can [`read`](crate::Reg::read) this register and get [`ptptshur::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptshur::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
105
106See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTSHUR)
107
108For information about available fields see [`mod@ptptshur`] module*/
109pub type PTPTSHUR = crate::Reg<ptptshur::PTPTSHURrs>;
110///Ethernet PTP time stamp high update register
111pub mod ptptshur;
112/**PTPTSLUR (rw) register accessor: Ethernet PTP time stamp low update register (ETH_PTPTSLUR)
113
114You can [`read`](crate::Reg::read) this register and get [`ptptslur::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptslur::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
115
116See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTSLUR)
117
118For information about available fields see [`mod@ptptslur`] module*/
119pub type PTPTSLUR = crate::Reg<ptptslur::PTPTSLURrs>;
120///Ethernet PTP time stamp low update register (ETH_PTPTSLUR)
121pub mod ptptslur;
122/**PTPTSAR (rw) register accessor: Ethernet PTP time stamp addend register
123
124You can [`read`](crate::Reg::read) this register and get [`ptptsar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptsar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
125
126See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTSAR)
127
128For information about available fields see [`mod@ptptsar`] module*/
129pub type PTPTSAR = crate::Reg<ptptsar::PTPTSARrs>;
130///Ethernet PTP time stamp addend register
131pub mod ptptsar;
132/**PTPTTHR (rw) register accessor: Ethernet PTP target time high register
133
134You can [`read`](crate::Reg::read) this register and get [`ptptthr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptthr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
135
136See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTTHR)
137
138For information about available fields see [`mod@ptptthr`] module*/
139pub type PTPTTHR = crate::Reg<ptptthr::PTPTTHRrs>;
140///Ethernet PTP target time high register
141pub mod ptptthr;
142/**PTPTTLR (rw) register accessor: Ethernet PTP target time low register
143
144You can [`read`](crate::Reg::read) this register and get [`ptpttlr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpttlr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
145
146See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP:PTPTTLR)
147
148For information about available fields see [`mod@ptpttlr`] module*/
149pub type PTPTTLR = crate::Reg<ptpttlr::PTPTTLRrs>;
150///Ethernet PTP target time low register
151pub mod ptpttlr;