![]() |
SimpleFOClibrary 2.4.0
|
#include <FOCDriver.h>
Public Member Functions | |
| virtual int | init ()=0 |
| virtual void | enable ()=0 |
| virtual void | disable ()=0 |
| virtual DriverType | type ()=0 |
Public Attributes | |
| 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) | |
FOC driver class
Definition at line 25 of file FOCDriver.h.
|
pure virtual |
Disable hardware
Implemented in BLDCDriver3PWM, BLDCDriver6PWM, StepperDriver2PWM, and StepperDriver4PWM.
|
pure virtual |
Enable hardware
Implemented in BLDCDriver3PWM, BLDCDriver6PWM, StepperDriver2PWM, and StepperDriver4PWM.
|
pure virtual |
Initialise hardware
Implemented in BLDCDriver3PWM, BLDCDriver6PWM, StepperDriver2PWM, and StepperDriver4PWM.
|
pure virtual |
get the driver type
Implemented in BLDCDriver, and StepperDriver.
| bool FOCDriver::enable_active_high = true |
enable pin should be set to high to enable the driver (default is HIGH)
Definition at line 42 of file FOCDriver.h.
| bool FOCDriver::initialized = false |
true if driver was successfully initialized
Definition at line 39 of file FOCDriver.h.
| void* FOCDriver::params = 0 |
pointer to hardware specific parameters of driver
Definition at line 40 of file FOCDriver.h.
| long FOCDriver::pwm_frequency |
pwm frequency value in hertz
Definition at line 35 of file FOCDriver.h.
| float FOCDriver::voltage_limit |
limiting voltage set to the motor
Definition at line 37 of file FOCDriver.h.
| float FOCDriver::voltage_power_supply |
power supply voltage
Definition at line 36 of file FOCDriver.h.