#[repr(transparent)]pub struct MacSubSecondIncrement(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.28; manual text line 152297.
Tuple Fields§
§0: u32Implementations§
Source§impl MacSubSecondIncrement
impl MacSubSecondIncrement
Sourcepub const fn ssinc(&self) -> u8
pub const fn ssinc(&self) -> u8
Sub-second Increment Value. The value programmed in this field is accumulated every clock cycle (of clk_ptp_i) with the contents of the sub-second register. For example, when the PTP clock is 50 MHz (period is 20 ns), you must program 20 (0x14) when the System Time Nanoseconds register has an accuracy of 1 ns [Bit 9 (TSCTRLSSR) is set in MAC_Timestamp_Control]. When TSCTRLSSR is clear, the Nanoseconds register has a resolution of 0.465 ns. In this case, you must program a value of 43 (0x2B) which is derived by 20 ns/0.465.
Sourcepub const fn set_ssinc(&mut self, val: u8)
pub const fn set_ssinc(&mut self, val: u8)
Sub-second Increment Value. The value programmed in this field is accumulated every clock cycle (of clk_ptp_i) with the contents of the sub-second register. For example, when the PTP clock is 50 MHz (period is 20 ns), you must program 20 (0x14) when the System Time Nanoseconds register has an accuracy of 1 ns [Bit 9 (TSCTRLSSR) is set in MAC_Timestamp_Control]. When TSCTRLSSR is clear, the Nanoseconds register has a resolution of 0.465 ns. In this case, you must program a value of 43 (0x2B) which is derived by 20 ns/0.465.
Trait Implementations§
Source§impl Clone for MacSubSecondIncrement
impl Clone for MacSubSecondIncrement
Source§fn clone(&self) -> MacSubSecondIncrement
fn clone(&self) -> MacSubSecondIncrement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more