Lines Matching refs:device

174 int  HID_API_EXPORT HID_API_CALL hid_write(hid_device *device, const unsigned char *data, size_t le…  in hid_write()  argument
176 switch ( GetAPIForDevice( device ) ) in hid_write()
179 return HIDRAW::hid_write( (HIDRAW::hid_device*)device, data, length ); in hid_write()
181 return HIDUSB::hid_write( (HIDUSB::hid_device*)device, data, length ); in hid_write()
187 int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *device, unsigned char *data, size_t le… in hid_read_timeout() argument
189 switch ( GetAPIForDevice( device ) ) in hid_read_timeout()
192 return HIDRAW::hid_read_timeout( (HIDRAW::hid_device*)device, data, length, milliseconds ); in hid_read_timeout()
194 return HIDUSB::hid_read_timeout( (HIDUSB::hid_device*)device, data, length, milliseconds ); in hid_read_timeout()
200 int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length) in hid_read() argument
202 switch ( GetAPIForDevice( device ) ) in hid_read()
205 return HIDRAW::hid_read( (HIDRAW::hid_device*)device, data, length ); in hid_read()
207 return HIDUSB::hid_read( (HIDUSB::hid_device*)device, data, length ); in hid_read()
213 int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *device, int nonblock) in hid_set_nonblocking() argument
215 switch ( GetAPIForDevice( device ) ) in hid_set_nonblocking()
218 return HIDRAW::hid_set_nonblocking( (HIDRAW::hid_device*)device, nonblock ); in hid_set_nonblocking()
220 return HIDUSB::hid_set_nonblocking( (HIDUSB::hid_device*)device, nonblock ); in hid_set_nonblocking()
226 int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *device, const unsigned char *da… in hid_send_feature_report() argument
228 switch ( GetAPIForDevice( device ) ) in hid_send_feature_report()
231 return HIDRAW::hid_send_feature_report( (HIDRAW::hid_device*)device, data, length ); in hid_send_feature_report()
233 return HIDUSB::hid_send_feature_report( (HIDUSB::hid_device*)device, data, length ); in hid_send_feature_report()
239 int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *device, unsigned char *data, siz… in hid_get_feature_report() argument
241 switch ( GetAPIForDevice( device ) ) in hid_get_feature_report()
244 return HIDRAW::hid_get_feature_report( (HIDRAW::hid_device*)device, data, length ); in hid_get_feature_report()
246 return HIDUSB::hid_get_feature_report( (HIDUSB::hid_device*)device, data, length ); in hid_get_feature_report()
252 void HID_API_EXPORT HID_API_CALL hid_close(hid_device *device) in hid_close() argument
254 switch ( GetAPIForDevice( device ) ) in hid_close()
257 HIDRAW::hid_close( (HIDRAW::hid_device*)device ); in hid_close()
260 HIDUSB::hid_close( (HIDUSB::hid_device*)device ); in hid_close()
265 s_hashDeviceToAPI.Remove( (uintptr_t)device ); in hid_close()
268 int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *device, wchar_t *string, size_t max… in hid_get_manufacturer_string() argument
270 switch ( GetAPIForDevice( device ) ) in hid_get_manufacturer_string()
273 return HIDRAW::hid_get_manufacturer_string( (HIDRAW::hid_device*)device, string, maxlen ); in hid_get_manufacturer_string()
275 return HIDUSB::hid_get_manufacturer_string( (HIDUSB::hid_device*)device, string, maxlen ); in hid_get_manufacturer_string()
281 int HID_API_EXPORT_CALL hid_get_product_string(hid_device *device, wchar_t *string, size_t maxlen) in hid_get_product_string() argument
283 switch ( GetAPIForDevice( device ) ) in hid_get_product_string()
286 return HIDRAW::hid_get_product_string( (HIDRAW::hid_device*)device, string, maxlen ); in hid_get_product_string()
288 return HIDUSB::hid_get_product_string( (HIDUSB::hid_device*)device, string, maxlen ); in hid_get_product_string()
294 int HID_API_EXPORT_CALL hid_get_serial_number_string(hid_device *device, wchar_t *string, size_t ma… in hid_get_serial_number_string() argument
296 switch ( GetAPIForDevice( device ) ) in hid_get_serial_number_string()
299 return HIDRAW::hid_get_serial_number_string( (HIDRAW::hid_device*)device, string, maxlen ); in hid_get_serial_number_string()
301 return HIDUSB::hid_get_serial_number_string( (HIDUSB::hid_device*)device, string, maxlen ); in hid_get_serial_number_string()
307 int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *device, int string_index, wchar_t *strin… in hid_get_indexed_string() argument
309 switch ( GetAPIForDevice( device ) ) in hid_get_indexed_string()
312 …return HIDRAW::hid_get_indexed_string( (HIDRAW::hid_device*)device, string_index, string, maxlen ); in hid_get_indexed_string()
314 …return HIDUSB::hid_get_indexed_string( (HIDUSB::hid_device*)device, string_index, string, maxlen ); in hid_get_indexed_string()
320 HID_API_EXPORT const wchar_t* HID_API_CALL hid_error(hid_device *device) in hid_error() argument
322 switch ( GetAPIForDevice( device ) ) in hid_error()
325 return HIDRAW::hid_error( (HIDRAW::hid_device*)device ); in hid_error()
327 return HIDUSB::hid_error( (HIDUSB::hid_device*)device ); in hid_error()