51 lines
921 B
C
51 lines
921 B
C
#ifndef DM_Win32_HIDDevice_h_
|
||
#define DM_Win32_HIDDevice_h_
|
||
|
||
|
||
typedef struct _HID_HANDLE{
|
||
HANDLE HID_Read_HANDLE;
|
||
HANDLE HID_Write_HANDLE;
|
||
}UsbHidHandle;
|
||
|
||
#ifdef __cplusplus
|
||
extern "C"{
|
||
|
||
|
||
/*给定USB设备的PID和VID,对USB设备进行枚举*/
|
||
BOOL DM_HIDDeviceEnumerate(USHORT PID,USHORT VID);
|
||
|
||
/*对USB HID 进行一些初始化操作,初始化一些必要的变量*/
|
||
void USB_HID_Init();
|
||
|
||
|
||
void dematrix_usb_get_capabilities(HANDLE hid_usb_handle);
|
||
|
||
DWORD dematrix_usb_private_read_thread(LPVOID param);
|
||
|
||
DWORD start_thread(void *function_address, void *param);
|
||
|
||
|
||
}
|
||
|
||
#else
|
||
|
||
/*给定USB设备的PID和VID,对USB设备进行枚举*/
|
||
BOOL DM_HIDDeviceEnumerate(USHORT PID,USHORT VID);
|
||
|
||
/*对USB HID 进行一些初始化操作,初始化一些必要的变量*/
|
||
void USB_HID_Init();
|
||
|
||
|
||
void dematrix_usb_get_capabilities(HANDLE hid_usb_handle);
|
||
|
||
DWORD dematrix_usb_private_read_thread(LPVOID param);
|
||
|
||
DWORD start_thread(void *function_address, void *param);
|
||
|
||
#endif
|
||
|
||
|
||
|
||
|
||
#endif
|