samples.h 843 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _SAMPLES_H__
  2. #define _SAMPLES_H__
  3. #include "os/os_types.h"
  4. void samples_init(void);
  5. int get_vbus_int(void);
  6. float get_vbus_float(void);
  7. float get_throttle_float(void);
  8. void get_phase_vols(float *uvw);
  9. void sample_uvw_phase(void);
  10. void sample_vbus(void);
  11. void sample_ibus(void);
  12. void sample_throttle(void);
  13. void sample_motor_temp(void);
  14. void sample_mos_temp(void);
  15. void sample_vref(void);
  16. s16 get_motor_temp(void);
  17. s16 get_mos_temp(void);
  18. int get_acc_vol(void);
  19. s16 get_mos_temp2(void);
  20. float get_vbus_current(void);
  21. void sample_ibus_offset(u16 offset);
  22. float get_adc_vref(void);
  23. float get_thro2_5v_float(void);
  24. float get_thro_5v_float(void);
  25. float get_throttle2_float(void);
  26. void sample_uvw_phases_raw(s16 *uvw_raw);
  27. float sample_ibus_raw(void);
  28. float sample_acc_vol_raw(void);
  29. float sample_vbus_raw(void);
  30. #endif /* _SAMPLES_H__ */