Skip to main content

Module refclock

Module refclock 

Source
Expand description

Reference-clock samples: what a GPS, a PPS edge or a PTP hardware clock hands us, and what must be true before any of it is believed.

Portable on purpose. The transports differ wildly per platform — SysV shared memory, a Unix datagram, an ioctl on a character device — but what arrives is always the same shape: “at my time T, the reference said R”. Deciding whether that pairing is usable is arithmetic, and it belongs here where it can be tested without a GPS on the desk.

Structs§

RefclockSample
One reading from a reference clock.

Enums§

LeapWarning
RefclockError

Constants§

MAX_REFCLOCK_OFFSET_S
The widest offset a reference clock may imply before we refuse it.