-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored clock and filter interfaces.
- Loading branch information
1 parent
d854419
commit 2065d1e
Showing
4 changed files
with
197 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
use crate::time::{Duration, Time}; | ||
|
||
/// A single measurement as produced by a PTP port. | ||
#[derive(Debug, Clone, Copy, Eq, PartialEq)] | ||
/// Depending on what trigerred the measurements, not | ||
/// all fields will be populated | ||
#[derive(Default, Clone, Copy, Debug, Eq, PartialEq)] | ||
pub struct Measurement { | ||
/// Time this measurement was made. | ||
pub event_time: Time, | ||
/// Offset to the remote PTP node. | ||
pub master_offset: Duration, | ||
pub offset: Option<Duration>, | ||
/// Delay to the remote PTP node. | ||
pub delay: Option<Duration>, | ||
/// Raw offset calculated from a sync message | ||
pub raw_sync_offset: Option<Duration>, | ||
/// Raw offset calculated from a delay message | ||
pub raw_delay_offset: Option<Duration>, | ||
} |
Oops, something went wrong.