Changeset 9e195e2c in mainline for uspace/lib/usbhid/include/usb/classes/hid.h
- Timestamp:
- 2011-05-12T09:03:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d59d0bb
- Parents:
- 456aea3 (diff), c372e03 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/classes/hid.h
r456aea3 r9e195e2c 27 27 */ 28 28 29 /** @addtogroup usbvirtkbd29 /** @addtogroup libusb 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief USB keyboard configuration.33 * @brief USB HID device related types. 34 34 */ 35 #ifndef VUK_KBDCONFIG_H_36 #define VUK_KBDCONFIG_H_35 #ifndef LIBUSB_HID_H_ 36 #define LIBUSB_HID_H_ 37 37 38 #include <usb/usb.h> 39 #include <usb/classes/hidparser.h> 38 40 #include <usb/descriptor.h> 39 #include "report.h"40 #include "descriptor.h"41 41 42 extern usb_standard_device_descriptor_t std_device_descriptor; 42 /** USB/HID device requests. */ 43 typedef enum { 44 USB_HIDREQ_GET_REPORT = 1, 45 USB_HIDREQ_GET_IDLE = 2, 46 USB_HIDREQ_GET_PROTOCOL = 3, 47 /* Values 4 to 8 are reserved. */ 48 USB_HIDREQ_SET_REPORT = 9, 49 USB_HIDREQ_SET_IDLE = 10, 50 USB_HIDREQ_SET_PROTOCOL = 11 51 } usb_hid_request_t; 43 52 44 extern usb_standard_configuration_descriptor_t std_configuration_descriptor; 53 typedef enum { 54 USB_HID_PROTOCOL_BOOT = 0, 55 USB_HID_PROTOCOL_REPORT = 1 56 } usb_hid_protocol_t; 45 57 46 extern usb_standard_interface_descriptor_t std_interface_descriptor; 58 /** USB/HID subclass constants. */ 59 typedef enum { 60 USB_HID_SUBCLASS_NONE = 0, 61 USB_HID_SUBCLASS_BOOT = 1 62 } usb_hid_subclass_t; 47 63 48 extern usb_standard_endpoint_descriptor_t endpoint_descriptor; 49 50 51 extern hid_descriptor_t hid_descriptor; 52 53 extern report_descriptor_data_t report_descriptor; 54 extern size_t report_descriptor_size; 64 /** USB/HID interface protocols. */ 65 typedef enum { 66 USB_HID_PROTOCOL_NONE = 0, 67 USB_HID_PROTOCOL_KEYBOARD = 1, 68 USB_HID_PROTOCOL_MOUSE = 2 69 } usb_hid_iface_protocol_t; 55 70 56 71
Note:
See TracChangeset
for help on using the changeset viewer.