31 uint32_t bytesTransferred,
47 WUT_CHECK_OFFSET(
HIDDevice, 0x00, handle);
48 WUT_CHECK_OFFSET(
HIDDevice, 0x04, physicalDeviceInst);
51 WUT_CHECK_OFFSET(
HIDDevice, 0x0C, interfaceIndex);
52 WUT_CHECK_OFFSET(
HIDDevice, 0x0D, subClass);
53 WUT_CHECK_OFFSET(
HIDDevice, 0x0E, protocol);
54 WUT_CHECK_OFFSET(
HIDDevice, 0x10, maxPacketSizeRx);
55 WUT_CHECK_OFFSET(
HIDDevice, 0x12, maxPacketSizeTx);
64 WUT_CHECK_OFFSET(
HIDClient, 0x04, attachCallback);
83 uint8_t descriptorType,
84 uint8_t descriptorIndex,
87 uint32_t bufferLength,
93 uint8_t descriptorType,
94 uint8_t descriptorIndex,
97 uint32_t bufferLength,
106 uint32_t bufferLength,
115 uint32_t bufferLength,
121 uint8_t interfaceIndex,
129 uint8_t interfaceIndex,
137 uint8_t interfaceIndex,
144 uint8_t interfaceIndex,
152 uint32_t bufferLength,
159 uint32_t bufferLength,
HIDAttachCallback attachCallback
uint32_t physicalDeviceInst
int32_t HIDGetDescriptor(uint32_t handle, uint8_t descriptorType, uint8_t descriptorIndex, uint16_t languageId, uint8_t *buffer, uint32_t bufferLength, HIDCallback callback, void *userContext)
int32_t(* HIDAttachCallback)(HIDClient *client, HIDDevice *device, HIDAttachEvent attach)
int32_t HIDSetReport(uint32_t handle, uint8_t reportType, uint8_t reportId, uint8_t *buffer, uint32_t bufferLength, HIDCallback callback, void *userContext)
int32_t HIDAddClient(HIDClient *client, HIDAttachCallback attachCallback)
void(* HIDCallback)(uint32_t handle, int32_t error, uint8_t *buffer, uint32_t bytesTransferred, void *userContext)
int32_t HIDGetIdle(uint32_t handle, uint8_t interfaceIndex, uint8_t reportId, uint8_t *duration, HIDCallback callback, void *userContext)
int32_t HIDGetReport(uint32_t handle, uint8_t reportType, uint8_t reportId, uint8_t *buffer, uint32_t bufferLength, HIDCallback callback, void *userContext)
int32_t HIDWrite(uint32_t handle, uint8_t *buffer, uint32_t bufferLength, HIDCallback hc, void *userContext)
int32_t HIDDelClient(HIDClient *client)
int32_t HIDRead(uint32_t handle, uint8_t *buffer, uint32_t bufferLength, HIDCallback callback, void *userContext)
int32_t HIDSetIdle(uint32_t handle, uint8_t interfaceIndex, uint8_t reportId, uint8_t duration, HIDCallback callback, void *userContext)
int32_t HIDGetProtocol(uint32_t handle, uint8_t interfaceIndex, uint8_t *protocol, HIDCallback callback, void *userContext)
int32_t HIDSetDescriptor(uint32_t handle, uint8_t descriptorType, uint8_t descriptorIndex, uint16_t languageId, uint8_t *buffer, uint32_t bufferLength, HIDCallback callback, void *userContext)
int32_t HIDSetProtocol(uint32_t handle, uint8_t interfaceIndex, uint8_t protocol, HIDCallback callback, void *userContext)