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
Fork of F401RE-USBHost by
USBHostCam Class Reference
A class to communicate a Cam. More...
#include <USBHostCam.h>
Inherits IUSBEnumerator, BaseUvc, and decodeMJPEG.
Public Member Functions | |
USBHostCam (uint8_t size=_160x120, uint8_t option=0, CamInfo *user_caminfo=NULL) | |
Constructor. | |
bool | connected () |
Check if a Cam device is connected. | |
bool | connect () |
Try to connect to a Cam device. | |
int | readJPEG (uint8_t *buf, int size, int timeout_ms=15 *1000) |
read jpeg image |
Detailed Description
A class to communicate a Cam.
Definition at line 43 of file USBHostCam.h.
Constructor & Destructor Documentation
USBHostCam | ( | uint8_t | size = _160x120 , |
uint8_t | option = 0 , |
||
CamInfo * | user_caminfo = NULL |
||
) |
Constructor.
Definition at line 13 of file USBHostCam.cpp.
Member Function Documentation
bool connect | ( | ) |
Try to connect to a Cam device.
- Returns:
- true if connection was successful
Definition at line 44 of file USBHostCam.cpp.
bool connected | ( | ) |
Check if a Cam device is connected.
- Returns:
- true if a Cam device is connected
Definition at line 39 of file USBHostCam.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 120 of file USBHostCam.cpp.
Generated on Sat Jul 16 2022 20:21:19 by
