| 12345678910111213141516171819202122 |
- #ifndef _THROTTLE_H__
- #define _THROTTLE_H__
- #define THRO1_5V_ERR_BIT 0x01
- #define THRO2_5V_ERR_BIT 0x02
- #define THRO1_SIG_ERR_BIT 0x04
- #define THRO2_SIG_ERR_BIT 0x08
- #define THRO_NOT_RELEASED 0x10
- void throttle_init(void);
- bool throttle_is_released(void);
- bool throttle_is_all_error(void);
- bool throttle_not_released_err(void);
- u8 throttle_get_errors(void);
- float throttle_get_signal(void);
- void throttle_detect(bool ready);
- bool throttle1_is_error(void);
- bool throttle2_is_error(void);
- float throttle_start_vol(void);
- float throttle_end_vol(void);
- float throttle_vol_range(void);
- #endif /* _THROTTLE_H__ */
|