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_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 | rpm_min |
Minimum spindle RPM. More... | |
float | pwm_gradient |
bool | invert_pwm |
deprecated, use bit in flags instead More... | |
bool | always_on |
deprecated, use bit in flags instead More... | |
bool | cloned |
deprecated, use bit in flags instead More... | |
spindle_pwm_flags_t | flags |
int_fast16_t | offset |
uint_fast16_t | n_pieces |
pwm_piece_t | piece [SPINDLE_NPWM_PIECES] |
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. */.
bool always_on |
deprecated, use bit in flags instead
bool cloned |
deprecated, use bit in flags instead
uint_fast16_t(* compute_value) (struct spindle_pwm *pwm_data, float rpm, bool pid_limit) |
uint32_t f_clock |
spindle_pwm_flags_t flags |
bool invert_pwm |
deprecated, use bit in flags instead
uint_fast16_t max_value |
uint_fast16_t min_value |
uint_fast16_t n_pieces |
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 |
float rpm_min |
Minimum spindle RPM.
spindle_settings_t* settings |