mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 01:01:06 -07:00
stepcompress: Add some comments on internal structs
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0a43774432
commit
6d7d3403e4
1 changed files with 5 additions and 0 deletions
|
|
@ -28,10 +28,13 @@
|
|||
#define CHECK_LINES 1
|
||||
#define QUEUE_START_SIZE 1024
|
||||
|
||||
// Storage for queuing steps (only lower 32 bits of step clock are stored as
|
||||
// optimization to reduce memory, improve cache usage, and reduce 64 bit ops)
|
||||
struct qstep {
|
||||
uint32_t clock32;
|
||||
};
|
||||
|
||||
// Main stepcompress object storage
|
||||
struct stepcompress {
|
||||
// Buffer management
|
||||
struct qstep *queue, *queue_end, *queue_pos, *queue_next;
|
||||
|
|
@ -52,12 +55,14 @@ struct stepcompress {
|
|||
struct list_head history_list;
|
||||
};
|
||||
|
||||
// Parameters of a single queue_step command
|
||||
struct step_move {
|
||||
uint32_t interval;
|
||||
uint16_t count;
|
||||
int16_t add;
|
||||
};
|
||||
|
||||
// Storage for internal history of recently sent queue_step commands
|
||||
struct history_steps {
|
||||
struct list_node node;
|
||||
uint64_t first_clock, last_clock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue