26 #ifndef _SPINDLE_SYNC_H_
27 #define _SPINDLE_SYNC_H_
void(* stepper_pulse_start_ptr)(stepper_t *stepper)
Pointer to function for setting up steppers for the next step pulse.
Definition: hal.h:287
Definition: spindle_sync.h:45
volatile uint32_t index_count
Definition: spindle_sync.h:48
volatile uint32_t pulse_count
Definition: spindle_sync.h:49
volatile uint32_t last_count
Definition: spindle_sync.h:46
volatile uint32_t last_index
Definition: spindle_sync.h:47
Definition: spindle_sync.h:52
uint32_t tics_per_irq
Definition: spindle_sync.h:60
float rpm_factor
Definition: spindle_sync.h:54
uint32_t maximum_tt
Definition: spindle_sync.h:56
uint32_t ppr
Definition: spindle_sync.h:53
spindle_encoder_timer_t timer
Definition: spindle_sync.h:57
float pulse_distance
Definition: spindle_sync.h:55
volatile bool spin_lock
Definition: spindle_sync.h:61
spindle_encoder_counter_t counter
Definition: spindle_sync.h:58
uint32_t error_count
Definition: spindle_sync.h:59
Definition: spindle_sync.h:33
volatile uint32_t last_pulse
Definition: spindle_sync.h:35
volatile uint32_t pulse_length
Definition: spindle_sync.h:36
volatile uint32_t last_index
Definition: spindle_sync.h:34
Definition: spindle_sync.h:64
float prev_pos
Definition: spindle_sync.h:65
int32_t min_cycles_per_tick
Definition: spindle_sync.h:68
uint_fast8_t segment_id
Definition: spindle_sync.h:69
stepper_pulse_start_ptr stepper_pulse_start_normal
Definition: spindle_sync.h:71
pidf_t pid
Definition: spindle_sync.h:70
float programmed_rate
Definition: spindle_sync.h:67
float steps_per_mm
Definition: spindle_sync.h:66