inteteam.h

来自「基于PC104的24位数据采集器的完整源码」· C头文件 代码 · 共 53 行

H
53
字号
//
// CInterTeam : the class of interface with the communication
//
//
/////////////////////////////////////////////////////////////////////////

#ifndef __INTERTEAM
#define __INTERTEAM

#include "SendTeam.h"

#ifndef uint
#define uint unsigned int
#endif

enum INTERFACE_TYPE
{
	INTERFACE_NULL = -1,
	INTERFACE_SITEID = 0,
	INTERFACE_SAMPLE = 1,
	INTERFACE_SERIAL = 2,
	INTERFACE_BIAODINPLUSE = 3,
	INTERFACE_BIAODINWAVE = 4,
	INTERFACE_FILT = 5,
	INTERFACE_CORRECT = 6
};

class CInterTeam : public CSendTeam
{
public:
	CInterTeam();
	~CInterTeam();

// Attribution
private:
	char*	m_pReceiveBuff;

	INTERFACE_TYPE	m_nSendType;	// sign the send status

	uint	m_nTeamIndex;

// Operation
public:
	void CheckTeamHead(char nChar);

// override
	virtual char GetNext(unsigned int& nTeamIndex);
	virtual void TeamIn(char nChar);
};

extern CInterTeam g_nInterTeam;
#endif

⌨️ 快捷键说明

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