mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
Support storing a reference to 'struct stepper_kinematics' in 'struct stepcompress' and support globally generating steps via the steppersync mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
19 lines
701 B
C
19 lines
701 B
C
#ifndef STEPPERSYNC_H
|
|
#define STEPPERSYNC_H
|
|
|
|
#include <stdint.h> // uint64_t
|
|
|
|
struct serialqueue;
|
|
struct steppersync *steppersync_alloc(
|
|
struct serialqueue *sq, struct stepcompress **sc_list, int sc_num
|
|
, int move_num);
|
|
void steppersync_free(struct steppersync *ss);
|
|
void steppersync_set_time(struct steppersync *ss, double time_offset
|
|
, double mcu_freq);
|
|
int32_t steppersync_generate_steps(struct steppersync *ss, double gen_steps_time
|
|
, uint64_t flush_clock);
|
|
void steppersync_history_expire(struct steppersync *ss, uint64_t end_clock);
|
|
int steppersync_flush(struct steppersync *ss, uint64_t move_clock);
|
|
|
|
#endif // steppersync.h
|