Precalculated values that may be set/used by HAL driver to speed up RPM to PWM conversions if variable spindle is supported. */. More...
#include <spindle_control.h>
Data Fields | |
uint32_t | f_clock |
spindle_pwm_settings_t * | settings |
uint_fast16_t | period |
uint_fast16_t | off_value |
NOTE: this value holds the inverted version if software PWM inversion is enabled by the driver. More... | |
uint_fast16_t | min_value |
uint_fast16_t | max_value |
float | off_overdrive_pct |
Percent of programmed value to add when turning off enable signal, used when spindle enable is RPM controlled. More... | |
uint_fast16_t | pwm_overdrive |
Adjusted PWM value to use when turning off enable signal, used when spindle enable is RPM controlled. More... | |
spindle_pwm_flags_t | flags |
float | rpm_min |
Minimum spindle RPM. More... | |
float | pwm_gradient |
int_fast16_t | offset |
uint_fast16_t | n_pieces |
pwm_piece_t | piece [SPINDLE_NPWM_PIECES] |
void(* | set_laser_overdrive )(struct spindle_pwm *pwm_data, float pct) |
uint_fast16_t(* | compute_value )(struct spindle_pwm *pwm_data, float rpm, bool pid_limit) |
Precalculated values that may be set/used by HAL driver to speed up RPM to PWM conversions if variable spindle is supported. */.
uint_fast16_t(* compute_value) (struct spindle_pwm *pwm_data, float rpm, bool pid_limit) |
uint32_t f_clock |
spindle_pwm_flags_t flags |
uint_fast16_t max_value |
uint_fast16_t min_value |
uint_fast16_t n_pieces |
float off_overdrive_pct |
Percent of programmed value to add when turning off enable signal, used when spindle enable is RPM controlled.
uint_fast16_t off_value |
NOTE: this value holds the inverted version if software PWM inversion is enabled by the driver.
int_fast16_t offset |
uint_fast16_t period |
pwm_piece_t piece[SPINDLE_NPWM_PIECES] |
float pwm_gradient |
uint_fast16_t pwm_overdrive |
Adjusted PWM value to use when turning off enable signal, used when spindle enable is RPM controlled.
float rpm_min |
Minimum spindle RPM.
void(* set_laser_overdrive) (struct spindle_pwm *pwm_data, float pct) |
spindle_pwm_settings_t* settings |