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"{
|
|||
|
|
|||
|
|
|||
|
/*<2A><><EFBFBD><EFBFBD>USB<53>豸<EFBFBD><E8B1B8>PID<49><44>VID<49><44><EFBFBD><EFBFBD>USB<53>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD>ö<EFBFBD><C3B6>*/
|
|||
|
BOOL DM_HIDDeviceEnumerate(USHORT PID,USHORT VID);
|
|||
|
|
|||
|
/*<2A><>USB HID <20><><EFBFBD><EFBFBD>һЩ<D2BB><D0A9>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>һЩ<D2BB><D0A9>Ҫ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>*/
|
|||
|
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
|
|||
|
|
|||
|
/*<2A><><EFBFBD><EFBFBD>USB<53>豸<EFBFBD><E8B1B8>PID<49><44>VID<49><44><EFBFBD><EFBFBD>USB<53>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD>ö<EFBFBD><C3B6>*/
|
|||
|
BOOL DM_HIDDeviceEnumerate(USHORT PID,USHORT VID);
|
|||
|
|
|||
|
/*<2A><>USB HID <20><><EFBFBD><EFBFBD>һЩ<D2BB><D0A9>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>һЩ<D2BB><D0A9>Ҫ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>*/
|
|||
|
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
|