Tony Lin / Mbed 2 deprecated BX-car_s

Dependencies:   mbed-rtos mbed

Fork of BX-car_2 by Tony Lin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers camera_api.h Source File

camera_api.h

00001 #include "bx-adc.h"
00002 #include "mbed.h"
00003  
00004  
00005 //cause same si and clk  camR ,camL are synchronous
00006  
00007 class BX_camera{
00008     
00009   public:
00010     
00011   //static  
00012      void read(void); //block in here
00013     
00014      
00015     
00016     
00017     BX_camera(int p);
00018     
00019     
00020     int  black_centerR(void); //index 0~127
00021     int  black_centerL(void); 
00022     
00023     
00024     char sign_line_imageL[128];
00025     char sign_line_imageR[128];
00026     
00027     int de_v;
00028     int de_v2;
00029     
00030     
00031   private:
00032     
00033            FastAnalogIn* line_CamR;
00034            FastAnalogIn* line_CamL;  
00035            DigitalOut* cam_clk;
00036            DigitalOut* si;
00037            
00038            unsigned int line_imageR[128];   //may buffer
00039            unsigned int line_imageL[128];
00040            
00041          
00042           int w_f_vL;
00043           int b_f_vL;
00044    
00045           int w_f_vR;
00046           int b_f_vR;
00047     
00048     
00049           int padding;
00050  
00051     
00052     
00053     
00054     };