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@0:de03cbbcd0ff, 2015-11-30 (annotated)
- Committer:
- mbed_Cookbook_SE
- Date:
- Mon Nov 30 09:32:15 2015 +0000
- Revision:
- 0:de03cbbcd0ff
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 1 | #include "mbed.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 2 | #include "uvc.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 3 | #define __DEBUG |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 4 | #include "mydbg.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 5 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 6 | UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size) |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 7 | { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 8 | UsbErr rc; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 9 | if (req == SET_CUR) { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 10 | rc = m_pDev->controlSend( |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 11 | USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 12 | req, cs<<8, index, buf, size); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 13 | return rc; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 14 | } |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 15 | rc = m_pDev->controlReceive( |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 16 | USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 17 | req, cs<<8, index, buf, size); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 18 | return rc; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 19 | } |