Speeduino
Loading...
Searching...
No Matches
stepper.h
Go to the documentation of this file.
1#pragma once
2
6#include "config_pages.h"
7
8namespace idleController {
9
10namespace detail {
11
13 enum class StepperStatus : uint8_t
14 {
15 OFF,
16 STEPPING,
17 COOLING
18 };
19
26
40}
41}
An output pin that, optionally, can be have it's state inverted.
Definition invertableOutputPin.h:13
A class for output pin operations. Must have same signature as fastOutputPin_t to allow for interchan...
Definition outputPin.h:9
The tune page structs and related defines.
const config4 const config6 const config9 & page9
Definition engineProtection.cpp:172
StepperStatus
Stepper motor status.
Definition stepper.h:14
@ OFF
The motor is not stepping or cooling.
@ COOLING
The motor is in it's cooling phase.
Definition idleController_state.cpp:5
static fastOutputPin_t pins[_countof(coil_pins_t::_M_elems)]
Definition scheduledIO_direct_ign.cpp:10
Definition config_pages.h:578
uint16_t curStep
The current location of the motor.
Definition stepper.h:22
StepperStatus status
What phase the motor is in.
Definition stepper.h:24
uint16_t completedHomeSteps
Number of homing steps completed.
Definition stepper.h:23
Captures the state of the stepper motor.
Definition stepper.h:29
uint16_t targetStep
The target step we want to move to
Definition stepper.h:30
outputPin_t pinStepperEnable
Definition stepper.h:33
invertableOutputPinAdaper_t< outputPin_t > pinStepperDir
Definition stepper.h:35
uint32_t startTime
The time in µS that we started the current phase.
Definition stepper.h:31
outputPin_t pinStepperStep
Definition stepper.h:34
Store the pin assignments, as defined by the board.
Definition pinNumbers_t.h:41