21 #define HID_DEVICE_DETACH 0 22 #define HID_DEVICE_ATTACH 1 HIDClient * next
Definition: syshid.h:28
int32_t HIDAddClient(HIDClient *p_client, HIDAttachCallback attach_callback)
uint16_t vid
Definition: syshid.h:8
int32_t HIDSetDescriptor(uint32_t handle, uint8_t descriptor_type, uint8_t descriptor_index, uint16_t language_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
uint8_t sub_class
Definition: syshid.h:11
int32_t HIDWrite(uint32_t handle, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
uint16_t max_packet_size_tx
Definition: syshid.h:15
int32_t HIDGetProtocol(uint32_t handle, uint8_t interface_index, uint8_t *protocol, HIDCallback hc, void *p_user)
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
uint8_t protocol
Definition: syshid.h:12
void(* HIDCallback)(uint32_t handle, int32_t error, uint8_t *p_buffer, uint32_t bytes_transferred, void *p_user)
Definition: syshid.h:32
int32_t HIDSetIdle(uint32_t handle, uint8_t interface_index, uint8_t duration, HIDCallback hc, void *p_user)
int32_t HIDGetDescriptor(uint32_t handle, uint8_t descriptor_type, uint8_t descriptor_index, uint16_t language_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
static l_noret error(LoadState *S, const char *why)
Definition: lundump.c:39
int32_t HIDSetReport(uint32_t handle, uint8_t report_type, uint8_t report_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
uint8_t interface_index
Definition: syshid.h:10
signed int int32_t
Definition: stdint.h:123
HIDAttachCallback attach_cb
Definition: syshid.h:29
int32_t HIDGetReport(uint32_t handle, uint8_t report_type, uint8_t report_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
uint16_t pid
Definition: syshid.h:9
int32_t HIDDelClient(HIDClient *p_client)
uint32_t physical_device_inst
Definition: syshid.h:7
uint32_t handle
Definition: syshid.h:6
int32_t(* HIDAttachCallback)(HIDClient *p_hc, HIDDevice *p_hd, uint32_t attach)
Definition: syshid.h:24
uint16_t max_packet_size_rx
Definition: syshid.h:14
int32_t HIDRead(uint32_t handle, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
int32_t HIDSetProtocol(uint32_t handle, uint8_t interface_index, uint8_t protocol, HIDCallback hc, void *p_user)
unsigned short uint16_t
Definition: stdint.h:125
int32_t HIDTeardown(void)
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126