Changes in uspace/lib/usb/include/usb/classes/hid.h [a3b1107:4b4c797] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hid.h
ra3b1107 r4b4c797 36 36 #define LIBUSB_HID_H_ 37 37 38 #include <usb/usb.h>39 #include <driver.h>40 #include <usb/classes/hidparser.h>41 42 38 /** USB/HID device requests. */ 43 39 typedef enum { … … 58 54 } usb_hid_protocol_t; 59 55 60 /** Part of standard USB HID descriptor specifying one class descriptor.61 *62 * (See HID Specification, p.22)63 */64 typedef struct {65 /** Type of class descriptor (Report or Physical). */66 uint8_t class_descriptor_type;67 /** Length of class descriptor. */68 uint16_t class_descriptor_length;69 } __attribute__ ((packed)) usb_standard_hid_descriptor_class_item_t;70 71 /** Standard USB HID descriptor.72 *73 * (See HID Specification, p.22)74 *75 * It is actually only the "header" of the descriptor, as it may have arbitrary76 * length if more than one class descritor is provided.77 */78 typedef struct {79 /** Size of this descriptor in bytes. */80 uint8_t length;81 /** Descriptor type (USB_DESCTYPE_HID). */82 uint8_t descriptor_type;83 /** HID Class Specification release. */84 uint16_t spec_release;85 /** Country code of localized hardware. */86 uint8_t country_code;87 /** Total number of class (i.e. Report and Physical) descriptors. */88 uint8_t class_count;89 /** First mandatory class descriptor info. */90 usb_standard_hid_descriptor_class_item_t class_descriptor;91 } __attribute__ ((packed)) usb_standard_hid_descriptor_t;92 93 94 /**95 * @brief USB/HID keyboard device type.96 *97 * Quite dummy right now.98 */99 typedef struct {100 device_t *device;101 usb_address_t address;102 usb_endpoint_t default_ep;103 usb_hid_report_parser_t *parser;104 } usb_hid_dev_kbd_t;105 106 56 #endif 107 57 /**
Note:
See TracChangeset
for help on using the changeset viewer.