throttle.h 542 B

1234567891011121314151617181920
  1. #ifndef _THROTTLE_H__
  2. #define _THROTTLE_H__
  3. #define THRO1_5V_ERR_BIT 0x01
  4. #define THRO2_5V_ERR_BIT 0x02
  5. #define THRO1_SIG_ERR_BIT 0x04
  6. #define THRO2_SIG_ERR_BIT 0x08
  7. void throttle_init(void);
  8. bool throttle_is_released(void);
  9. bool throttle_is_all_error(void);
  10. u8 throttle_get_errors(void);
  11. float throttle_get_signal(void);
  12. void throttle_detect(bool ready);
  13. bool throttle1_is_error(void);
  14. bool throttle2_is_error(void);
  15. float throttle_start_vol(void);
  16. float throttle_end_vol(void);
  17. float throttle_vol_range(void);
  18. #endif /* _THROTTLE_H__ */