|
@@ -12,18 +12,18 @@
|
|
|
|
|
|
|
|
|
// 打开串口;
|
|
|
-SERIALWATCH_API BOOL OpenTVPort(int nPort, DWORD dwBaudrate = 115200, BYTE ByteSize = 8, BYTE Parity = NOPARITY, BYTE StopBits = 1);
|
|
|
+extern "C" SERIALWATCH_API BOOL OpenTVPort(int nPort, DWORD dwBaudrate, BYTE ByteSize, BYTE Parity, BYTE StopBits);
|
|
|
// 串口是否打开;
|
|
|
-SERIALWATCH_API BOOL IsOpen();
|
|
|
+extern "C" SERIALWATCH_API BOOL IsOpen();
|
|
|
// 关闭串口;
|
|
|
-SERIALWATCH_API void CloseTVPort();
|
|
|
+extern "C" SERIALWATCH_API void CloseTVPort();
|
|
|
// 开启监听;
|
|
|
-SERIALWATCH_API void StartMonitor();
|
|
|
+extern "C" SERIALWATCH_API void StartMonitor();
|
|
|
// 发送指令;//命令、发送次数、每次间隔多少毫秒;
|
|
|
-SERIALWATCH_API void SendCommand(LPCTSTR lpCommand, int nSendCount = 1, int nSleep = 0);
|
|
|
+extern "C" SERIALWATCH_API void SendCommand(LPCTSTR lpCommand, int nSendCount, int nSleep );
|
|
|
// 清空Buffer;//在监听关键字前清空;
|
|
|
-SERIALWATCH_API void ClearBuffer();
|
|
|
+extern "C" SERIALWATCH_API void ClearBuffer();
|
|
|
// 监听指定关键字是否出现;
|
|
|
-SERIALWATCH_API bool WatchWord(LPCTSTR lpWatchWord, int nWatchTime = 3000);
|
|
|
+extern "C" SERIALWATCH_API bool WatchWord(LPCTSTR lpWatchWord, int nWatchTime);
|
|
|
// RTK的升级方案;
|
|
|
-SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey);
|
|
|
+extern "C" SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey);
|