|
@@ -0,0 +1,34 @@
|
|
|
+#ifndef __USB_UPGRADE_HEADER__
|
|
|
+#define __USB_UPGRADE_HEADER__
|
|
|
+
|
|
|
+namespace USBUPGRADE {
|
|
|
+ extern HMODULE g_hdll;
|
|
|
+ extern BOOL LoadLibrary();
|
|
|
+ extern void UnloadLibrary();
|
|
|
+
|
|
|
+ //////////////////////////////////////////////////////////////////////////
|
|
|
+ // 定义函数指针;
|
|
|
+ typedef BOOL(*OPEN_TVPORT)(int nPort, DWORD dwBaudrate, BYTE ByteSize, BYTE Parity, BYTE StopBits);
|
|
|
+ typedef BOOL(*IS_OPEN)();
|
|
|
+ typedef void(*CLOSE_TVPORT)();
|
|
|
+ typedef void(*START_MONITOR)();
|
|
|
+ typedef void(*SEND_COMMAND)(LPCTSTR lpCommand, int nSendCount, int nSleep);
|
|
|
+ typedef void(*CLEARBUFFER)();
|
|
|
+ typedef BOOL(*WATCH_WORD)(LPCTSTR lpWatchWord, int nWatchTime);
|
|
|
+ typedef void(*RTK_UPBUPGRADE)(BYTE byKey);
|
|
|
+
|
|
|
+ //////////////////////////////////////////////////////////////////////////
|
|
|
+ // 声明函数指针;
|
|
|
+ extern OPEN_TVPORT OpenTVPort;
|
|
|
+ extern IS_OPEN IsOpen;
|
|
|
+ extern CLOSE_TVPORT CloseTVPort;
|
|
|
+ extern START_MONITOR StartMonitor;
|
|
|
+ extern SEND_COMMAND SendCommand;
|
|
|
+ extern CLEARBUFFER ClearBuffer;
|
|
|
+ extern WATCH_WORD WatchWord;
|
|
|
+ extern RTK_UPBUPGRADE RTK_USBUpgrade;
|
|
|
+
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+#endif
|