Changeset 4ee5272 in mainline for uspace/lib/usb/include/usb/descriptor.h
- Timestamp:
- 2014-01-19T04:45:39Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2be477d5
- Parents:
- 615abda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/descriptor.h
r615abda r4ee5272 45 45 USB_DESCTYPE_INTERFACE = 4, 46 46 USB_DESCTYPE_ENDPOINT = 5, 47 /* New in USB2.0 */ 48 USB_DESCTYPE_DEVICE_QUALIFIER = 6, 49 USB_DESCTYPE_OTHER_SPEED_CONFIGURATION = 7, 50 USB_DESCTYPE_INTERFACE_POWER = 8, 51 /* Class specific */ 47 52 USB_DESCTYPE_HID = 0x21, 48 53 USB_DESCTYPE_HID_REPORT = 0x22, … … 89 94 } __attribute__ ((packed)) usb_standard_device_descriptor_t; 90 95 96 /** USB device qualifier decriptor is basically a cut down version of the device 97 * descriptor with values that would be valid if the device operated on the 98 * other speed (HIGH vs. FULL) 99 */ 100 typedef struct { 101 /** Size of this descriptor in bytes */ 102 uint8_t length; 103 /** Descriptor type (USB_DESCTYPE_DEVICE_QUALIFIER) */ 104 uint8_t descriptor_type; 105 /** USB specification release number. 106 * The number shall be coded as binary-coded decimal (BCD). 107 */ 108 uint16_t usb_spec_version; 109 /** Device class. */ 110 uint8_t device_class; 111 /** Device sub-class. */ 112 uint8_t device_subclass; 113 /** Device protocol. */ 114 uint8_t device_protocol; 115 /** Maximum packet size for endpoint zero. 116 * Valid values are only 8, 16, 32, 64). 117 */ 118 uint8_t max_packet_size; 119 /** Number of possible configurations. */ 120 uint8_t configuration_count; 121 uint8_t reserved; 122 } __attribute__ ((packed)) usb_standard_device_qualifier_descriptor_t; 123 91 124 /** Standard USB configuration descriptor. 92 125 */ … … 116 149 } __attribute__ ((packed)) usb_standard_configuration_descriptor_t; 117 150 151 /** USB Other Speed Configuration descriptor shows values that would change 152 * in the configuration descriptor if the device operated at its other 153 * possible speed (HIGH vs. FULL) 154 */ 155 typedef usb_standard_configuration_descriptor_t 156 usb_other_speed_configuration_descriptor_t; 157 118 158 /** Standard USB interface descriptor. 119 159 */
Note:
See TracChangeset
for help on using the changeset viewer.