poc.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef __POC_H__
  2. #define __POC_H__
  3. #define POC_GROUP_USER_NAME_LEN 36
  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. }POC_DEF;
  45. #pragma pack(pop)
  46. extern POC_DEF sutPocStatus;
  47. void pocDataInit(void);
  48. void pocCmdHandler(unsigned char *msg, int len);
  49. void pocProCtl(int dly);
  50. #endif