samples.h 832 B

12345678910111213141516171819202122232425262728293031
  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_filtered(float *uvw);
  9. void sample_uvw_phase(void);
  10. void sample_vbus(void);
  11. void sample_ibus(void);
  12. void sample_throttle(void);
  13. s16 sample_motor_temp(void);
  14. s16 sample_mos_temp(void);
  15. void sample_vref(void);
  16. s16 get_motor_temp_raw(void);
  17. s16 get_mos_temp_raw(void);
  18. int get_acc_vol(void);
  19. float get_vbus_current(void);
  20. void sample_ibus_offset(u16 offset);
  21. float get_adc_vref(void);
  22. float get_thro2_5v_float(void);
  23. float get_thro_5v_float(void);
  24. float get_throttle2_float(void);
  25. void get_uvw_phases_raw(float *uvw_raw);
  26. float sample_ibus_raw(void);
  27. float sample_acc_vol_raw(void);
  28. float sample_vbus_raw(void);
  29. #endif /* _SAMPLES_H__ */