Changeset 00aece0 in mainline for uspace/lib/usbdev/include/usb/dev/request.h
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/request.h
rbd5f3b7 r00aece0 82 82 */ 83 83 uint8_t request_type; 84 #define SETUP_REQUEST_TYPE_DEVICE_TO_HOST (1 << 7) 85 #define SETUP_REQUEST_TYPE_GET_TYPE(rt) ((rt >> 5) & 0x3) 86 #define SETUP_REQUEST_TYPE_GET_RECIPIENT(rec) (rec & 0x1f) 87 #define SETUP_REQUEST_TO_HOST(type, recipient) \ 88 (uint8_t)((1 << 7) | ((type & 0x3) << 5) | (recipient & 0x1f)) 89 #define SETUP_REQUEST_TO_DEVICE(type, recipient) \ 90 (uint8_t)(((type & 0x3) << 5) | (recipient & 0x1f)) 91 84 92 /** Request identification. */ 85 93 uint8_t request; … … 115 123 int usb_request_set_feature(usb_pipe_t *, usb_request_type_t, 116 124 usb_request_recipient_t, uint16_t, uint16_t); 117 int usb_request_set_address(usb_pipe_t *, usb_address_t);118 125 int usb_request_get_descriptor(usb_pipe_t *, usb_request_type_t, 119 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 126 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 120 127 size_t *); 121 128 int usb_request_get_descriptor_alloc(usb_pipe_t *, usb_request_type_t, … … 131 138 int usb_request_set_descriptor(usb_pipe_t *, usb_request_type_t, 132 139 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t); 140 133 141 int usb_request_get_configuration(usb_pipe_t *, uint8_t *); 134 142 int usb_request_set_configuration(usb_pipe_t *, uint8_t);
Note:
See TracChangeset
for help on using the changeset viewer.