Changeset acdbd780 in mainline for uspace/lib
- Timestamp:
- 2011-05-06T07:51:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10849ffc, 3b5d5b9d
- Parents:
- b9d7965 (diff), 054537b (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. - Location:
- uspace/lib
- Files:
-
- 3 edited
-
drv/include/usbhid_iface.h (modified) (1 diff)
-
usb/include/usb/classes/hidut.h (modified) (1 diff)
-
usb/src/hiddescriptor.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhid_iface.h
rb9d7965 racdbd780 72 72 /** USB HID device communication interface. */ 73 73 typedef struct { 74 /** Get number of items in the event.74 /** Get size of the event in bytes. 75 75 * 76 76 * @param[in] fun DDF function answering the request. 77 77 * @return Number of events or error code. 78 78 */ 79 int (*get_event_length)(ddf_fun_t *fun);79 size_t (*get_event_length)(ddf_fun_t *fun); 80 80 81 81 /** Get single event from the HID device. 82 82 * 83 83 * @param[in] fun DDF function answering the request. 84 * @param[out] usage_page Array of usage pages and usages. 85 * @param[out] usage Array of data (1:1 with @p usage). 86 * @param[in] size Size of @p usage and @p data arrays. 84 * @param[out] buffer Buffer with raw data from the device. 87 85 * @param[out] act_size Actual number of returned events. 88 86 * @param[in] flags Flags (see USBHID_IFACE_FLAG_*). 89 87 * @return Error code. 90 88 */ 91 int (*get_event)(ddf_fun_t *fun, 92 uint16_t *usage_page, uint16_t *usage, size_t size, size_t *act_size, 93 unsigned int flags); 89 int (*get_event)(ddf_fun_t *fun, int32_t *buffer, size_t size, 90 size_t *act_size, unsigned int flags); 94 91 } usbhid_iface_t; 95 92 -
uspace/lib/usb/include/usb/classes/hidut.h
rb9d7965 racdbd780 59 59 USB_HIDUT_USAGE_GENERIC_DESKTOP_GAMEPAD = 5, 60 60 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD = 6, 61 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYPAD = 7 61 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYPAD = 7, 62 USB_HIDUT_USAGE_GENERIC_DESKTOP_X = 0x30, 63 USB_HIDUT_USAGE_GENERIC_DESKTOP_Y = 0x31, 64 USB_HIDUT_USAGE_GENERIC_DESKTOP_WHEEL = 0x38 62 65 /* USB_HIDUT_USAGE_GENERIC_DESKTOP_ = , */ 63 66 -
uspace/lib/usb/src/hiddescriptor.c
rb9d7965 racdbd780 640 640 641 641 usb_log_debug("\t\tOFFSET: %X\n", report_item->offset); 642 usb_log_debug("\t\tSIZE: % X\n", report_item->size);642 usb_log_debug("\t\tSIZE: %zu\n", report_item->size); 643 643 usb_log_debug("\t\tLOGMIN: %d\n", report_item->logical_minimum); 644 644 usb_log_debug("\t\tLOGMAX: %d\n", report_item->logical_maximum); … … 679 679 usb_log_debug("Report ID: %d\n", report_des->report_id); 680 680 usb_log_debug("\tType: %d\n", report_des->type); 681 usb_log_debug("\tLength: % d\n", report_des->bit_length);682 usb_log_debug("\tItems: % d\n", report_des->item_length);681 usb_log_debug("\tLength: %zu\n", report_des->bit_length); 682 usb_log_debug("\tItems: %zu\n", report_des->item_length); 683 683 684 684 usb_hid_descriptor_print_list(&report_des->report_items);
Note:
See TracChangeset
for help on using the changeset viewer.
