Library for LinkSprite Y201 JPEG serial camera.
Diff: Y201.h
- Revision:
- 1:30a6aeda21c2
- Parent:
- 0:4c0fca059a0a
- Child:
- 2:7d8a6087f2e5
--- a/Y201.h Sat Jun 02 11:47:56 2012 +0000
+++ b/Y201.h Sat Jun 02 13:13:52 2012 +0000
@@ -5,10 +5,10 @@
private:
- // serial commands to drive camera
- static const int resetSeq [4];
- static const int resetSeqLen = 4;
- static const int resetSeqAck [4];
+ // serial commands to drive camera
+ static const int resetSeq [4];
+ static const int resetSeqLen = 4;
+ static const int resetSeqAck [4];
static const int resetSeqAckLen = 4;
static const int takePicSeq [5];
static const int takePicSeqLen = 5;
@@ -37,17 +37,17 @@
e640x480
};
- Y201(PinName tx, PinName rx, const char *name = NULL);
+ Y201(PinName tx, PinName rx, const char *name = NULL);
- bool setImageSize(Y201ImageSize size);
+ bool setImageSize(Y201ImageSize size);
bool takePicture();
bool readImageSize(int *fileSize);
bool readImage(int startAddress, int readLen, uint8_t *readBuffer);
void trash();
- bool waitForInt(int bytes, int *fileSize);
- bool waitFor(const int *seq, const int seqLen);
- void putSeq(const int *seq, int seqLen);
- bool reset();
+ bool waitForInt(int bytes, int *fileSize);
+ bool waitFor(const int *seq, const int seqLen);
+ void putSeq(const int *seq, int seqLen);
+ bool reset();
};



