Skip to main content

rtime_ptp/
lib.rs

1//! PTP / IEEE 1588 (Precision Time Protocol) implementation for the
2//! [rTime](https://github.com/ZerosAndOnesLLC/rTime) time synchronization daemon.
3//!
4//! Covers the message codec, the Best Master Clock Algorithm (BMCA), the datasets that
5//! describe a PTP port and clock, and the end-to-end delay computation used to derive offset
6//! from `Sync`/`Follow_Up`/`Delay_Req`/`Delay_Resp` exchanges.
7//!
8//! # Modules
9//!
10//! - [`message`] — PTP message header and body codec.
11//! - [`announce`] — `Announce` message handling.
12//! - [`bmca`] — Best Master Clock Algorithm (dataset comparison and master selection).
13//! - [`dataset`] — default/current/parent/time-properties datasets.
14//! - [`delay`] — end-to-end delay and offset computation.
15//! - [`port`] — PTP port state machine.
16//! - [`tlv`] — TLV (type-length-value) extension encoding.
17
18pub mod announce;
19pub mod bmca;
20pub mod dataset;
21pub mod delay;
22pub mod message;
23pub mod port;
24pub mod tlv;