QQQ

Dependencies:   mbed-rtos mbed

Fork of BX-car_s by Tony Lin

camera_api.h

Committer:
physicsgood
Date:
2014-07-02
Revision:
23:d6d4e8adf7fe
Parent:
21:5f7efc1ca8ad

File content as of revision 23:d6d4e8adf7fe:

#include "bx-adc.h"
#include "mbed.h"
 
 
//cause same si and clk  camR ,camL are synchronous
 
class BX_camera{
    
  public:
    
  //static  
     void read(void); //block in here
    
     
    
    
    BX_camera(int p);
    
    
    int  black_centerR(void); //index 0~127
    int  black_centerL(void); 
    int  black_center(void);
    
    
    char sign_line_imageL[128];
    char sign_line_imageR[128];
    
    int de_v;
    int de_v2;
    
    
  private:
    
           FastAnalogIn* line_CamR;
           FastAnalogIn* line_CamL;  
           DigitalOut* cam_clk;
           DigitalOut* si;
           
           unsigned int line_imageR[128];   //may buffer
           unsigned int line_imageL[128];
           
         
          int w_f_vL;
          int b_f_vL;
   
          int w_f_vR;
          int b_f_vR;
    
    
          int padding;
 
    
    
    
    };