Struct Mactscr
#[repr(transparent)]pub struct Mactscr(pub u32);Expand description
Timestamp control Register
Tuple Fields§
§0: u32Implementations§
§impl Mactscr
impl Mactscr
pub const fn set_tscfupdt(&mut self, val: bool)
pub const fn set_tscfupdt(&mut self, val: bool)
Fine or Coarse Timestamp Update
pub const fn set_tsinit(&mut self, val: bool)
pub const fn set_tsinit(&mut self, val: bool)
Initialize Timestamp
pub const fn set_tsupdt(&mut self, val: bool)
pub const fn set_tsupdt(&mut self, val: bool)
Update Timestamp
pub const fn set_tsaddreg(&mut self, val: bool)
pub const fn set_tsaddreg(&mut self, val: bool)
Update Addend Register
pub const fn set_tsenall(&mut self, val: bool)
pub const fn set_tsenall(&mut self, val: bool)
Enable Timestamp for All Packets
pub const fn set_tsctrlssr(&mut self, val: bool)
pub const fn set_tsctrlssr(&mut self, val: bool)
Timestamp Digital or Binary Rollover Control
pub const fn set_tsver2ena(&mut self, val: bool)
pub const fn set_tsver2ena(&mut self, val: bool)
Enable PTP Packet Processing for Version 2 Format
pub const fn set_tsipena(&mut self, val: bool)
pub const fn set_tsipena(&mut self, val: bool)
Enable Processing of PTP over Ethernet Packets
pub const fn set_tsipv6ena(&mut self, val: bool)
pub const fn set_tsipv6ena(&mut self, val: bool)
Enable Processing of PTP Packets Sent over IPv6-UDP
pub const fn set_tsipv4ena(&mut self, val: bool)
pub const fn set_tsipv4ena(&mut self, val: bool)
Enable Processing of PTP Packets Sent over IPv4-UDP
pub const fn set_tsevntena(&mut self, val: bool)
pub const fn set_tsevntena(&mut self, val: bool)
Enable Timestamp Snapshot for Event Messages
pub const fn set_tsmstrena(&mut self, val: bool)
pub const fn set_tsmstrena(&mut self, val: bool)
Enable Snapshot for Messages Relevant to Master
pub const fn snaptypsel(&self) -> u8
pub const fn snaptypsel(&self) -> u8
Select PTP packets for Taking Snapshots
pub const fn set_snaptypsel(&mut self, val: u8)
pub const fn set_snaptypsel(&mut self, val: u8)
Select PTP packets for Taking Snapshots
pub const fn tsenmacaddr(&self) -> bool
pub const fn tsenmacaddr(&self) -> bool
Enable MAC Address for PTP Packet Filtering
pub const fn set_tsenmacaddr(&mut self, val: bool)
pub const fn set_tsenmacaddr(&mut self, val: bool)
Enable MAC Address for PTP Packet Filtering
pub const fn set_csc(&mut self, val: bool)
pub const fn set_csc(&mut self, val: bool)
Enable checksum correction during OST for PTP over UDP/IPv4 packets
pub const fn set_txtsstsm(&mut self, val: bool)
pub const fn set_txtsstsm(&mut self, val: bool)
Transmit Timestamp Status Mode
Trait Implementations§
impl Copy for Mactscr
impl Eq for Mactscr
impl StructuralPartialEq for Mactscr
Auto Trait Implementations§
impl Freeze for Mactscr
impl RefUnwindSafe for Mactscr
impl Send for Mactscr
impl Sync for Mactscr
impl Unpin for Mactscr
impl UnwindSafe for Mactscr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more