button.h 938 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __button_H
  2. #define __button_H
  3. struct button_state_t {
  4. rt_uint8_t b1;
  5. rt_uint8_t b2;
  6. rt_uint8_t b3;
  7. rt_uint8_t b4;
  8. rt_uint8_t b5;
  9. rt_uint8_t b6;
  10. rt_uint8_t b7;
  11. };
  12. extern struct button_state_t button_state;
  13. extern uint32_t WeightConst_JZZ; //校正称量的当前位
  14. extern uint8_t WeightConst_JZZ_; //校正称量的当前位
  15. extern uint32_t WeightConst_ZD; //最大称量值
  16. extern uint8_t WeightConst_ZD_; //最大称量的当前位
  17. extern uint32_t Maxval;
  18. extern uint8_t CanButton;
  19. extern void alarm_off(void);
  20. extern void alarm_on(void);
  21. extern void pwr_lock_off(void);
  22. extern void pwr_lock_on(void);
  23. extern void output1_off(void);
  24. extern void output1_on(void);
  25. extern void output2_off(void);
  26. extern void output2_on(void);
  27. extern void AT_off(void);
  28. extern void AT_on(void);
  29. extern void beep(void);
  30. extern void MenuButtonthread(void);
  31. extern void Button_thread(void);
  32. extern void thread_beep_init(void);
  33. #endif