Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem mbed
Fork of BTstack by
uvcctl.cpp
00001 #include "mbed.h" 00002 #include "uvc.h" 00003 #define __DEBUG 00004 #include "mydbg.h" 00005 00006 UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size) 00007 { 00008 UsbErr rc; 00009 if (req == SET_CUR) { 00010 rc = m_pDev->controlSend( 00011 USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 00012 req, cs<<8, index, buf, size); 00013 return rc; 00014 } 00015 rc = m_pDev->controlReceive( 00016 USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 00017 req, cs<<8, index, buf, size); 00018 return rc; 00019 }
Generated on Thu Jul 14 2022 15:03:49 by
1.7.2
