1
0

st02d.h 494 B

123456789101112131415161718192021222324252627
  1. #ifndef __ST02D_H__
  2. #define __ST02D_H__
  3. #include <stdint.h>
  4. typedef enum
  5. {
  6. OFF = 0,
  7. ON
  8. } SwitchStatus;
  9. typedef void (*ST02D_CallbackFunc) (char *arg);
  10. void ST02D_Init(void);
  11. // void Button_Left_Read_Data(ST02D_CallbackFunc func);
  12. // void Button_Right_Read_Data(ST02D_CallbackFunc func);
  13. uint8_t Button_Left_Read_Data(void);
  14. uint8_t Button_Right_Read_Data(void);
  15. void BeepStatusSet(SwitchStatus status);
  16. void LedWarnStatusSet(SwitchStatus status);
  17. #endif