CameraC328 class is a camera driver for COMedia JPEG color camera module named C328.

The picture from SparkFun. http://www.sparkfun.com/commerce/product_info.php?products_id=9334
http://www.sparkfun.com/datasheets/Sensors/Imaging/C328.pdf
Here is the connection of the sample program.
You can change the PinName at the constructor.
| mbed | C328 |
| p9(TX) | RxD |
| p10(RX) | TxD |

Public Types |
|
| enum | ColorType |
|
Color type. More... |
|
| enum | RawResolution |
|
Raw resolution. More... |
|
| enum | JpegResolution |
|
JPEG resolution. More... |
|
| enum | ErrorNumber |
|
Error number. More... |
|
| enum | PictureType |
|
Picture type. More... |
|
| enum | SnapshotType |
|
Snapshot type. More... |
|
| enum | Baud |
|
Baud rate. More... |
|
| enum | ResetType |
|
Reset type. More... |
|
| enum | DataType |
|
Data type. More... |
|
Public Member Functions |
|
| CameraC328 (PinName tx, PinName rx, Baud baud=Baud19200) | |
|
Constructor.
|
|
| ~CameraC328 () | |
|
Destructor.
|
|
| ErrorNumber | sync () |
|
Make a sync.
|
|
| ErrorNumber | init ( ColorType ct, RawResolution rr, JpegResolution jr) |
|
Initialize.
|
|
| ErrorNumber | getUncompressedSnapshotPicture (void(*func)(size_t done, size_t total, char c)) |
|
Get uncompressed snapshot picture.
|
|
| ErrorNumber | getUncompressedPreviewPicture (void(*func)(size_t done, size_t total, char c)) |
|
Get uncompressed preview picture.
|
|
| ErrorNumber | getJpegSnapshotPicture (void(*func)(char *buf, size_t siz)) |
|
Get JPEG snapshot picture.
|
|
| ErrorNumber | getJpegPreviewPicture (void(*func)(char *buf, size_t siz)) |
|
Get JPEG preview picture.
|
|
A test program for CameraC328 library.
Please login to post comments.
can i use dis cam module n mbed for video image processing ?