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 TB6612FNG2 mbed
uvc/uvcctl.cpp
- Committer:
- mbed_Cookbook_SE
- Date:
- 2015-11-30
- Revision:
- 0:de03cbbcd0ff
File content as of revision 0:de03cbbcd0ff:
#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;
}