hook.h 642 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __HOOK_H_
  2. #define __HOOK_H_
  3. #include "pt.h"
  4. /*
  5. 用于辅助UI某些需要做等待条件的状态机
  6. */
  7. typedef struct{
  8. unsigned char status;//0空闲 否则忙
  9. unsigned char type;//需要辅助工作类型
  10. unsigned char machine;//工作状态机
  11. }ASSIST_DEF;
  12. extern ASSIST_DEF uiAssist;
  13. extern unsigned char assistResult;
  14. void enableDataSend(void);
  15. char isSendDataEnable(void);
  16. void powerSaveHandle(void);
  17. void onStartCtl(void);
  18. void SwitchGroupPre(void);
  19. void SwitchVoicePre(char type);
  20. void SwitchVoiceCtrl(void);
  21. void UiassistStart(unsigned char type,unsigned char machine);
  22. unsigned char getAssistResult(void);
  23. PT_THREAD (ptUIAssist(struct pt *pt));
  24. #endif