diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-02-15 19:18:51 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-06-09 18:58:35 -0400 |
commit | 620f77ddb79de683befb458f43c30435759ac0e2 (patch) | |
tree | ced439210a3e5885a4c9eaa35b1008586811730b /klippy/chelper/serialqueue.h | |
parent | f938caa0d23f91c6fbf416334441e64e6739bbc7 (diff) | |
download | kutter-620f77ddb79de683befb458f43c30435759ac0e2.tar.gz kutter-620f77ddb79de683befb458f43c30435759ac0e2.tar.xz kutter-620f77ddb79de683befb458f43c30435759ac0e2.zip |
msgblock: Add clock estimation helper functions
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/serialqueue.h')
-rw-r--r-- | klippy/chelper/serialqueue.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/chelper/serialqueue.h b/klippy/chelper/serialqueue.h index 17e14316..62e70403 100644 --- a/klippy/chelper/serialqueue.h +++ b/klippy/chelper/serialqueue.h @@ -30,7 +30,10 @@ void serialqueue_pull(struct serialqueue *sq, struct pull_queue_message *pqm); void serialqueue_set_baud_adjust(struct serialqueue *sq, double baud_adjust); void serialqueue_set_receive_window(struct serialqueue *sq, int receive_window); void serialqueue_set_clock_est(struct serialqueue *sq, double est_freq - , double last_clock_time, uint64_t last_clock); + , double conv_time, uint64_t conv_clock + , uint64_t last_clock); +void serialqueue_get_clock_est(struct serialqueue *sq + , struct clock_estimate *ce); void serialqueue_get_stats(struct serialqueue *sq, char *buf, int len); int serialqueue_extract_old(struct serialqueue *sq, int sentq , struct pull_queue_message *q, int max); |