limit.h 314 B

123456789101112131415161718
  1. #ifndef _Limit_H__
  2. #define _Limit_H__
  3. #include "os/os_types.h"
  4. #define HW_LIMIT_NONE ((u16)0xFFFF)
  5. typedef struct {
  6. u16 limit_value;
  7. s16 enter_pointer;
  8. s16 exit_pointer;
  9. u32 ticks;
  10. bool is_limit;
  11. }limter_t;
  12. u16 torque_temp_high_limit(void);
  13. u16 vbus_current_vol_lower_limit(void);
  14. #endif /* _Limit_H__ */