⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ylffiltemsg.h

📁 七号信令解码器
💻 H
字号:
// ylfFilteMsg.h: interface for the ylfFilteMsg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_YLFFILTEMSG_H__058CF7DD_6E4D_4E6E_9700_9F0243A5FE1C__INCLUDED_)
#define AFX_YLFFILTEMSG_H__058CF7DD_6E4D_4E6E_9700_9F0243A5FE1C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define MAX_ADDR_LEN 20
typedef struct {
	UINT opc;
	UINT dpc;
	unsigned short cic; 
	unsigned char msgtype;
	char addr[MAX_ADDR_LEN+1];
	char baddr[MAX_ADDR_LEN+1];
} defIsupFiltItem;


class ylfFilteMsg  
{
public:
	ylfFilteMsg();
	virtual ~ylfFilteMsg();
public:
	static bool bFilter;
	static CString addr;
	static CString baddr;
	static bool haveIAM;
	static bool haveIAM2;
	static UINT dpc;
	static UINT opc;
	static WORD cic;
	static UINT dpc2;
	static UINT opc2;
	static WORD cic2;
	static int count;
	static defIsupFiltItem isupFiltItem;
public:
	static void FillMsg(BYTE* msgBuf,int len);
	static BYTE* GetMsgBuf(int pos);
	static bool ReadConfig();
	static bool FiltIAM(UINT dpc,UINT opc,WORD cic,CString addr,CString baddr);
	static bool Filt(UINT dpc,UINT opc,WORD cic,BYTE h1h2);
	static bool IsFiltMsg(BYTE* msgBuf,int len);

};

#endif // !defined(AFX_YLFFILTEMSG_H__058CF7DD_6E4D_4E6E_9700_9F0243A5FE1C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -