📄 serialcomm.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -