46 pinMode(
pwmA, OUTPUT);
47 pinMode(
pwmB, OUTPUT);
48 pinMode(
pwmC, OUTPUT);
int enableC_pin
enable pin number
virtual void setPhaseState(PhaseState sa, PhaseState sb, PhaseState sc) override
int pwmA
phase A pwm pin number
BLDCDriver3PWM(int phA, int phB, int phC, int en1=NOT_SET, int en2=NOT_SET, int en3=NOT_SET)
int enableA_pin
enable pin number
int pwmC
phase C pwm pin number
int enableB_pin
enable pin number
void setPwm(float Ua, float Ub, float Uc) override
int pwmB
phase B pwm pin number
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
long pwm_frequency
pwm frequency value in hertz
float voltage_power_supply
power supply voltage
bool initialized
true if driver was successfully initialized
float voltage_limit
limiting voltage set to the motor
bool enable_active_high
enable pin should be set to high to enable the driver (default is HIGH)
void * params
pointer to hardware specific parameters of driver
#define DEF_POWER_SUPPLY
default power supply voltage
#define SIMPLEFOC_DRIVER_INIT_FAILED
void * _configure3PWM(long pwm_frequency, const int pinA, const int pinB, const int pinC)
void _writeDutyCycle3PWM(float dc_a, float dc_b, float dc_c, void *params)
#define _constrain(amt, low, high)