Changeset 63517c2 in mainline for uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c
- Timestamp:
- 2011-04-21T08:33:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 020559c9
- Parents:
- da1dd48 (diff), e50cd7f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c
rda1dd48 r63517c2 81 81 usb_hid_report_path_t *path = usb_hid_report_path(); 82 82 usb_hid_report_path_append_item(path, 0xc, 0); 83 usb_hid_report_path_set_report_id(path, 1);83 usb_hid_report_path_set_report_id(path, 0); 84 84 85 int rc = usb_hid_parse_report(hid_dev->parser, buffer, 86 buffer_size, path, 87 USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 88 &usb_lgtch_parser_callbacks, hid_dev); 85 int rc = usb_hid_parse_report(hid_dev->parser, buffer, buffer_size); 86 87 usb_hid_report_field_t *field = usb_hid_report_get_sibling(hid_dev->parser, NULL, path, USB_HID_PATH_COMPARE_END , USB_HID_REPORT_TYPE_INPUT); 88 while(field != NULL) { 89 usb_log_debug("KEY VALUE(%X) USAGE(%X)\n", field->value, field->usage); 90 } 91 89 92 90 93 usb_hid_report_path_free(path);
Note:
See TracChangeset
for help on using the changeset viewer.