poc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef __POC_H__
  2. #define __POC_H__
  3. #define POC_GROUP_USER_NAME_LEN 36
  4. #define POC_ALL_USERS_NUM 150
  5. #define POC_ALL_GROUPS_NUM 150
  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. void modemMsgProcess(char *msg);
  51. void modemSetMic(int vol);
  52. void pocSetDomain(void);
  53. void voiceModeSet(unsigned char voiceSel);
  54. void voiceModeQuery(void);
  55. #endif