CANSAT_CAMERA
Dependents: CANSAT_COMBINED CANSAT_CAMERA_servo CANSAT_CAMERA2
Fork of Camera_LS_Y201 by
Diff: Camera_LS_Y201.h
- Revision:
- 6:2e14476d7164
- Parent:
- 1:43358d40f879
--- a/Camera_LS_Y201.h Mon Aug 10 16:34:15 2015 +0000 +++ b/Camera_LS_Y201.h Wed Sep 09 16:42:16 2015 +0000 @@ -78,7 +78,7 @@ * @return Error code. */ ErrorCode reset(); - +ErrorCode baud(); /** * Set image size. * @@ -116,6 +116,17 @@ * @return Error code. */ ErrorCode stopTakingPictures(); + bool sendBytes(uint8_t *buf, size_t len, int timeout_us); + + /** + * Receive bytes from camera module. + * + * @param buf Pointer to the data buffer. + * @param len Length of the data buffer. + * + * @return True if the data received. + */ + bool recvBytes(uint8_t *buf, size_t len, int timeout_us); private: SerialBuffered serial; @@ -135,18 +146,7 @@ * * @return True if the data sended. */ - bool sendBytes(uint8_t *buf, size_t len, int timeout_us); - - /** - * Receive bytes from camera module. - * - * @param buf Pointer to the data buffer. - * @param len Length of the data buffer. - * - * @return True if the data received. - */ - bool recvBytes(uint8_t *buf, size_t len, int timeout_us); - + /** * Wait received. *