diff options
author | Mike Lockwood <lockwood@android.com> | 2010-07-24 13:57:21 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-07-24 13:57:57 -0400 |
commit | 1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc (patch) | |
tree | 64cbb6709e1fa67fcf2470312e98eeac600dcb26 /include/usbhost | |
parent | 8137a8d941d7b8db16be23a06a834ef4aaaabef9 (diff) | |
download | system_core-1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc.zip system_core-1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc.tar.gz system_core-1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc.tar.bz2 |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h index 7432277..04c494d 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. |