SimpleFOClibrary  2.1
BLDCDriver Class Referenceabstract

#include <BLDCDriver.h>

Inheritance diagram for BLDCDriver:
BLDCDriver3PWM BLDCDriver6PWM

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...
 

Detailed Description

Definition at line 6 of file BLDCDriver.h.

Member Function Documentation

◆ disable()

virtual void BLDCDriver::disable ( )
pure virtual

Disable hardware

Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.

◆ enable()

virtual void BLDCDriver::enable ( )
pure virtual

Enable hardware

Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.

◆ init()

virtual int BLDCDriver::init ( )
pure virtual

Initialise hardware

Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.

◆ setPhaseState()

virtual void BLDCDriver::setPhaseState ( int  sa,
int  sb,
int  sc 
)
pure virtual

Set phase state, enable/disable

Parameters
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.

◆ setPwm()

virtual void BLDCDriver::setPwm ( float  Ua,
float  Ub,
float  Uc 
)
pure virtual

Set phase voltages to the harware

Parameters
Ua- phase A voltage
Ub- phase B voltage
Uc- phase C voltage

Implemented in BLDCDriver6PWM, and BLDCDriver3PWM.

Member Data Documentation

◆ dc_a

float BLDCDriver::dc_a

currently set duty cycle on phaseA

Definition at line 21 of file BLDCDriver.h.

◆ dc_b

float BLDCDriver::dc_b

currently set duty cycle on phaseB

Definition at line 22 of file BLDCDriver.h.

◆ dc_c

float BLDCDriver::dc_c

currently set duty cycle on phaseC

Definition at line 23 of file BLDCDriver.h.

◆ pwm_frequency

long BLDCDriver::pwm_frequency

pwm frequency value in hertz

Definition at line 16 of file BLDCDriver.h.

◆ voltage_limit

float BLDCDriver::voltage_limit

limiting voltage set to the motor

Definition at line 18 of file BLDCDriver.h.

◆ voltage_power_supply

float BLDCDriver::voltage_power_supply

power supply voltage

Definition at line 17 of file BLDCDriver.h.


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