embassy-ptp-driver

Crates

git

Versions

default

Flavors

Skip to main content

Crate embassy_ptp_driver

Crate embassy_ptp_driver 

Source
Expand description

§embassy-ptp-driver

This crate defines the common timestamp type and adjustable clock trait for PTP hardware clocks. Hardware implementations and clock-synchronization engines can depend on this crate without depending on each other or on embassy-net.

Packet timestamp transport and its timestamp type remain independently owned by embassy-net-driver. An integration crate may convert between timestamps when the packet timestamp source and adjustable clock are the same hardware time domain.

The clock here is also distinct from embassy-time-driver: executor time is a global, monotonic scheduling clock, while a PTP hardware clock has an arbitrary epoch and is adjusted while it is being synchronized.

§Interoperability

This crate can run on any executor.

Structs§

ScaledPpm
A signed frequency adjustment in parts per million with 16 fractional bits.
Timestamp
A reading of a PTP hardware clock.

Traits§

Clock
A readable and adjustable PTP hardware clock.