Changes in uspace/lib/usbdev/include/usb/dev/request.h [b6bade0:160b75e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/request.h
rb6bade0 r160b75e 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 92 84 /** Request identification. */ 93 85 uint8_t request; … … 123 115 int usb_request_set_feature(usb_pipe_t *, usb_request_type_t, 124 116 usb_request_recipient_t, uint16_t, uint16_t); 117 int usb_request_set_address(usb_pipe_t *, usb_address_t); 125 118 int usb_request_get_descriptor(usb_pipe_t *, usb_request_type_t, 126 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 119 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 127 120 size_t *); 128 121 int usb_request_get_descriptor_alloc(usb_pipe_t *, usb_request_type_t, … … 138 131 int usb_request_set_descriptor(usb_pipe_t *, usb_request_type_t, 139 132 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t); 140 141 133 int usb_request_get_configuration(usb_pipe_t *, uint8_t *); 142 134 int usb_request_set_configuration(usb_pipe_t *, uint8_t);
Note:
See TracChangeset
for help on using the changeset viewer.