BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS
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