GeekIMU/4.Software/GeekIMUDriver 1.0/Src/USB_Win32_HIDDevice.h

51 lines
921 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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