#[repr(transparent)]pub struct MacTxDomainTimeIncr(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.36; manual text line 152922.
Tuple Fields§
§0: u32Implementations§
Source§impl MacTxDomainTimeIncr
impl MacTxDomainTimeIncr
Sourcepub const fn txns(&self) -> u16
pub const fn txns(&self) -> u16
Transmit Domain Time Increment Value in Nanoseconds.. This field indicates the Nanosecond part of the increment value of the PTP time maintained in Transmit clock domain that is used for timestamping. For example, when operating in 2.5G speed the clock period is 3.2ns, so for Digital Rollover mode the TXNS and RXSNS fields must be programmed with 3 and (0.2256)=51 respectively. In Binary Rollover mode, 3/0.466=6.44 and 0.2+0.44=0.64, so TXNS and TXSNS fields must be programmed with 6 and (0.64256)=164 respectively. When both TXSNS and TXNS fields are all-zeros, the fixed value based on operating speed is used for PTP time increment in Transmit clock domain.
Sourcepub const fn set_txns(&mut self, val: u16)
pub const fn set_txns(&mut self, val: u16)
Transmit Domain Time Increment Value in Nanoseconds.. This field indicates the Nanosecond part of the increment value of the PTP time maintained in Transmit clock domain that is used for timestamping. For example, when operating in 2.5G speed the clock period is 3.2ns, so for Digital Rollover mode the TXNS and RXSNS fields must be programmed with 3 and (0.2256)=51 respectively. In Binary Rollover mode, 3/0.466=6.44 and 0.2+0.44=0.64, so TXNS and TXSNS fields must be programmed with 6 and (0.64256)=164 respectively. When both TXSNS and TXNS fields are all-zeros, the fixed value based on operating speed is used for PTP time increment in Transmit clock domain.
Trait Implementations§
Source§impl Clone for MacTxDomainTimeIncr
impl Clone for MacTxDomainTimeIncr
Source§fn clone(&self) -> MacTxDomainTimeIncr
fn clone(&self) -> MacTxDomainTimeIncr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more