MARMEX-VB : "Mary Camera module" library
Dependents: MARMEX_VB_test MARMEX_VB_Hello
MARMEX-VB (MARY-VB) camera module library for mbed. (This module may be available in Japan only.)
Kown problem / 既知の問題
The read data may have contouring. In this case, it may require reset or changing order of data reading. The order change API is available as "read_order_change()" function.
カメラから読み出したデータに擬似輪郭が発生することがあります.この問題にはシステム全体のリセットを行うか,または読み出し順の変更を行うことで対処して下さい.読み出し順の変更はAPIの"read_order_change()"関数を使うことができます.
Diff: MARMEX_VB.h
- Revision:
- 4:8ef31b67c0ab
- Parent:
- 3:7f26004cfbce
- Child:
- 5:84e6c89a9a6d
--- a/MARMEX_VB.h Mon Jun 16 14:02:58 2014 +0000 +++ b/MARMEX_VB.h Thu Jun 19 12:21:43 2014 +0000 @@ -8,7 +8,7 @@ * * MARMEX_VB Camera control library for mbed */ - + #ifndef MBED_MARMEX_VB #define MBED_MARMEX_VB @@ -56,6 +56,8 @@ * @endcode */ +#define OPTIMIZATION_ENABLED + #define DEFAULT_PICTURE_SIZE QCIF //#define DEFAULT_PICTURE_SIZE VGA //#define DEFAULT_PICTURE_SIZE QVGA @@ -183,6 +185,22 @@ * @param n_of_pixels pixels to be read */ void read_a_line( short *p, int line_number, int x_offset, int n_of_pixels ); + + /** Read one line data + * + * Reads 1 line data from MARMEX_VB + * This function should be called when the data transfer done to resume the buffer update by camera + * + * This function is highly optimized for LPC1768 and LPC11U35 with a specific SPI port + * LPC1768 : LPC_SSP1 + * LPC11U35 : LPC_SSP0 + * + * @param *p pointer to array of short + * @param line_number to select which line want to read + * @param x_offset holizontal offset (from left) to start the read + * @param n_of_pixels pixels to be read + */ + void read_a_line_SPI_FIFO_READ( short *p, int line_number, int x_offset, int n_of_pixels ); /** Read order change *