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.
Dependents: Camera_C328_HTTP_SDcard_file_server_WIZwiki-W7500
Fork of CameraC328 by
Diff: CameraC328.h
- Revision:
- 1:167e51d598cf
- Parent:
- 0:7e51c3176eb7
- Child:
- 2:6a72fcad5c0a
diff -r 7e51c3176eb7 -r 167e51d598cf CameraC328.h
--- a/CameraC328.h Sun Jun 27 03:36:10 2010 +0000
+++ b/CameraC328.h Sun Jun 27 05:04:04 2010 +0000
@@ -51,6 +51,11 @@
SendPictureError = 0xf5,
SendCommandError = 0xff
};
+
+ enum SnapshotType {
+ CompressedPicture = 0x00,
+ UncompressedPicture = 0x01
+ };
enum PictureType {
SnapshotPicture = 0x01,
@@ -59,8 +64,8 @@
};
ErrorNumber sync();
- ErrorNumber getPicture(PictureType pt, void(*func)(size_t done, size_t total, char c));
ErrorNumber init(ColorType ct, RawResolution rr, JpegResolution jr);
+ ErrorNumber getJpegSnapshotPicture(void(*func)(size_t done, size_t total, char c));
private:
Serial serial;
@@ -69,22 +74,6 @@
static const int BAUD = 19600;
static const int SYNCMAX = 60;
- /*
- * Get snapshot picture (uncompressed snapshot picture)
- *
- * @param func Pointer to a callback function.
- * @return Status of the error.
- */
- ErrorNumber getSnapshotPicture(void(*func)(size_t done, size_t total, char c));
-
- /*
- * Get preview picture (uncompressed preview picture)
- *
- * @param func Pointer to a callback function.
- * @return Status of the error.
- */
- ErrorNumber getPreviewPicture(void(*func)(size_t done, size_t total, char c));
-
/**
* Send bytes to camera module.
*
