SimpleFOClibrary  2.1
BLDCDriver.h
Go to the documentation of this file.
1 #ifndef BLDCDRIVER_H
2 #define BLDCDRIVER_H
3 
4 #include "Arduino.h"
5 
6 class BLDCDriver{
7  public:
8 
10  virtual int init() = 0;
12  virtual void enable() = 0;
14  virtual void disable() = 0;
15 
18  float voltage_limit;
19 
20 
21  float dc_a;
22  float dc_b;
23  float dc_c;
24 
32  virtual void setPwm(float Ua, float Ub, float Uc) = 0;
33 
41  virtual void setPhaseState(int sa, int sb, int sc) = 0;
42 };
43 
44 #endif
BLDCDriver
Definition: BLDCDriver.h:6
BLDCDriver::voltage_limit
float voltage_limit
limiting voltage set to the motor
Definition: BLDCDriver.h:18
BLDCDriver::dc_c
float dc_c
currently set duty cycle on phaseC
Definition: BLDCDriver.h:23
BLDCDriver::voltage_power_supply
float voltage_power_supply
power supply voltage
Definition: BLDCDriver.h:17
BLDCDriver::setPwm
virtual void setPwm(float Ua, float Ub, float Uc)=0
BLDCDriver::pwm_frequency
long pwm_frequency
pwm frequency value in hertz
Definition: BLDCDriver.h:16
BLDCDriver::dc_a
float dc_a
currently set duty cycle on phaseA
Definition: BLDCDriver.h:21
BLDCDriver::init
virtual int init()=0
BLDCDriver::dc_b
float dc_b
currently set duty cycle on phaseB
Definition: BLDCDriver.h:22
BLDCDriver::disable
virtual void disable()=0
BLDCDriver::enable
virtual void enable()=0
BLDCDriver::setPhaseState
virtual void setPhaseState(int sa, int sb, int sc)=0