foc.h 284 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_pwm_start(bool start);
  7. int foc_hall_detect(float current, u16 *hall_table);
  8. void foc_ramp_speed(float rpm, u32 duration_ms);
  9. #endif /* _FOC_H__ */