hook.h 810 B

123456789101112131415161718192021222324252627282930313233343536
  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. #define INTERNAL_HEADSET 0
  13. extern unsigned char assistResult;
  14. extern ASSIST_DEF uiAssist;
  15. extern unsigned char QueryTime;
  16. extern unsigned char QueryTick;
  17. extern unsigned int HeadsetQudou;
  18. void enableDataSend(void);
  19. char isSendDataEnable(void);
  20. void powerSaveHandle(void);
  21. void onStartCtl(void);
  22. void SwitchGroupPre(void);
  23. void SwitchVoicePre(char type);
  24. void SwitchVoiceCtrl(void);
  25. void UiassistEnd(unsigned char type);
  26. void HeadsetProcess(void);
  27. void UiassistStart(unsigned char);
  28. unsigned char getAssistResult(void);
  29. PT_THREAD (ptUIAssist(struct pt *pt));
  30. #endif