From 620f77ddb79de683befb458f43c30435759ac0e2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 15 Feb 2021 19:18:51 -0500 Subject: msgblock: Add clock estimation helper functions Signed-off-by: Kevin O'Connor --- klippy/chelper/serialqueue.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'klippy/chelper/serialqueue.h') 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); -- cgit v1.2.3-70-g09d2