123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef __HOOK_H_
- #define __HOOK_H_
- #include "pt.h"
- /*
- 用于辅助UI某些需要做等待条件的状态机
- */
- typedef struct{
- unsigned char status;//0空闲 否则忙
- unsigned char type;//需要辅助工作类型
- unsigned char machine;//工作状态机
- }ASSIST_DEF;
- #define INTERNAL_HEADSET 0
- extern unsigned char assistResult;
- extern ASSIST_DEF uiAssist;
- extern unsigned char QueryTime;
- extern unsigned char QueryTick;
- extern signed char Chargeing;
- void enableDataSend(void);
- char isSendDataEnable(void);
- void powerSaveHandle(void);
- void onStartCtl(void);
- void SwitchGroupPre(void);
- void SwitchVoicePre(char type);
- void SwitchVoiceCtrl(void);
- void UiassistEnd(unsigned char type);
- void HeadsetProcess(void);
- char SpkerLvlProcess(char update);
- void UiassistStart(unsigned char);
- unsigned char getAssistResult(void);
- PT_THREAD (ptUIAssist(struct pt *pt));
- #endif
|