Searched refs:hid_report_descriptor (Results 1 – 1 of 1) sorted by relevance
/external/libusb/examples/ |
D | xusb.c | 555 static int get_hid_record_size(uint8_t *hid_report_descriptor, int size, int type) in get_hid_record_size() argument 564 for (i = hid_report_descriptor[0]+1; i < size; i += offset) { in get_hid_record_size() 565 offset = (hid_report_descriptor[i]&0x03) + 1; in get_hid_record_size() 568 switch (hid_report_descriptor[i] & 0xFC) { in get_hid_record_size() 570 nb_bits = hid_report_descriptor[i+1]; in get_hid_record_size() 575 nb_items = ((uint32_t)hid_report_descriptor[i+j]) << (8*(j-1)); in get_hid_record_size() 612 uint8_t hid_report_descriptor[256]; in test_hid() local 618 …SB_REQUEST_GET_DESCRIPTOR, LIBUSB_DT_REPORT<<8, 0, hid_report_descriptor, sizeof(hid_report_descri… in test_hid() 623 display_buffer_hex(hid_report_descriptor, descriptor_size); in test_hid() 625 if (fwrite(hid_report_descriptor, 1, descriptor_size, fd) != (size_t)descriptor_size) { in test_hid() [all …]
|