1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef __POC_H__
- #define __POC_H__
- #define POC_GROUP_USER_NAME_LEN 36
- #define POC_ALL_USERS_NUM 150
- #define POC_ALL_GROUPS_NUM 150
- #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);
- void modemMsgProcess(char *msg);
- void modemSetMic(int vol);
- void pocSetDomain(void);
- void voiceModeSet(unsigned char voiceSel);
- void voiceModeQuery(void);
- #endif
|