Changes in uspace/lib/usb/src/request.c [bc1c6fb:4723444] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/request.c
rbc1c6fb r4723444 110 110 * (must be in USB endianness). 111 111 * @param data Buffer where to store data accepted during the DATA stage. 112 * (they will come in USB endian ness).112 * (they will come in USB endianess). 113 113 * @param data_size Size of the @p data buffer 114 114 * (in native endianness). … … 161 161 * the new address. 162 162 * 163 * @see usb_drv_reserve_default_address 164 * @see usb_drv_release_default_address 165 * @see usb_drv_request_address 166 * @see usb_drv_release_address 167 * @see usb_drv_bind_address 168 * 163 169 * @param pipe Control endpoint pipe (session must be already started). 164 170 * @param new_address New USB address to be set (in native endianness). … … 195 201 * @param[in] pipe Control endpoint pipe (session must be already started). 196 202 * @param[in] request_type Request type (standard/class/vendor). 197 * @param[in] recipient Request recipient (device/interface/endpoint).198 203 * @param[in] descriptor_type Descriptor type (device/configuration/HID/...). 199 204 * @param[in] descriptor_index Descriptor index. … … 230 235 * @param[in] pipe Control endpoint pipe (session must be already started). 231 236 * @param[in] request_type Request type (standard/class/vendor). 232 * @param[in] recipient Request recipient (device/interface/endpoint).233 237 * @param[in] descriptor_type Descriptor type (device/configuration/HID/...). 234 238 * @param[in] descriptor_index Descriptor index. … … 524 528 return EEMPTY; 525 529 } 526 /* Sub tract first 2 bytes (length and descriptor type). */530 /* Substract first 2 bytes (length and descriptor type). */ 527 531 string_descriptor_size -= 2; 528 532 … … 544 548 size_t i; 545 549 for (i = 0; i < langs_count; i++) { 546 /* Language code from the descriptor is in USB endian ness. */550 /* Language code from the descriptor is in USB endianess. */ 547 551 /* FIXME: is this really correct? */ 548 552 uint16_t lang_code = (string_descriptor[2 + 2 * i + 1] << 8) … … 565 569 * 566 570 * @param[in] pipe Control endpoint pipe (session must be already started). 567 * @param[in] index String index (in native endian ness),571 * @param[in] index String index (in native endianess), 568 572 * first index has number 1 (index from descriptors can be used directly). 569 * @param[in] lang String language (in native endian ness).573 * @param[in] lang String language (in native endianess). 570 574 * @param[out] string_ptr Where to store allocated string in native encoding. 571 575 * @return Error code. … … 609 613 goto leave; 610 614 } 611 /* Sub tract first 2 bytes (length and descriptor type). */615 /* Substract first 2 bytes (length and descriptor type). */ 612 616 string_size -= 2; 613 617
Note:
See TracChangeset
for help on using the changeset viewer.