#[repr(transparent)]pub struct MacRxDomainTimeIncr(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.35; manual text line 152856.
Tuple Fields§
§0: u32Implementations§
Source§impl MacRxDomainTimeIncr
impl MacRxDomainTimeIncr
Sourcepub const fn rxns(&self) -> u16
pub const fn rxns(&self) -> u16
Receive Domain Time Increment Value in Nanoseconds.. This field indicates the Nanosecond part of the increment value of the PTP time maintained in Receive 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 RXNS 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 RXNS and RXSNS fields must be programmed with 6 and (0.64256)=164 respectively. When both RXSNS and RXNS fields are all-zeros, the fixed value based on operating speed is used for PTP time increment in Receive clock domain.
Sourcepub const fn set_rxns(&mut self, val: u16)
pub const fn set_rxns(&mut self, val: u16)
Receive Domain Time Increment Value in Nanoseconds.. This field indicates the Nanosecond part of the increment value of the PTP time maintained in Receive 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 RXNS 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 RXNS and RXSNS fields must be programmed with 6 and (0.64256)=164 respectively. When both RXSNS and RXNS fields are all-zeros, the fixed value based on operating speed is used for PTP time increment in Receive clock domain.
Trait Implementations§
Source§impl Clone for MacRxDomainTimeIncr
impl Clone for MacRxDomainTimeIncr
Source§fn clone(&self) -> MacRxDomainTimeIncr
fn clone(&self) -> MacRxDomainTimeIncr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more