poc.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef __POC__H__
  2. #define __POC__H__
  3. #define POC_GROUP_USER_NAME_LEN 40 //POC输出过来是翻倍长度的
  4. #define POC_ALL_USERS_NUM 5
  5. #define POC_ALL_GROUPS_NUM 5
  6. #pragma pack(push)
  7. #pragma pack(1)
  8. typedef struct{
  9. unsigned long ID;
  10. char status;
  11. char name[POC_GROUP_USER_NAME_LEN];
  12. }SUT_POC_USER;
  13. typedef struct{
  14. unsigned long ID;
  15. unsigned short usernum;
  16. char name[POC_GROUP_USER_NAME_LEN];
  17. unsigned char status;
  18. }SUT_POC_GROUP;
  19. typedef struct{
  20. unsigned char danHuStatus;//是否处理于单呼状怿
  21. unsigned char logined;//是否已登彿
  22. unsigned char firstLogin;//是否第一次登彿
  23. unsigned char spk;//是否有人在说诿
  24. unsigned char mic;//本机是否在说诿
  25. unsigned char TTS;
  26. unsigned char TONE;
  27. unsigned char beep;
  28. unsigned char statusChaned;//UI说话状态是否变匿
  29. unsigned char loginResult;
  30. SUT_POC_USER LocalUser;
  31. SUT_POC_GROUP LocalGroup;
  32. char CallName[POC_GROUP_USER_NAME_LEN];
  33. SUT_POC_USER AllUsers[POC_ALL_USERS_NUM];
  34. SUT_POC_GROUP AllGroups[POC_ALL_GROUPS_NUM];
  35. unsigned char handleIndex;
  36. unsigned char ListFillIndex;
  37. unsigned int ListCurOnlineNum;
  38. unsigned char ListUpdate;
  39. unsigned char ListType;
  40. unsigned char ListGetOneFlag;
  41. unsigned char ExceptionReadNum;
  42. unsigned char ListDetailValid;//是否有群组/成员明细回来
  43. unsigned char PocLineOffReason;
  44. unsigned char preSpk;
  45. unsigned char prePtt;//gwsd bug 必须先播放TONE 渣渣
  46. unsigned char PttFail;//请麦失败
  47. }POC_DEF;
  48. #pragma pack(pop)
  49. extern POC_DEF sutPocStatus;
  50. void pocDataInit(void);
  51. void pocCmdHandler(unsigned char *msg, int len);
  52. void pocProCtl(int dly);
  53. void LogoutOutTimeCheck(unsigned int interval);
  54. void proHeadSet(char *msg);
  55. #endif