MODIFIED BY FEVZI YAZGAN BOUDRATE AND IMAGESIZE FUNCTION ADDED ALSO IT SENDS THE IMAGE AT ONE TIME TO THE MBED. SO IT IS FASTER TO SEND IMAGE AT A ONE TIME:)
Dependents: 10_Camera_LS_Y201_TestProgram
Camera_LS_Y201 Class Reference
Camera. More...
#include <Camera_LS_Y201.h>
Public Types | |
enum | Bauds |
Image size. More... | |
enum | ErrorCode |
Error code. More... | |
enum | ImageSize { ImageSize160x120, ImageSize320x280, ImageSize640x480 } |
Image size. More... | |
enum | Baudrate |
Baudrate. More... | |
Public Member Functions | |
Camera_LS_Y201 (PinName tx, PinName rx, Bauds bs) | |
Create. | |
~Camera_LS_Y201 () | |
Dispose. | |
ErrorCode | reset () |
Reset module. | |
ErrorCode | setImageSize (ImageSize is) |
Set image size. | |
ErrorCode | takePicture () |
Take picture. | |
ErrorCode | readJpegFileSize (int *fileSize) |
Read jpeg file size. | |
ErrorCode | readJpegFileContent (void(*func)(int total, uint8_t *buf, size_t siz)) |
Read jpeg file content. | |
ErrorCode | stopTakingPictures () |
Stop taking pictures. | |
ErrorCode | setBaudrate (Baudrate bt) |
Set Baudrate. |
Detailed Description
Camera.
Definition at line 38 of file Camera_LS_Y201.h.
Member Enumeration Documentation
enum Baudrate |
Baudrate.
Definition at line 133 of file Camera_LS_Y201.h.
enum Bauds |
Image size.
Definition at line 44 of file Camera_LS_Y201.h.
enum ErrorCode |
Error code.
Definition at line 67 of file Camera_LS_Y201.h.
enum ImageSize |
Image size.
Definition at line 79 of file Camera_LS_Y201.h.
Constructor & Destructor Documentation
Camera_LS_Y201 | ( | PinName | tx, |
PinName | rx, | ||
Bauds | bs | ||
) |
Create.
============================================================================= LS-Y201 device driver class (Version 0.0.1) Reference documents: LinkSprite JPEG Color Camera Serial UART Interface January 2010 ============================================================================= Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems)
- Parameters:
-
tx Transmitter. rx Receiver.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================= Create.
- Parameters:
-
tx Transmitter. rx Receiver.
Definition at line 37 of file Camera_LS_Y201.cpp.
~Camera_LS_Y201 | ( | ) |
Dispose.
Definition at line 57 of file Camera_LS_Y201.cpp.
Member Function Documentation
Camera_LS_Y201::ErrorCode readJpegFileContent | ( | void(*)(int total, uint8_t *buf, size_t siz) | func ) |
Read jpeg file content.
- Parameters:
-
func A pointer to a call back function.
- Returns:
- Error code.
Definition at line 228 of file Camera_LS_Y201.cpp.
Camera_LS_Y201::ErrorCode readJpegFileSize | ( | int * | fileSize ) |
Read jpeg file size.
- Parameters:
-
fileSize File size.
- Returns:
- Error code.
Definition at line 190 of file Camera_LS_Y201.cpp.
Camera_LS_Y201::ErrorCode reset | ( | ) |
Camera_LS_Y201::ErrorCode setBaudrate | ( | Baudrate | bt ) |
Set Baudrate.
- Returns:
- Error code.
- Parameters:
-
is baudrate.
- Returns:
- Error code.
Definition at line 466 of file Camera_LS_Y201.cpp.
Camera_LS_Y201::ErrorCode setImageSize | ( | ImageSize | is ) |
Set image size.
- Parameters:
-
is Image size.
- Returns:
- Error code.
Definition at line 102 of file Camera_LS_Y201.cpp.
Camera_LS_Y201::ErrorCode stopTakingPictures | ( | ) |
Camera_LS_Y201::ErrorCode takePicture | ( | ) |
Generated on Fri Jul 15 2022 08:42:25 by 1.7.2