Webcam Server.
Dependencies: uvchost FatFileSystem mbed HTTPServer NetServicesMin
Diff: uvc/uvcctl.cpp
- Revision:
- 1:7a4f2c038803
- Parent:
- 0:2b4ea8a138e5
diff -r 2b4ea8a138e5 -r 7a4f2c038803 uvc/uvcctl.cpp --- a/uvc/uvcctl.cpp Wed Jun 06 11:47:06 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -#include "mbed.h" -#include "uvc.h" -#define __DEBUG -#include "mydbg.h" - -UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size) -{ - UsbErr rc; - if (req == SET_CUR) { - rc = m_pDev->controlSend( - USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, - req, cs<<8, index, buf, size); - return rc; - } - rc = m_pDev->controlReceive( - USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, - req, cs<<8, index, buf, size); - return rc; -}