25#include <interfaces-impl/gpio_impl.h>
26#include <interfaces/delays.h>
27#include <utils/TestUtils/MockGpioPin.h>
56 miosix::GpioPin
enablePin = MockGpioPin());
78 void move(int16_t steps)
override;
This class generates a PWM signal for a chosen number of pulses.
miosix::GpioPin directionPin
miosix::GpioPin enablePin
@ COMMON_CATHODE
All - signals connected to Gnd.
StepperPWM(CountedPWM &pwm, miosix::GpioPin stepPin, miosix::GpioPin directionPin, float speed=1, float stepAngle=1.8, bool revertDirection=false, uint16_t microStep=1, PinConfiguration pinConfiguration=PinConfiguration::COMMON_CATHODE, miosix::GpioPin enablePin=MockGpioPin())
Construct a new StepperPWM object.
float getCurrentDegPosition() override
Returns the current angle of the stepper.
void move(int16_t steps) override
Move the stepper motor by the specified amount of steps.
void setMicroStepping(uint16_t microStep) override
Set the motor driver micro stepping configuration.
void setSpeed(float speed) override
Changes the stepper motor speed.
This file includes all the types the logdecoder script will decode.