samples.h 411 B

123456789101112131415161718
  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_throttle(void);
  15. #endif /* _SAMPLES_H__ */