#ifndef __POC_H__ #define __POC_H__ #define POC_GROUP_USER_NAME_LEN 36 #define POC_ALL_USERS_NUM 5 #define POC_ALL_GROUPS_NUM 5 #pragma pack(push) #pragma pack(1) typedef struct{ unsigned long ID; char status; char name[POC_GROUP_USER_NAME_LEN]; }SUT_POC_USER; typedef struct{ unsigned long ID; unsigned short usernum; char name[POC_GROUP_USER_NAME_LEN]; unsigned char status; }SUT_POC_GROUP; typedef struct{ unsigned char danHuStatus;//是否处理于单呼状? unsigned char logined;//是否已登? unsigned char firstLogin;//是否第一次登? unsigned char spk;//是否有人在说? unsigned char mic;//本机是否在说? unsigned char TTS; unsigned char TONE; unsigned char beep; unsigned char statusChaned;//UI说话状态是否变? unsigned char loginResult; SUT_POC_USER LocalUser; SUT_POC_GROUP LocalGroup; char CallName[POC_GROUP_USER_NAME_LEN]; SUT_POC_USER AllUsers[POC_ALL_USERS_NUM]; SUT_POC_GROUP AllGroups[POC_ALL_GROUPS_NUM]; unsigned char handleIndex; unsigned char ListFillIndex; unsigned int ListCurOnlineNum; unsigned char ListUpdate; unsigned char ListType; unsigned char ListGetOneFlag; unsigned char ExceptionReadNum; unsigned char ListDetailValid;//是否有群组/成员明细回来 unsigned char PocLineOffReason; }POC_DEF; #pragma pack(pop) extern POC_DEF sutPocStatus; void pocDataInit(void); void pocCmdHandler(unsigned char *msg, int len); void pocProCtl(int dly); #endif