SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
BLDCDriver Class Referenceabstract

#include <BLDCDriver.h>

Inheritance diagram for BLDCDriver:
[legend]
Collaboration diagram for BLDCDriver:
[legend]

Public Member Functions

virtual void setPwm (float Ua, float Ub, float Uc)=0
 
virtual void setPhaseState (PhaseState sa, PhaseState sb, PhaseState sc)=0
 
virtual DriverType type () override
 
- Public Member Functions inherited from FOCDriver
virtual int init ()=0
 
virtual void enable ()=0
 
virtual void disable ()=0
 

Public Attributes

float dc_a
 currently set duty cycle on phaseA
 
float dc_b
 currently set duty cycle on phaseB
 
float dc_c
 currently set duty cycle on phaseC
 
- 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)
 

Detailed Description

Definition at line 7 of file BLDCDriver.h.

Member Function Documentation

◆ setPhaseState()

virtual void BLDCDriver::setPhaseState ( PhaseState  sa,
PhaseState  sb,
PhaseState  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 BLDCDriver3PWM, and BLDCDriver6PWM.

Here is the caller graph for this function:

◆ setPwm()

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

Set phase voltages to the hardware

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

Implemented in BLDCDriver3PWM, and BLDCDriver6PWM.

Here is the caller graph for this function:

◆ type()

virtual DriverType BLDCDriver::type ( )
inlineoverridevirtual

driver type getter function

Implements FOCDriver.

Definition at line 33 of file BLDCDriver.h.

Member Data Documentation

◆ dc_a

float BLDCDriver::dc_a

currently set duty cycle on phaseA

Definition at line 10 of file BLDCDriver.h.

◆ dc_b

float BLDCDriver::dc_b

currently set duty cycle on phaseB

Definition at line 11 of file BLDCDriver.h.

◆ dc_c

float BLDCDriver::dc_c

currently set duty cycle on phaseC

Definition at line 12 of file BLDCDriver.h.


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