grblHAL core  20230125
spindle_ptrs_t Struct Reference

Handlers for spindle support. More...

#include <spindle_control.h>

Data Fields

spindle_type_t type
 Spindle type. More...
 
spindle_cap_t cap
 Spindle capabilities. More...
 
uint_fast16_t pwm_off_value
 Value for switching PWM signal off. More...
 
float rpm_min
 Minimum spindle RPM. More...
 
float rpm_max
 Maximum spindle RPM. More...
 
spindle_config_ptr config
 Optional handler for configuring the spindle. More...
 
spindle_set_state_ptr set_state
 Handler for setting spindle state. More...
 
spindle_get_state_ptr get_state
 Handler for getting spindle state. More...
 
spindle_get_pwm_ptr get_pwm
 Handler for calculating spindle PWM value from RPM. More...
 
spindle_update_pwm_ptr update_pwm
 Handler for updating spindle PWM output. More...
 
spindle_update_rpm_ptr update_rpm
 Handler for updating spindle RPM. More...
 
spindle_pulse_on_ptr pulse_on
 Optional handler for Pulses Per Inch (PPI) mode. Required for the laser PPI plugin. More...
 
spindle_get_data_ptr get_data
 Optional handler for getting spindle data. Required for spindle sync. More...
 
spindle_reset_data_ptr reset_data
 Optional handler for resetting spindle data. Required for spindle sync. More...
 

Detailed Description

Handlers for spindle support.

Field Documentation

◆ cap

Spindle capabilities.

◆ config

Optional handler for configuring the spindle.

◆ get_data

Optional handler for getting spindle data. Required for spindle sync.

◆ get_pwm

Handler for calculating spindle PWM value from RPM.

◆ get_state

Handler for getting spindle state.

◆ pulse_on

Optional handler for Pulses Per Inch (PPI) mode. Required for the laser PPI plugin.

◆ pwm_off_value

uint_fast16_t pwm_off_value

Value for switching PWM signal off.

◆ reset_data

Optional handler for resetting spindle data. Required for spindle sync.

◆ rpm_max

float rpm_max

Maximum spindle RPM.

◆ rpm_min

float rpm_min

Minimum spindle RPM.

◆ set_state

Handler for setting spindle state.

◆ type

Spindle type.

◆ update_pwm

Handler for updating spindle PWM output.

◆ update_rpm

Handler for updating spindle RPM.


The documentation for this struct was generated from the following file: