Changeset 0e41957 in mainline
- Timestamp:
- 2010-10-10T22:00:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d97d209
- Parents:
- 4971812
- Location:
- uspace/lib/usb
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/devreq.h
r4971812 r0e41957 64 64 } usb_descriptor_type_t; 65 65 66 /** Device request setup packet. 67 * The setup packet describes the request. 68 */ 69 typedef struct { 70 /** Request type. 71 * The type combines transfer direction, request type and 72 * intended recipient. 73 */ 74 uint8_t request_type; 75 /** Request identification. */ 76 uint8_t request; 77 /** Main parameter to the request. */ 78 union { 79 /* FIXME: add #ifdefs according to host endianess */ 80 struct { 81 uint8_t value_low; 82 uint8_t value_high; 83 }; 84 uint16_t value; 85 }; 86 /** Auxilary parameter to the request. 87 * Typically, it is offset to something. 88 */ 89 uint16_t index; 90 /** Length of extra data. */ 91 uint16_t length; 92 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 93 66 94 #endif 67 95 /**
Note:
See TracChangeset
for help on using the changeset viewer.