| 198 | } |
| 199 | |
| 200 | int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length) |
| 201 | { |
| 202 | switch ( GetAPIForDevice( device ) ) |
| 203 | { |
| 204 | case k_EHIDAPIRAW: |
| 205 | return HIDRAW::hid_read( (HIDRAW::hid_device*)device, data, length ); |
| 206 | case k_EHIDAPIUSB: |
| 207 | return HIDUSB::hid_read( (HIDUSB::hid_device*)device, data, length ); |
| 208 | default: |
| 209 | return -1; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *device, int nonblock) |
| 214 | { |
nothing calls this directly
no test coverage detected