| 185 | } |
| 186 | |
| 187 | int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *device, unsigned char *data, size_t length, int milliseconds) |
| 188 | { |
| 189 | switch ( GetAPIForDevice( device ) ) |
| 190 | { |
| 191 | case k_EHIDAPIRAW: |
| 192 | return HIDRAW::hid_read_timeout( (HIDRAW::hid_device*)device, data, length, milliseconds ); |
| 193 | case k_EHIDAPIUSB: |
| 194 | return HIDUSB::hid_read_timeout( (HIDUSB::hid_device*)device, data, length, milliseconds ); |
| 195 | default: |
| 196 | return -1; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length) |
| 201 | { |
nothing calls this directly
no test coverage detected