foc.h 235 B

123456789101112
  1. #ifndef _FOC_H__
  2. #define _FOC_H__
  3. #include "foc/foc_type.h"
  4. void foc_init(void);
  5. void set_dq_voltage(float d_v, float q_v);
  6. void foc_start_pwm(bool start);
  7. int foc_hall_detect(float current, u16 *hall_table);
  8. #endif /* _FOC_H__ */