Searched refs:hid_report_descriptor (Results 1 – 1 of 1) sorted by relevance
/external/libusb/examples/ |
D | xusb.c | 554 static int get_hid_record_size(uint8_t *hid_report_descriptor, int size, int type) in get_hid_record_size() argument 563 for (i = hid_report_descriptor[0]+1; i < size; i += offset) { in get_hid_record_size() 564 offset = (hid_report_descriptor[i]&0x03) + 1; in get_hid_record_size() 567 switch (hid_report_descriptor[i] & 0xFC) { in get_hid_record_size() 569 nb_bits = hid_report_descriptor[i+1]; in get_hid_record_size() 574 nb_items = ((uint32_t)hid_report_descriptor[i+j]) << (8*(j-1)); in get_hid_record_size() 611 uint8_t hid_report_descriptor[256]; in test_hid() local 617 …SB_REQUEST_GET_DESCRIPTOR, LIBUSB_DT_REPORT<<8, 0, hid_report_descriptor, sizeof(hid_report_descri… in test_hid() 622 display_buffer_hex(hid_report_descriptor, descriptor_size); in test_hid() 624 if (fwrite(hid_report_descriptor, 1, descriptor_size, fd) != descriptor_size) { in test_hid() [all …]
|