BLDCDriver6PWM(int phA_h, int phA_l, int phB_h, int phB_l, int phC_h, int phC_l, int en=NOT_SET)
int pwmB_l
phase B pwm pin number
float dead_zone
a percentage of dead-time(zone) (both high and low side in low) for each pwm cycle [0,...
int pwmA_l
phase A pwm pin number
int enable_pin
enable pin number
virtual void setPhaseState(PhaseState sa, PhaseState sb, PhaseState sc) override
void setPwm(float Ua, float Ub, float Uc) override
PhaseState phase_state[3]
phase state (active / disabled)
int pwmC_l
phase C 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
void * _configure6PWM(long pwm_frequency, float dead_zone, const int pinA_h, const int pinA_l, const int pinB_h, const int pinB_l, const int pinC_h, const int pinC_l)
#define SIMPLEFOC_DRIVER_INIT_FAILED
void _writeDutyCycle6PWM(float dc_a, float dc_b, float dc_c, PhaseState *phase_state, void *params)
#define _constrain(amt, low, high)