|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| struct | Lcg |
| Deterministic LCG so jitter sequences are reproducible. More... | |
Functions | |
| TimeSyncConfig | default_cfg () |
| uint64_t | absdiff (uint64_t a, uint64_t b) |
| |a-b| for uint64 without underflow. | |
| void | test_spreading () |
| void | test_min_filter_jitter () |
| void | test_drift () |
| void | test_reboot () |
| void | test_wrap_between_packets () |
| void | test_wrap_mid_packet () |
| void | test_clamp_fallback () |
| void | test_monotonic_guard () |
| void | test_multi_board () |
| void | test_arrival_mode () |
| void | test_fuzz_invariants () |
Variables | |
| constexpr uint64_t | NS_MS = 1000000ULL |
| constexpr uint64_t | EPOCH = 1800000000000000000ULL |
| constexpr uint64_t | U32_WRAP = 4294967296ULL |
| uint64_t anonymous_namespace{test_board_clock_sync.cpp}::absdiff | ( | uint64_t | a, |
| uint64_t | b ) |
|a-b| for uint64 without underflow.
Definition at line 55 of file test_board_clock_sync.cpp.
Referenced by test_drift(), test_min_filter_jitter(), and test_spreading().
| TimeSyncConfig anonymous_namespace{test_board_clock_sync.cpp}::default_cfg | ( | ) |
Definition at line 44 of file test_board_clock_sync.cpp.
References fsw::time::TimeSyncConfig::BoardClock.
Referenced by test_arrival_mode(), test_clamp_fallback(), test_drift(), test_fuzz_invariants(), test_min_filter_jitter(), test_monotonic_guard(), test_multi_board(), test_reboot(), test_spreading(), test_wrap_between_packets(), and test_wrap_mid_packet().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_arrival_mode | ( | ) |
Definition at line 276 of file test_board_clock_sync.cpp.
References fsw::time::TimeSyncConfig::Arrival, CHECK, fsw::time::BoardClockSync::BoardStats::clamp_fallbacks, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_clamp_fallback | ( | ) |
Definition at line 215 of file test_board_clock_sync.cpp.
References CHECK, fsw::time::BoardClockSync::BoardStats::clamp_fallbacks, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_drift | ( | ) |
Definition at line 122 of file test_board_clock_sync.cpp.
References absdiff(), CHECK, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_fuzz_invariants | ( | ) |
Definition at line 289 of file test_board_clock_sync.cpp.
References anonymous_namespace{test_board_clock_sync.cpp}::Lcg::below(), CHECK, chunks, default_cfg(), EPOCH, NS_MS, and fsw::time::BoardClockSync::stamp_packet().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_min_filter_jitter | ( | ) |
Definition at line 89 of file test_board_clock_sync.cpp.
References absdiff(), CHECK, default_cfg(), EPOCH, fsw::time::BoardClockSync::BoardStats::jitter_ms, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_monotonic_guard | ( | ) |
Definition at line 237 of file test_board_clock_sync.cpp.
References CHECK, default_cfg(), EPOCH, NS_MS, and fsw::time::BoardClockSync::stamp_packet().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_multi_board | ( | ) |
Definition at line 251 of file test_board_clock_sync.cpp.
References CHECK, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_reboot | ( | ) |
Definition at line 146 of file test_board_clock_sync.cpp.
References CHECK, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_spreading | ( | ) |
Definition at line 74 of file test_board_clock_sync.cpp.
References absdiff(), CHECK, default_cfg(), EPOCH, fsw::time::BoardClockSync::BoardStats::locked, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), and fsw::time::BoardClockSync::stats().
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_wrap_between_packets | ( | ) |
Definition at line 176 of file test_board_clock_sync.cpp.
References CHECK, fsw::time::BoardClockSync::BoardStats::clamp_fallbacks, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), fsw::time::BoardClockSync::stats(), and U32_WRAP.
Referenced by main().
| void anonymous_namespace{test_board_clock_sync.cpp}::test_wrap_mid_packet | ( | ) |
Definition at line 198 of file test_board_clock_sync.cpp.
References CHECK, fsw::time::BoardClockSync::BoardStats::clamp_fallbacks, default_cfg(), EPOCH, NS_MS, fsw::time::BoardClockSync::BoardStats::resyncs, fsw::time::BoardClockSync::stamp_packet(), fsw::time::BoardClockSync::stats(), and U32_WRAP.
Referenced by main().
|
constexpr |
Definition at line 41 of file test_board_clock_sync.cpp.
Referenced by test_arrival_mode(), test_clamp_fallback(), test_drift(), test_fuzz_invariants(), test_min_filter_jitter(), test_monotonic_guard(), test_multi_board(), test_reboot(), test_spreading(), test_wrap_between_packets(), and test_wrap_mid_packet().
|
constexpr |
Definition at line 40 of file test_board_clock_sync.cpp.
Referenced by test_arrival_mode(), test_clamp_fallback(), test_drift(), test_fuzz_invariants(), test_min_filter_jitter(), test_monotonic_guard(), test_multi_board(), test_reboot(), test_spreading(), test_wrap_between_packets(), and test_wrap_mid_packet().
|
constexpr |
Definition at line 42 of file test_board_clock_sync.cpp.
Referenced by test_wrap_between_packets(), and test_wrap_mid_packet().