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§
- Refclock
Sample - One reading from a reference clock.
Enums§
Constants§
- MAX_
REFCLOCK_ OFFSET_ S - The widest offset a reference clock may imply before we refuse it.