serialcomm.h
来自「VC++ 串口通信的dll. MsgQue 和SerialBase中重要的数据结」· C头文件 代码 · 共 52 行
H
52 行
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the SERIALCOMM_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// SERIALCOMM_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
//#include "SerialBase.h"
//This is the DLL API( Application Program Interface) for the end user.
//For the windows user, the following files should be available.
//1. SerialComm.h . In another way, this file.
//2. SerialComm.lib
//3. SerialComm.dll
//History
//*Data *Name *comments.
//2008-Feb-03 Rock Li Initialization
#ifdef SERIALCOMM_EXPORTS
#define SERIALCOMM_API __declspec(dllexport)
#else
#define SERIALCOMM_API __declspec(dllimport)
#endif
//Initialization of DLL
SERIALCOMM_API bool DllInit(HANDLE hProExit, char szComName[]);
//To close the DLL resources.
SERIALCOMM_API bool DllCleanUp();
//To download UID from a host to APP CPU
SERIALCOMM_API bool DownloadUID(unsigned char *p_TermUID, int NumOfNodes);
//To Build the Network in power lines.
SERIALCOMM_API bool RunNetBuild(void);
//To send unacknowledged Data from the host to the Terminal node.
SERIALCOMM_API bool SendUnAckDataToTN ( unsigned char *p_TermUID,
unsigned char *p_InDataBuf,
unsigned char inDataLen);
//To send acknowledged Data from the host to the Terminal node.
SERIALCOMM_API bool SendAckDataToTN ( unsigned char *p_TermUID,
unsigned char *p_InDataBuf,
unsigned char inDataLen,
unsigned char *p_RespData,
unsigned char *p_RespDataLen);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?