|
Voyant API 0.16.0
|
#include <voyant_types_ffi.hpp>
Public Attributes | |
| SyncQuality | quality |
| uint8_t | valid |
| int64_t | offset_ns |
| int64_t | round_trip_ns |
| int64_t | jitter_ns |
| uint32_t | sample_count |
| uint64_t | age_ms |
Snapshot of time-sync health, derived from a rolling window of measurements.
Plain scalar fields (no Instant/Duration) and #[repr(C)] so it crosses the C++ FFI unchanged, like [super::SensorState]. Booleans are represented as u8 (0 = false, nonzero = true) for C ABI safety.
| uint64_t TimeSyncState::age_ms |
Milliseconds since the last fresh measurement (u64::MAX when never measured).
| int64_t TimeSyncState::jitter_ns |
Standard deviation of the offset over the rolling window, nanoseconds.
| int64_t TimeSyncState::offset_ns |
Most recent host−FPGA clock difference, nanoseconds (>0 ⇒ the FPGA clock is behind).
| SyncQuality TimeSyncState::quality |
| int64_t TimeSyncState::round_trip_ns |
Round-trip of the kept read for the latest measurement, nanoseconds (the smallest of the reads taken; bounds the measurement uncertainty).
| uint32_t TimeSyncState::sample_count |
Number of measurements currently in the rolling window.
| uint8_t TimeSyncState::valid |
Nonzero when the latest measurement is fresh (within the manager's stale window).