UVC host library

Dependents:   LifeCam WebcamServer

Committer:
va009039
Date:
Tue Jul 31 13:58:03 2012 +0000
Revision:
0:b0f04c137829
fix probe commit control

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:b0f04c137829 1 #include "mbed.h"
va009039 0:b0f04c137829 2 #include "uvc.h"
va009039 0:b0f04c137829 3 #define __DEBUG
va009039 0:b0f04c137829 4 #include "mydbg.h"
va009039 0:b0f04c137829 5
va009039 0:b0f04c137829 6 UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size)
va009039 0:b0f04c137829 7 {
va009039 0:b0f04c137829 8 UsbErr rc;
va009039 0:b0f04c137829 9 if (req == SET_CUR) {
va009039 0:b0f04c137829 10 rc = m_pDev->controlSend(
va009039 0:b0f04c137829 11 USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE,
va009039 0:b0f04c137829 12 req, cs<<8, index, buf, size);
va009039 0:b0f04c137829 13 return rc;
va009039 0:b0f04c137829 14 }
va009039 0:b0f04c137829 15 rc = m_pDev->controlReceive(
va009039 0:b0f04c137829 16 USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE,
va009039 0:b0f04c137829 17 req, cs<<8, index, buf, size);
va009039 0:b0f04c137829 18 return rc;
va009039 0:b0f04c137829 19 }