Skip to content

Struct SYN_Stepper

ClassList > 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

uint32_t SYN_Stepper::accel;

Acceleration in steps/sec²


variable decel_start

int32_t SYN_Stepper::decel_start;

Step count at which to start decelerating


variable dir_invert

bool SYN_Stepper::dir_invert;

Invert direction logic


variable dir_pin

SYN_GPIO_Pin SYN_Stepper::dir_pin;

Direction control GPIO pin


variable enable_invert

bool SYN_Stepper::enable_invert;

Enable active-low


variable enable_pin

SYN_GPIO_Pin SYN_Stepper::enable_pin;

Optional enable pin (set to -1 if unused)


variable last_step_tick

uint32_t SYN_Stepper::last_step_tick;

Tick (µs) of last step


variable max_speed

uint32_t SYN_Stepper::max_speed;

Maximum speed in steps/sec


variable position

int32_t SYN_Stepper::position;

Current position (steps, signed)


variable speed

uint32_t SYN_Stepper::speed;

Current speed (steps/sec, fixed-point Q16)


variable state

uint8_t SYN_Stepper::state;

SYN_StepperState


variable step_interval

uint32_t SYN_Stepper::step_interval;

Current step interval (µs)


variable step_pin

SYN_GPIO_Pin SYN_Stepper::step_pin;

Step signal GPIO pin


variable step_state

bool SYN_Stepper::step_state;

Current step pin level (for pulse gen)


variable steps_to_go

int32_t SYN_Stepper::steps_to_go;

Remaining steps in current move


variable target

int32_t SYN_Stepper::target;

Target position



The documentation for this class was generated from the following file src/syntropic/motor/syn_stepper.h