Hepta_Cam&GPS
Dependents: HEPTA2_assembly_0720 HEPTA2_ALL HEPTA2_ALL_ver0803_02
Fork of HeptaSerial by
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);