#[repr(transparent)]pub struct MacTimestampControl(pub u32);Expand description
Timestamp Control
Tuple Fields§
§0: u32Implementations§
Source§impl MacTimestampControl
impl MacTimestampControl
Sourcepub const fn set_tscfupdt(&mut self, val: Tscfupdt)
pub const fn set_tscfupdt(&mut self, val: Tscfupdt)
Fine or Coarse Timestamp Update
Sourcepub const fn set_tsinit(&mut self, val: bool)
pub const fn set_tsinit(&mut self, val: bool)
Initialize Timestamp
Sourcepub const fn set_tsupdt(&mut self, val: bool)
pub const fn set_tsupdt(&mut self, val: bool)
Update Timestamp
Sourcepub const fn set_tstrig(&mut self, val: bool)
pub const fn set_tstrig(&mut self, val: bool)
Enable Timestamp Interrupt Trigger
Sourcepub const fn set_tsaddreg(&mut self, val: bool)
pub const fn set_tsaddreg(&mut self, val: bool)
Update Addend Register
Sourcepub const fn set_tsenall(&mut self, val: bool)
pub const fn set_tsenall(&mut self, val: bool)
Enable Timestamp for All Packets
Sourcepub const fn set_tsctrlssr(&mut self, val: Tsctrlssr)
pub const fn set_tsctrlssr(&mut self, val: Tsctrlssr)
Timestamp Digital or Binary Rollover Control
Sourcepub 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
Sourcepub const fn set_tsipena(&mut self, val: bool)
pub const fn set_tsipena(&mut self, val: bool)
Enable Processing of PTP over Ethernet Packets
Sourcepub 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
Sourcepub 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
Sourcepub const fn set_tsevntena(&mut self, val: bool)
pub const fn set_tsevntena(&mut self, val: bool)
Enable Timestamp Snapshot for Event Messages
Sourcepub const fn set_tsmstrena(&mut self, val: bool)
pub const fn set_tsmstrena(&mut self, val: bool)
Enable Snapshot for Messages Relevant to Master
Sourcepub const fn snaptypsel(&self) -> u8
pub const fn snaptypsel(&self) -> u8
Select PTP packets for Taking Snapshots
Sourcepub const fn set_snaptypsel(&mut self, val: u8)
pub const fn set_snaptypsel(&mut self, val: u8)
Select PTP packets for Taking Snapshots
Sourcepub const fn tsenmacaddr(&self) -> bool
pub const fn tsenmacaddr(&self) -> bool
Enable MAC Address for PTP Packet Filtering
Sourcepub const fn set_tsenmacaddr(&mut self, val: bool)
pub const fn set_tsenmacaddr(&mut self, val: bool)
Enable MAC Address for PTP Packet Filtering
Sourcepub const fn set_txtsstsm(&mut self, val: bool)
pub const fn set_txtsstsm(&mut self, val: bool)
Transmit Timestamp Status Mode
Sourcepub const fn av8021asmen(&self) -> bool
pub const fn av8021asmen(&self) -> bool
AV 802.
Sourcepub const fn set_av8021asmen(&mut self, val: bool)
pub const fn set_av8021asmen(&mut self, val: bool)
AV 802.
Trait Implementations§
Source§impl Clone for MacTimestampControl
impl Clone for MacTimestampControl
Source§fn clone(&self) -> MacTimestampControl
fn clone(&self) -> MacTimestampControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MacTimestampControl
impl Debug for MacTimestampControl
Source§impl Default for MacTimestampControl
impl Default for MacTimestampControl
Source§fn default() -> MacTimestampControl
fn default() -> MacTimestampControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for MacTimestampControl
impl PartialEq for MacTimestampControl
impl Copy for MacTimestampControl
impl Eq for MacTimestampControl
impl StructuralPartialEq for MacTimestampControl
Auto Trait Implementations§
impl Freeze for MacTimestampControl
impl RefUnwindSafe for MacTimestampControl
impl Send for MacTimestampControl
impl Sync for MacTimestampControl
impl Unpin for MacTimestampControl
impl UnwindSafe for MacTimestampControl
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