* usb_host_config_get_interface(cfg, interface_number, &iface);
* usb_host_interface_get_endpoint(iface, ep_number, &ep);
*
- * ret = usb_host_transfer(ep, data, length, &transfered, 0);
+ * ret = usb_host_transfer(ep, data, length, &transferred, 0);
* if (ret < 0)
* error();
* @endcode
* Before submitting the transfer you must setup isochronous packets lengths (and data, if making out transfer).
* @code
* for (i = 0; i < num_iso_packets; ++i) {
- * ret = usb_host_transfer_set_iso_packet_length(transfer, i, packet_lenght);
+ * ret = usb_host_transfer_set_iso_packet_length(transfer, i, packet_length);
* //...
*
* ret = usb_host_transfer_get_iso_packet_data(transfer, i, &data, &len);
* You can make asynchronous control transfers as well. They use the same data type as other asynchronous transfers (#usb_host_transfer_h)
* and can be handled in similar way.
*
- * A control transfer need specific format of data in buffer, i.e. first 8 bytes of buffer need to contain a setup packet.
- * You can find more informations about setup packets in usb protocol specification.
+ * A control transfer needs specific format of data in buffer, i.e. first 8 bytes of buffer need to contain a setup packet.
+ * You can find more information about setup packets in usb protocol specification.
* This API provides functions helping with filling the setup packet.
*
* @code