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