foc.h 281 B

12345678910111213
  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_motor_spin(dq_t *dq_v, float angle);
  7. void foc_start_pwm(bool start);
  8. int foc_hall_detect(float current, u16 *hall_table);
  9. #endif /* _FOC_H__ */