Home
last modified time | relevance | path

Searched refs:device_handle (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/SDL2/src/hidapi/windows/
A Dhid.c169 HANDLE device_handle; member
184 dev->device_handle = INVALID_HANDLE_VALUE; in new_hid_device()
204 CloseHandle(dev->device_handle); in free_hid_device()
659 dev->device_handle = open_device(path, FALSE, bExclusive); in hid_open_path()
662 if (dev->device_handle == INVALID_HANDLE_VALUE) { in hid_open_path()
669 res = HidD_SetNumInputBuffers(dev->device_handle, 64); in hid_open_path()
676 res = HidD_GetPreparsedData(dev->device_handle, &pp_data); in hid_open_path()
802 CancelIo(dev->device_handle); in hid_read_timeout()
880 res = HidD_GetFeature(dev->device_handle, (PVOID)data, (ULONG)length); in hid_get_feature_report()
892 res = DeviceIoControl(dev->device_handle, in hid_get_feature_report()
[all …]
/AliOS-Things-master/components/SDL2/src/hidapi/linux/
A Dhid.c86 int device_handle; member
119 dev->device_handle = -1; in new_hid_device()
287 ret = fstat(dev->device_handle, &s); in is_bluetooth()
349 ret = fstat(dev->device_handle, &s); in get_device_string()
715 dev->device_handle = open(path, O_RDWR); in hid_open_path()
718 if (dev->device_handle > 0) { in hid_open_path()
734 res = ioctl(dev->device_handle, HIDIOCGRDESC, &rpt_desc); in hid_open_path()
760 bytes_written = write(dev->device_handle, data, length); in hid_write()
780 fds.fd = dev->device_handle; in hid_read_timeout()
796 bytes_read = read(dev->device_handle, data, length); in hid_read_timeout()
[all …]
/AliOS-Things-master/components/SDL2/src/hidapi/libusb/
A Dhid.c135 libusb_device_handle *device_handle; member
863 dev->device_handle, in read_thread()
998 res = libusb_open(usb_dev, &dev->device_handle); in hid_open_path()
1012 libusb_close(dev->device_handle); in hid_open_path()
1026 libusb_close(dev->device_handle); in hid_open_path()
1033 init_xboxone(dev->device_handle, conf_desc); in hid_open_path()
1120 res = libusb_control_transfer(dev->device_handle, in hid_write()
1139 res = libusb_interrupt_transfer(dev->device_handle, in hid_write()
1279 res = libusb_control_transfer(dev->device_handle, in hid_send_feature_report()
1310 res = libusb_control_transfer(dev->device_handle, in hid_get_feature_report()
[all …]
/AliOS-Things-master/components/SDL2/src/hidapi/ios/
A Dhid.m697 void *device_handle; field
841 HIDBLEDevice *device_handle = (__bridge HIDBLEDevice *)dev->device_handle;
843 if ( !device_handle.connected )
851 HIDBLEDevice *device_handle = CFBridgingRelease( dev->device_handle );
863 HIDBLEDevice *device_handle = (__bridge HIDBLEDevice *)dev->device_handle;
865 if ( !device_handle.connected )
873 HIDBLEDevice *device_handle = (__bridge HIDBLEDevice *)dev->device_handle;
875 if ( !device_handle.connected )
885 HIDBLEDevice *device_handle = (__bridge HIDBLEDevice *)dev->device_handle;
887 if ( !device_handle.connected )
[all …]
/AliOS-Things-master/components/SDL2/src/hidapi/mac/
A Dhid.c106 IOHIDDeviceRef device_handle; member
137 dev->device_handle = NULL; in new_hid_device()
385 if (node->dev->device_handle == hid_ref) { in hid_device_removal_callback()
749 dev->device_handle = os_dev; in hid_open_path()
824 res = IOHIDDeviceSetReport(dev->device_handle, in set_report()
1016 res = IOHIDDeviceGetReport(dev->device_handle, in hid_get_feature_report()
1038 dev->device_handle, dev->input_report_buf, dev->max_input_report_len, in hid_close()
1061 IOHIDDeviceClose(dev->device_handle, kIOHIDOptionsTypeNone); in hid_close()
1076 return get_manufacturer_string(dev->device_handle, string, maxlen); in hid_get_manufacturer_string()
1081 return get_product_string(dev->device_handle, string, maxlen); in hid_get_product_string()
[all …]
/AliOS-Things-master/solutions/javascript_demo/ota_demo/
A Dota_4g.js35 device_handle: iotDeviceHandle,
A Dota_wifi.js41 device_handle: iotDeviceHandle,
/AliOS-Things-master/components/amp/example-js/
A Dota.js35 device_handle: iotDeviceHandle,

Completed in 29 milliseconds