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: HEPTA_assembly template HEPTA_GS
Diff: CameraC1098.h
- Revision:
- 1:d16a4c3a272a
- Parent:
- 0:5a6468b4164d
--- a/CameraC1098.h Mon Jul 09 10:23:32 2012 +0000
+++ b/CameraC1098.h Wed Jul 19 09:07:30 2017 +0000
@@ -99,7 +99,8 @@
* You can block this function until saving the image datas.
* @return Status of the error.
*/
- ErrorNumber getJpegSnapshotPicture(void(*func)(char *buf, size_t siz));
+ ErrorNumber getJpegSnapshotPicture();
+ ErrorNumber getJpegSnapshotPicture_data();
/** setmbedBaud
* mbed Interface Speed.
@@ -107,13 +108,18 @@
* @param baud mbed Interface Speed.
*/
void setmbedBaud(Baud baud);
-
+ void Sync(void);
+ void initialize(Baud baud,JpegResolution jr);
+ void test_jpeg_snapshot_picture(void);
+ void test_jpeg_snapshot_data(void);
+ void jpeg_callback(char *buf, size_t siz);
private:
SerialBuffered serial;
static const int COMMAND_LENGTH = 6;
static const int SYNCMAX = 60;
static const int packageSize = 256;
-
+ static const int CAPTURE_FRAMES = 3;
+
ErrorNumber sendInitial(Baud band, JpegResolution jr);
ErrorNumber sendGetPicture(void);
ErrorNumber sendSnapshot(void);