#[repr(transparent)]pub struct MacTimestampStatus(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.34; manual text line 152677.
Tuple Fields§
§0: u32Implementations§
Source§impl MacTimestampStatus
impl MacTimestampStatus
Sourcepub const fn tssovf(&self) -> bool
pub const fn tssovf(&self) -> bool
Timestamp Seconds Overflow. When this bit is set, it indicates that the seconds value of the timestamp (when supporting version 2 format) has overflowed beyond 32’hFFFF_FFFF. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Seconds Overflow status not detected 1b - Timestamp Seconds Overflow status detected
Sourcepub const fn set_tssovf(&mut self, val: bool)
pub const fn set_tssovf(&mut self, val: bool)
Timestamp Seconds Overflow. When this bit is set, it indicates that the seconds value of the timestamp (when supporting version 2 format) has overflowed beyond 32’hFFFF_FFFF. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Seconds Overflow status not detected 1b - Timestamp Seconds Overflow status detected
Sourcepub const fn tstargt0(&self) -> bool
pub const fn tstargt0(&self) -> bool
Timestamp Target Time Reached. When this bit is set, it indicates that the value of system time is greater than or equal to the value specified in the MAC_PPS0_Target_Time_Seconds and MAC_PPS0_Target_Time_Nanoseconds registers. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Target Time Reached status not detected 1b - Timestamp Target Time Reached status detected
Sourcepub const fn set_tstargt0(&mut self, val: bool)
pub const fn set_tstargt0(&mut self, val: bool)
Timestamp Target Time Reached. When this bit is set, it indicates that the value of system time is greater than or equal to the value specified in the MAC_PPS0_Target_Time_Seconds and MAC_PPS0_Target_Time_Nanoseconds registers. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Target Time Reached status not detected 1b - Timestamp Target Time Reached status detected
Sourcepub const fn auxtstrig(&self) -> bool
pub const fn auxtstrig(&self) -> bool
Auxiliary Timestamp Trigger Snapshot. This bit is set high when the auxiliary snapshot is written to the FIFO. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Auxiliary Timestamp Trigger Snapshot status not detected 1b - Auxiliary Timestamp Trigger Snapshot status detected
Sourcepub const fn set_auxtstrig(&mut self, val: bool)
pub const fn set_auxtstrig(&mut self, val: bool)
Auxiliary Timestamp Trigger Snapshot. This bit is set high when the auxiliary snapshot is written to the FIFO. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Auxiliary Timestamp Trigger Snapshot status not detected 1b - Auxiliary Timestamp Trigger Snapshot status detected
Sourcepub const fn tstrgterr0(&self) -> bool
pub const fn tstrgterr0(&self) -> bool
Timestamp Target Time Error. This bit is set when the latest target time programmed in the MAC_PPS0_Target_Time_Seconds and MAC_PPS0_Target_Time_Nanoseconds registers elapses. This bit is cleared when the application reads this bit. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Target Time Error status not detected 1b - Timestamp Target Time Error status detected
Sourcepub const fn set_tstrgterr0(&mut self, val: bool)
pub const fn set_tstrgterr0(&mut self, val: bool)
Timestamp Target Time Error. This bit is set when the latest target time programmed in the MAC_PPS0_Target_Time_Seconds and MAC_PPS0_Target_Time_Nanoseconds registers elapses. This bit is cleared when the application reads this bit. Access restriction applies. Clears on read (or this bit is written to 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - Timestamp Target Time Error status not detected 1b - Timestamp Target Time Error status detected
Sourcepub const fn txtssis(&self) -> bool
pub const fn txtssis(&self) -> bool
Read-only. Tx Timestamp Status Interrupt Status. This bit is set when the captured transmit timestamp is updated in the MAC_Tx_Timestamp_Status_Nanoseconds and MAC_Tx_Timestamp_Status_Seconds registers. This bit is cleared when the MAC_Tx_Timestamp_Status_Seconds register is read (or write to MAC_Tx_Timestamp_Status_Seconds register when RCWE bit of MAC_CSR_SW_Ctrl register is set). 0b - Tx Timestamp Status Interrupt status not detected 1b - Tx Timestamp Status Interrupt status detected
Sourcepub const fn set_txtssis(&mut self, val: bool)
pub const fn set_txtssis(&mut self, val: bool)
Read-only. Tx Timestamp Status Interrupt Status. This bit is set when the captured transmit timestamp is updated in the MAC_Tx_Timestamp_Status_Nanoseconds and MAC_Tx_Timestamp_Status_Seconds registers. This bit is cleared when the MAC_Tx_Timestamp_Status_Seconds register is read (or write to MAC_Tx_Timestamp_Status_Seconds register when RCWE bit of MAC_CSR_SW_Ctrl register is set). 0b - Tx Timestamp Status Interrupt status not detected 1b - Tx Timestamp Status Interrupt status detected
Sourcepub const fn atsstn(&self) -> u8
pub const fn atsstn(&self) -> u8
Read-only. Auxiliary Timestamp Snapshot Trigger Identifier. These bits identify the Auxiliary trigger inputs for which the timestamp available in the Auxiliary Snapshot Register is applicable. When more than one bit is set at the same time, it means that corresponding auxiliary triggers were sampled at the same clock. These bits are applicable only if the number of Auxiliary snapshots is more than one. One bit is assigned for each trigger as shown in the following list: - Bit 16: Auxiliary trigger 0 - Bit 17: Auxiliary trigger 1 - Bit 18: Auxiliary trigger 2 - Bit 19: Auxiliary trigger 3 The software can read this register to find the triggers that are set when the timestamp is taken.
Sourcepub const fn set_atsstn(&mut self, val: u8)
pub const fn set_atsstn(&mut self, val: u8)
Read-only. Auxiliary Timestamp Snapshot Trigger Identifier. These bits identify the Auxiliary trigger inputs for which the timestamp available in the Auxiliary Snapshot Register is applicable. When more than one bit is set at the same time, it means that corresponding auxiliary triggers were sampled at the same clock. These bits are applicable only if the number of Auxiliary snapshots is more than one. One bit is assigned for each trigger as shown in the following list: - Bit 16: Auxiliary trigger 0 - Bit 17: Auxiliary trigger 1 - Bit 18: Auxiliary trigger 2 - Bit 19: Auxiliary trigger 3 The software can read this register to find the triggers that are set when the timestamp is taken.
Sourcepub const fn atsstm(&self) -> bool
pub const fn atsstm(&self) -> bool
Read-only. Auxiliary Timestamp Snapshot Trigger Missed. This bit is set when the Auxiliary timestamp snapshot FIFO is full and external trigger was set. This indicates that the latest snapshot is not stored in the FIFO. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected. 0b - Auxiliary Timestamp Snapshot Trigger Missed status not detected 1b - Auxiliary Timestamp Snapshot Trigger Missed status detected
Sourcepub const fn set_atsstm(&mut self, val: bool)
pub const fn set_atsstm(&mut self, val: bool)
Read-only. Auxiliary Timestamp Snapshot Trigger Missed. This bit is set when the Auxiliary timestamp snapshot FIFO is full and external trigger was set. This indicates that the latest snapshot is not stored in the FIFO. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected. 0b - Auxiliary Timestamp Snapshot Trigger Missed status not detected 1b - Auxiliary Timestamp Snapshot Trigger Missed status detected
Sourcepub const fn atsns(&self) -> u8
pub const fn atsns(&self) -> u8
Read-only. Number of Auxiliary Timestamp Snapshots. This field indicates the number of Snapshots available in the FIFO. A value equal to the selected depth of FIFO (4, 8, or 16) indicates that the Auxiliary Snapshot FIFO is full. These bits are cleared (to 00000) when the Auxiliary snapshot FIFO clear bit is set. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected.
Sourcepub const fn set_atsns(&mut self, val: u8)
pub const fn set_atsns(&mut self, val: u8)
Read-only. Number of Auxiliary Timestamp Snapshots. This field indicates the number of Snapshots available in the FIFO. A value equal to the selected depth of FIFO (4, 8, or 16) indicates that the Auxiliary Snapshot FIFO is full. These bits are cleared (to 00000) when the Auxiliary snapshot FIFO clear bit is set. This bit is valid only if the Add IEEE 1588 Auxiliary Snapshot option is selected.
Trait Implementations§
Source§impl Clone for MacTimestampStatus
impl Clone for MacTimestampStatus
Source§fn clone(&self) -> MacTimestampStatus
fn clone(&self) -> MacTimestampStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more