mbed base bard check program for BlueTooth USB dongle module (3 switches, 6 leds, I2C LCD, A/D)
Fork of BTstack by
Diff: uvc/uvcctl.cpp
- Revision:
- 1:b657594559be
- Parent:
- 0:1ed23ab1345f
- Child:
- 2:871b41f4789e
--- a/uvc/uvcctl.cpp Tue Jun 26 14:27:45 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; -}