SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
StepperDriver Class Referenceabstract

#include <StepperDriver.h>

Inheritance diagram for StepperDriver:
[legend]
Collaboration diagram for StepperDriver:
[legend]

Public Member Functions

virtual void setPwm (float Ua, float Ub)=0
 
virtual void setPhaseState (PhaseState sa, PhaseState sb)=0
 
virtual DriverType type () override
 
- Public Member Functions inherited from FOCDriver
virtual int init ()=0
 
virtual void enable ()=0
 
virtual void disable ()=0
 

Additional Inherited Members

- Public Attributes inherited from FOCDriver
long pwm_frequency
 pwm frequency value in hertz
 
float voltage_power_supply
 power supply voltage
 
float voltage_limit
 limiting voltage set to the motor
 
bool initialized = false
 true if driver was successfully initialized
 
void * params = 0
 pointer to hardware specific parameters of driver
 
bool enable_active_high = true
 enable pin should be set to high to enable the driver (default is HIGH)
 

Detailed Description

Definition at line 7 of file StepperDriver.h.

Member Function Documentation

◆ setPhaseState()

virtual void StepperDriver::setPhaseState ( PhaseState  sa,
PhaseState  sb 
)
pure virtual

Set phase state, enable/disable

Parameters
sc- phase A state : active / disabled ( high impedance )
sb- phase B state : active / disabled ( high impedance )

Implemented in StepperDriver2PWM, and StepperDriver4PWM.

◆ setPwm()

virtual void StepperDriver::setPwm ( float  Ua,
float  Ub 
)
pure virtual

Set phase voltages to the hardware

Parameters
Uaphase A voltage
Ubphase B voltage

Implemented in StepperDriver2PWM, and StepperDriver4PWM.

Here is the caller graph for this function:

◆ type()

virtual DriverType StepperDriver::type ( )
inlineoverridevirtual

driver type getter function

Implements FOCDriver.

Definition at line 27 of file StepperDriver.h.


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