visablecall.h
来自「wince下控制GPIO,用于高低电平控制 wince42.net xscale」· C头文件 代码 · 共 72 行
H
72 行
// VisableCall.h: interface for the CVisableCall class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VISABLECALL_H__D1EA14A0_35C8_4120_A520_1045B344EBB7__INCLUDED_)
#define AFX_VISABLECALL_H__D1EA14A0_35C8_4120_A520_1045B344EBB7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct cmmd_struct
{
int nFlag; //标志,用于判断是否本应用的消息
int cmm_id;//命令类型
//0:开门
//1:呼叫
//2:免提开
//3:免提关
//4:通话结束处理
int nParam1;
int nParam2;
};
#define CVCALL_CMMD_FLAG 58585858
#define CVCALL_CMMD_MSG 1000
#define CVCALL_MSG_MAX 13
struct cmmd_struct_list
{
struct cmmd_struct cmm;
struct sockaddr_in tosin;
struct cmmd_struct_list* next;
};
class CVisableCall
{
public:
int socket_listen_fd;
int RemoveAllCmmd();
int GetCmmdFromHead(struct cmmd_struct_list* head);
int AddCmmd(struct cmmd_struct cmd,struct sockaddr_in tosin);
int close();
int DOControl(BYTE bIO,DWORD dwValue);
int ChangViewChannel(BYTE bChannel);
int EndCallProcess();
int CloseDAA();
int OpenDAA();
int ChangVolumMode(BYTE bMode);
int StartHuJiao();
int StartService();
int DealOpenDoor();
int NetState(bool isOnline);
int NodeState(bool bState);
CVisableCall();
virtual ~CVisableCall();
CMutex m_Cmmd_mutxex;
CEvent m_dealCmdMessage;
BYTE m_bVolumChannel;
int m_nCurrentState;
HANDLE m_hDIOHandle;
int SetMsgState(int nMsgType,int nMsgState);
private:
struct cmmd_struct_list* m_cmmd_list;
int m_nMsgList[CVCALL_MSG_MAX];
};
#endif // !defined(AFX_VISABLECALL_H__D1EA14A0_35C8_4120_A520_1045B344EBB7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?