![]() |
SimpleFOClibrary
2.1
|
#include <BLDCDriver.h>
Public Member Functions | |
| virtual int | init ()=0 |
| virtual void | enable ()=0 |
| virtual void | disable ()=0 |
| virtual void | setPwm (float Ua, float Ub, float Uc)=0 |
| virtual void | setPhaseState (int sa, int sb, int sc)=0 |
Public Attributes | |
| long | pwm_frequency |
| pwm frequency value in hertz More... | |
| float | voltage_power_supply |
| power supply voltage More... | |
| float | voltage_limit |
| limiting voltage set to the motor More... | |
| float | dc_a |
| currently set duty cycle on phaseA More... | |
| float | dc_b |
| currently set duty cycle on phaseB More... | |
| float | dc_c |
| currently set duty cycle on phaseC More... | |
Definition at line 6 of file BLDCDriver.h.
|
pure virtual |
Disable hardware
Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.
|
pure virtual |
Enable hardware
Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.
|
pure virtual |
Initialise hardware
Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.
|
pure virtual |
Set phase state, enable/disable
| sc | - phase A state : active / disabled ( high impedance ) |
| sb | - phase B state : active / disabled ( high impedance ) |
| sa | - phase C state : active / disabled ( high impedance ) |
Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.
|
pure virtual |
Set phase voltages to the harware
| Ua | - phase A voltage |
| Ub | - phase B voltage |
| Uc | - phase C voltage |
Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.
| float BLDCDriver::dc_a |
currently set duty cycle on phaseA
Definition at line 21 of file BLDCDriver.h.
| float BLDCDriver::dc_b |
currently set duty cycle on phaseB
Definition at line 22 of file BLDCDriver.h.
| float BLDCDriver::dc_c |
currently set duty cycle on phaseC
Definition at line 23 of file BLDCDriver.h.
| long BLDCDriver::pwm_frequency |
pwm frequency value in hertz
Definition at line 16 of file BLDCDriver.h.
| float BLDCDriver::voltage_limit |
limiting voltage set to the motor
Definition at line 18 of file BLDCDriver.h.
| float BLDCDriver::voltage_power_supply |
power supply voltage
Definition at line 17 of file BLDCDriver.h.