* usb_host_device_close(dev);
* }
*
- * usb_host_free_devices(devs);
+ * usb_host_free_device_list(devs);
* @endcode
*
* The example code above shows how to open a device for communication and clean up
* usb_host_unref_device() are used to ref or unref device. When ref counter
* reach 0 device will be freed.
* Devices reached by calling usb_host_get_devices() have a reference count of
- * 1, and usb_host_free_devices() can optionally decrease the reference count
+ * 1, and usb_host_free_device_list() can optionally decrease the reference count
* on all devices in the list. usb_host_device_open() adds another reference which is
* later destroyed by usb_host_device_close().
*
*
* @code
* int transferred;
- * usb_host_cfg_h cfg;
+ * usb_host_config_h cfg;
* usb_host_interface_h iface;
* usb_host_endpoint_h ep;
*
* char *data;
*
* // Get the status value
- * usb_host_get_transfer_status(transfer, &status);
+ * usb_host_transfer_get_status(transfer, &status);
*
* // Check the status value
* if (status != USB_HOST_TRANSFER_COMPLETED) {
* }
*
* // Get the data buffer
- * usb_host_get_data(transfer, &data, &length);
+ * usb_host_transfer_get_data(transfer, &data, &length);
*
* // Handle received data
* // ...
* 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_set_iso_packet_length(transfer, i, packet_lenght);
+ * ret = usb_host_transfer_set_iso_packet_length(transfer, i, packet_lenght);
* //...
*
- * ret = usb_host_get_iso_packet_data(transfer, i, &data, &len);
+ * ret = usb_host_transfer_get_iso_packet_data(transfer, i, &data, &len);
* // fill received buffer with your data
* // ...
* }