Struct SYN_Stepper¶
Stepper motor controller context.
#include <syn_stepper.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint32_t | accel |
| int32_t | decel_start |
| bool | dir_invert |
| SYN_GPIO_Pin | dir_pin |
| bool | enable_invert |
| SYN_GPIO_Pin | enable_pin |
| uint32_t | last_step_tick |
| uint32_t | max_speed |
| int32_t | position |
| uint32_t | speed |
| uint8_t | state |
| uint32_t | step_interval |
| SYN_GPIO_Pin | step_pin |
| bool | step_state |
| int32_t | steps_to_go |
| int32_t | target |
Public Attributes Documentation¶
variable accel¶
Acceleration in steps/sec²
variable decel_start¶
Step count at which to start decelerating
variable dir_invert¶
Invert direction logic
variable dir_pin¶
Direction control GPIO pin
variable enable_invert¶
Enable active-low
variable enable_pin¶
Optional enable pin (set to -1 if unused)
variable last_step_tick¶
Tick (µs) of last step
variable max_speed¶
Maximum speed in steps/sec
variable position¶
Current position (steps, signed)
variable speed¶
Current speed (steps/sec, fixed-point Q16)
variable state¶
SYN_StepperState
variable step_interval¶
Current step interval (µs)
variable step_pin¶
Step signal GPIO pin
variable step_state¶
Current step pin level (for pulse gen)
variable steps_to_go¶
Remaining steps in current move
variable target¶
Target position
The documentation for this class was generated from the following file src/syntropic/motor/syn_stepper.h