![](/media/cache/profiles/5f14615696649541a025d3d0f8e0447f.jpg.50x50_q85.jpg)
JBBoardに接続したモーター2つをRCBControllerでコントロールするテストです。
Dependencies: FatFileSystem TB6612FNG2 mbed
Fork of JBB_BTLE_Test by
uvc/uvcctl.cpp
- Committer:
- jksoft
- Date:
- 2014-05-12
- Revision:
- 7:3ed1e36587d4
- Parent:
- 0:1ed23ab1345f
File content as of revision 7:3ed1e36587d4:
#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; }