Changeset 20eaa82 in mainline for uspace/lib/usb/include/usb/request.h
- Timestamp:
- 2017-10-15T13:44:39Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2770b66
- Parents:
- 867b375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/request.h
r867b375 r20eaa82 112 112 const usb_device_request_setup_packet_t *request); 113 113 114 #define GET_DEVICE_DESC(size) \ 115 { \ 116 .request_type = SETUP_REQUEST_TYPE_DEVICE_TO_HOST \ 117 | (USB_REQUEST_TYPE_STANDARD << 5) \ 118 | USB_REQUEST_RECIPIENT_DEVICE, \ 119 .request = USB_DEVREQ_GET_DESCRIPTOR, \ 120 .value = uint16_host2usb(USB_DESCTYPE_DEVICE << 8), \ 121 .index = uint16_host2usb(0), \ 122 .length = uint16_host2usb(size), \ 123 }; 124 125 #define SET_ADDRESS(address) \ 126 { \ 127 .request_type = SETUP_REQUEST_TYPE_HOST_TO_DEVICE \ 128 | (USB_REQUEST_TYPE_STANDARD << 5) \ 129 | USB_REQUEST_RECIPIENT_DEVICE, \ 130 .request = USB_DEVREQ_SET_ADDRESS, \ 131 .value = uint16_host2usb(address), \ 132 .index = uint16_host2usb(0), \ 133 .length = uint16_host2usb(0), \ 134 }; 135 136 #define CTRL_PIPE_MIN_PACKET_SIZE 8 137 114 138 #endif 115 139 /**
Note:
See TracChangeset
for help on using the changeset viewer.