hook.h 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. void enableDataSend(void);
  18. char isSendDataEnable(void);
  19. void powerSaveHandle(void);
  20. void onStartCtl(void);
  21. void SwitchGroupPre(void);
  22. void SwitchVoicePre(char type);
  23. void SwitchVoiceCtrl(void);
  24. void UiassistEnd(unsigned char type);
  25. void HeadsetProcess(char type);
  26. void SpeakerLvlProcess(char update);
  27. void UiassistStart(unsigned char);
  28. unsigned char getAssistResult(void);
  29. PT_THREAD (ptUIAssist(struct pt *pt));
  30. #endif