Struct Mactscr
#[repr(transparent)]pub struct Mactscr(pub u32);
Expand description
Timestamp control Register
Tuple Fields§
§0: u32
Implementations§
§impl Mactscr
impl Mactscr
pub fn set_tscfupdt(&mut self, val: bool)
pub fn set_tscfupdt(&mut self, val: bool)
Fine or Coarse Timestamp Update
pub fn set_tsinit(&mut self, val: bool)
pub fn set_tsinit(&mut self, val: bool)
Initialize Timestamp
pub fn set_tsupdt(&mut self, val: bool)
pub fn set_tsupdt(&mut self, val: bool)
Update Timestamp
pub fn set_tsaddreg(&mut self, val: bool)
pub fn set_tsaddreg(&mut self, val: bool)
Update Addend Register
pub fn set_tsenall(&mut self, val: bool)
pub fn set_tsenall(&mut self, val: bool)
Enable Timestamp for All Packets
pub fn set_tsctrlssr(&mut self, val: bool)
pub fn set_tsctrlssr(&mut self, val: bool)
Timestamp Digital or Binary Rollover Control
pub fn set_tsver2ena(&mut self, val: bool)
pub fn set_tsver2ena(&mut self, val: bool)
Enable PTP Packet Processing for Version 2 Format
pub fn set_tsipena(&mut self, val: bool)
pub fn set_tsipena(&mut self, val: bool)
Enable Processing of PTP over Ethernet Packets
pub fn set_tsipv6ena(&mut self, val: bool)
pub fn set_tsipv6ena(&mut self, val: bool)
Enable Processing of PTP Packets Sent over IPv6-UDP
pub fn set_tsipv4ena(&mut self, val: bool)
pub fn set_tsipv4ena(&mut self, val: bool)
Enable Processing of PTP Packets Sent over IPv4-UDP
pub fn set_tsevntena(&mut self, val: bool)
pub fn set_tsevntena(&mut self, val: bool)
Enable Timestamp Snapshot for Event Messages
pub fn set_tsmstrena(&mut self, val: bool)
pub 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 fn set_snaptypsel(&mut self, val: u8)
pub 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 fn set_tsenmacaddr(&mut self, val: bool)
pub fn set_tsenmacaddr(&mut self, val: bool)
Enable MAC Address for PTP Packet Filtering
pub fn set_csc(&mut self, val: bool)
pub fn set_csc(&mut self, val: bool)
Enable checksum correction during OST for PTP over UDP/IPv4 packets
pub fn set_txtsstsm(&mut self, val: bool)
pub 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)