Skip to content

Struct SYN_TimeSync

ClassList > SYN_TimeSync

Time sync discipline state context (caller-allocated).

  • #include <syn_timesync.h>

Public Attributes

Type Name
uint32_t base_jitter_ns
int32_t drift_ppm
bool has_pps_lock
uint64_t last_pps_ticks
SYN_HPTimestamp last_pps_ts
uint64_t last_utc_sec
uint32_t max_holdover_s
uint32_t pps_count
uint64_t prev_pps_ticks
bool rtc_synced

Public Attributes Documentation

variable base_jitter_ns

uint32_t SYN_TimeSync::base_jitter_ns;

Base reference jitter (default: 50 ns)


variable drift_ppm

int32_t SYN_TimeSync::drift_ppm;

Measured crystal drift in Parts-Per-Million


variable has_pps_lock

bool SYN_TimeSync::has_pps_lock;

true if at least one PPS is bound


variable last_pps_ticks

uint64_t SYN_TimeSync::last_pps_ticks;

Resolved 64-bit ticks at last PPS


variable last_pps_ts

SYN_HPTimestamp SYN_TimeSync::last_pps_ts;

Raw timestamp at last PPS pulse


variable last_utc_sec

uint64_t SYN_TimeSync::last_utc_sec;

Universal UTC second at last PPS


variable max_holdover_s

uint32_t SYN_TimeSync::max_holdover_s;

Max holdover before degrading to RTC


variable pps_count

uint32_t SYN_TimeSync::pps_count;

Total valid PPS updates received


variable prev_pps_ticks

uint64_t SYN_TimeSync::prev_pps_ticks;

Ticks at previous PPS for PPM calculation


variable rtc_synced

bool SYN_TimeSync::rtc_synced;

true if RTC was previously set by GPS



The documentation for this class was generated from the following file src/syntropic/drivers/syn_timesync.h