Changes in uspace/lib/usbdev/include/usb/dev/request.h [160b75e:b6bade0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/request.h
r160b75e rb6bade0 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.