grblHAL core  20250412
stepper Struct Reference

Stepper ISR data struct. Contains the running data for the main stepper ISR. More...

#include <stepper.h>

Data Fields

bool new_block
 Set to true when a new block is started, might be referenced by driver code for advanced functionality. More...
 
axes_signals_t dir_changed
 Per axis bits set to true on direction changes, might be referenced by driver for advanced functionality. More...
 
axes_signals_t step_out
 The stepping signals to be output. More...
 
axes_signals_t dir_out
 The direction signals to be output. The direction signals may be output only when stepper.dir_change is true to reduce overhead. More...
 
uint_fast8_t amass_level
 AMASS level for this segment. More...
 
uint_fast16_t step_count
 Steps remaining in line segment motion. More...
 
uint32_t step_event_count
 Number of step pulse events to be output by this segment. More...
 
steps_t steps
 Number of step pulse event events per axis step pulse generated. More...
 
steps_t counter
 Counter variables for the Bresenham line tracer. More...
 
st_block_texec_block
 Pointer to the block data for the segment being executed. More...
 
segment_texec_segment
 Pointer to the segment being executed. More...
 

Detailed Description

Stepper ISR data struct. Contains the running data for the main stepper ISR.

Field Documentation

◆ amass_level

uint_fast8_t amass_level

AMASS level for this segment.

◆ counter

steps_t counter

Counter variables for the Bresenham line tracer.

◆ dir_changed

axes_signals_t dir_changed

Per axis bits set to true on direction changes, might be referenced by driver for advanced functionality.

◆ dir_out

axes_signals_t dir_out

The direction signals to be output. The direction signals may be output only when stepper.dir_change is true to reduce overhead.

◆ exec_block

st_block_t* exec_block

Pointer to the block data for the segment being executed.

◆ exec_segment

segment_t* exec_segment

Pointer to the segment being executed.

◆ new_block

bool new_block

Set to true when a new block is started, might be referenced by driver code for advanced functionality.

◆ step_count

uint_fast16_t step_count

Steps remaining in line segment motion.

◆ step_event_count

uint32_t step_event_count

Number of step pulse events to be output by this segment.

◆ step_out

axes_signals_t step_out

The stepping signals to be output.

◆ steps

steps_t steps

Number of step pulse event events per axis step pulse generated.


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