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: TextLCD USBHost mbed
Fork of USBHostC270_example by
USBHostC270 Class Reference
A class to communicate a C270. More...
#include <USBHostC270.h>
Inherits BaseUvc, and decodeMJPEG.
Public Member Functions | |
| USBHostC270 (int formatIndex=C270_MJPEG, int frameIndex=C270_160x120, uint32_t interval=_5FPS) | |
| Constructor. | |
| bool | connected () |
| Check if a C270 device is connected. | |
| bool | connect () |
| Try to connect to a C270 device. | |
| int | readJPEG (uint8_t *buf, int size, int timeout_ms=15 *1000) |
| read jpeg image | |
Detailed Description
A class to communicate a C270.
Definition at line 37 of file USBHostC270.h.
Constructor & Destructor Documentation
| USBHostC270 | ( | int | formatIndex = C270_MJPEG, |
| int | frameIndex = C270_160x120, |
||
| uint32_t | interval = _5FPS |
||
| ) |
Constructor.
Definition at line 14 of file USBHostC270.cpp.
Member Function Documentation
| bool connect | ( | ) |
Try to connect to a C270 device.
- Returns:
- true if connection was successful
Definition at line 42 of file USBHostC270.cpp.
| bool connected | ( | ) |
Check if a C270 device is connected.
- Returns:
- true if a MSD device is connected
Definition at line 36 of file USBHostC270.cpp.
| int readJPEG | ( | uint8_t * | buf, |
| int | size, | ||
| int | timeout_ms = 15*1000 |
||
| ) |
read jpeg image
- Parameters:
-
buf read buffer size buffer size timeout_ms timeout default 15sec
- Returns:
- jpeg size if read success else -1
Definition at line 134 of file USBHostC270.cpp.
Generated on Sun Aug 7 2022 01:07:25 by
1.7.2
