譯文 張 / Mbed 2 deprecated 7_7Boboobooo

Dependencies:   mbed

Fork of Boboobooo by Clark 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();
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 
00028     
00029   private:
00030     
00031            FastAnalogIn* line_CamR;
00032            FastAnalogIn* line_CamL;  
00033            DigitalOut* cam_clk;
00034            DigitalOut* si;
00035            
00036            unsigned int line_imageR[128];   //may buffer
00037            unsigned int line_imageL[128];
00038            
00039          
00040           int w_f_vL;
00041           int b_f_vL;
00042    
00043           int w_f_vR;
00044           int b_f_vR;
00045     
00046     
00047     
00048 
00049     
00050     
00051     
00052     };