Changeset 4a7a8d4 in mainline for uspace/lib/usbhid/include/usb/classes/hid.h
- Timestamp:
- 2011-05-13T10:31:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aca3489
- Parents:
- 05e21ffc (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
r05e21ffc r4a7a8d4 69 69 } usb_hid_iface_protocol_t; 70 70 71 /** Part of standard USB HID descriptor specifying one class descriptor.72 *73 * (See HID Specification, p.22)74 */75 typedef struct {76 /** Type of class-specific descriptor (Report or Physical). */77 uint8_t type;78 /** Length of class-specific descriptor in bytes. */79 uint16_t length;80 } __attribute__ ((packed)) usb_standard_hid_class_descriptor_info_t;81 82 /** Standard USB HID descriptor.83 *84 * (See HID Specification, p.22)85 *86 * It is actually only the "header" of the descriptor, it does not contain87 * the last two mandatory fields (type and length of the first class-specific88 * descriptor).89 */90 typedef struct {91 /** Total size of this descriptor in bytes.92 *93 * This includes all class-specific descriptor info - type + length94 * for each descriptor.95 */96 uint8_t length;97 /** Descriptor type (USB_DESCTYPE_HID). */98 uint8_t descriptor_type;99 /** HID Class Specification release. */100 uint16_t spec_release;101 /** Country code of localized hardware. */102 uint8_t country_code;103 /** Total number of class-specific (i.e. Report and Physical)104 * descriptors.105 *106 * @note There is always only one Report descriptor.107 */108 uint8_t class_desc_count;109 /** First mandatory class descriptor (Report) info. */110 usb_standard_hid_class_descriptor_info_t report_desc_info;111 } __attribute__ ((packed)) usb_standard_hid_descriptor_t;112 113 71 114 72 #endif
Note:
See TracChangeset
for help on using the changeset viewer.