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

📄 serialbase.h

📁 VC++ 串口通信的dll. MsgQue 和SerialBase中重要的数据结构和通信函数,其可以完全复用. SerialComm是具体的应用, 大家实际应用中要做相应的修改. 代码注释详细,书写规
💻 H
字号:
// SerialBase.h: interface for the CSerialBase class.
//
//////////////////////////////////////////////////////////////////////

//History
//*Data          *Name      *comments.
//2008-Feb-03    Rock Li    Initialization

#if !defined(AFX_SERIALBASE_H__094BD63D_9D1C_4532_8401_59B43CE13BD0__INCLUDED_)
#define AFX_SERIALBASE_H__094BD63D_9D1C_4532_8401_59B43CE13BD0__INCLUDED_

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

#include "MsgQue.h"

bool Init(HANDLE hProExit, unsigned char uploadCmd[], char szComName[]);


bool CleanUp();

bool WriteComm(unsigned char* lpBuffer, const DWORD dwBytesToWrite);
bool ReadComm();


bool WriteOneMsgIntoQue(unsigned char szMessage[]);


bool GetAckMessage(pMsgQue* msg);
bool GetRxMessage(pMsgQue msg);


DWORD WINAPI CommWatchPorc(LPVOID pParam);

#endif // !defined(AFX_SERIALBASE_H__094BD63D_9D1C_4532_8401_59B43CE13BD0__INCLUDED_)

⌨️ 快捷键说明

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