summaryrefslogtreecommitdiff
path: root/include/usbhost
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-07-24 13:57:21 -0400
committerMike Lockwood <lockwood@android.com>2010-07-24 13:57:57 -0400
commit1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc (patch)
tree64cbb6709e1fa67fcf2470312e98eeac600dcb26 /include/usbhost
parent8137a8d941d7b8db16be23a06a834ef4aaaabef9 (diff)
libusbhost: Add usb_device_send_control for sending raw commands on endpoint 0.
Change-Id: If883f2690c4031b9ba4d5cf943b5bf5c13193bce Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/usbhost')
-rw-r--r--include/usbhost/usbhost.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index 7432277ec..04c494da2 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -90,6 +90,15 @@ uint16_t usb_device_get_vendor_id(struct usb_device *device);
/* Returns the USB product ID from the device descriptor for the USB device */
uint16_t usb_device_get_product_id(struct usb_device *device);
+/* Sends a control message to the specified device on endpoint zero */
+int usb_device_send_control(struct usb_device *device,
+ int requestType,
+ int request,
+ int value,
+ int index,
+ int length,
+ void* buffer);
+
/* Returns a USB descriptor string for the given string ID.
* Used to implement usb_device_get_manufacturer_name,
* usb_device_get_product_name and usb_device_get_serial.