throttle.h 416 B

12345678910111213141516
  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. bool throttle_is_released(void);
  8. bool throttle_is_all_error(void);
  9. u8 throttle_get_errors(void);
  10. float throttle_get_signal(void);
  11. void throttle_detect(void);
  12. bool throttle1_is_error(void);
  13. bool throttle2_is_error(void);
  14. #endif /* _THROTTLE_H__ */