grblHAL core  20241107
stepper Struct Reference

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

#include <stepper.h>

Data Fields

uint32_t counter_x
 Counter variable for the Bresenham line tracer, X-axis. More...
 
uint32_t counter_y
 Counter variable for the Bresenham line tracer, Y-axis. More...
 
uint32_t counter_z
 < Counter variable for the Bresenham line tracer, Z-axis More...
 
bool new_block
 Set to true when a new block is started, might be referenced by driver code for advanced functionality. More...
 
bool dir_change
 Set to true on direction changes, might be referenced by driver for advanced functionality. More...
 
axes_signals_t step_outbits
 The stepping signals to be output. More...
 
axes_signals_t dir_outbits
 The direction signals to be output. The direction signals may be output only when stepper::dir_change is true to reduce overhead. More...
 
uint32_t steps [N_AXIS]
 Number of step pulse event events per axis step pulse generated. 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...
 
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_x

uint32_t counter_x

Counter variable for the Bresenham line tracer, X-axis.

◆ counter_y

uint32_t counter_y

Counter variable for the Bresenham line tracer, Y-axis.

◆ counter_z

uint32_t counter_z

< Counter variable for the Bresenham line tracer, Z-axis

◆ dir_change

bool dir_change

Set to true on direction changes, might be referenced by driver for advanced functionality.

◆ dir_outbits

axes_signals_t dir_outbits

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_outbits

axes_signals_t step_outbits

The stepping signals to be output.

◆ steps

uint32_t steps[N_AXIS]

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


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