good

Dependencies:   mbed

Fork of BX-car by Clark Lin

camera_api.h

Committer:
backman
Date:
2014-06-04
Revision:
2:c51647d3c14d
Parent:
1:82bc25a7b68b
Child:
3:c5f2281b3ed2

File content as of revision 2:c51647d3c14d:

#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
    
     unsigned int line_imageR[128];
     unsigned int line_imageL[128];
    
    
    BX_camera();
    
   
    
    
    char sign_line_imageL[128];
    char sign_line_imageR[128];
    

    
  private:
    
           FastAnalogIn* line_CamR;
           FastAnalogIn* line_CamL;  
           DigitalOut* cam_clk;
           DigitalOut* si;
         
          int w_f_vL;
          int b_f_vL;
   
          int w_f_vR;
          int b_f_vR;
    
    
    

    
    
    
    };