![]() |
SimpleFOClibrary 2.4.0
|
#include <StepperDriver.h>
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) | |
Definition at line 7 of file StepperDriver.h.
|
pure virtual |
Set phase state, enable/disable
| sc | - phase A state : active / disabled ( high impedance ) |
| sb | - phase B state : active / disabled ( high impedance ) |
Implemented in StepperDriver2PWM, and StepperDriver4PWM.
|
pure virtual |
Set phase voltages to the hardware
| Ua | phase A voltage |
| Ub | phase B voltage |
Implemented in StepperDriver2PWM, and StepperDriver4PWM.
|
inlineoverridevirtual |