samples.h 658 B

123456789101112131415161718192021222324252627
  1. #ifndef _SAMPLES_H__
  2. #define _SAMPLES_H__
  3. #include "os/os_types.h"
  4. #define MIN_GAS_VALUE 1000.0F
  5. #define MAX_GAS_VALUE 5000.0F
  6. void samples_init(void);
  7. int get_vbus_int(void);
  8. float get_vbus_float(void);
  9. float get_throttle_sfix5(void);
  10. float get_throttle_float(void);
  11. void get_phase_vols(float *uvw);
  12. void sample_uvw_phase(void);
  13. void sample_vbus(void);
  14. void sample_ibus(void);
  15. void sample_throttle(void);
  16. void sample_motor_temp(void);
  17. void sample_mos_temp(void);
  18. s16 get_motor_temp(void);
  19. s16 get_mos_temp(void);
  20. int get_acc_vol(void);
  21. s16 get_mos_temp2(void);
  22. float get_vbus_current(void);
  23. void sample_ibus_offset(u16 offset);
  24. #endif /* _SAMPLES_H__ */