shared

Dependencies:   mbed-rtos mbed

Fork of Boboobooo by kao yi

Revision:
2:c51647d3c14d
Parent:
1:82bc25a7b68b
Child:
3:c5f2281b3ed2
diff -r 82bc25a7b68b -r c51647d3c14d camera_api.h
--- a/camera_api.h	Tue Jun 03 15:53:55 2014 +0000
+++ b/camera_api.h	Wed Jun 04 12:56:52 2014 +0000
@@ -1,51 +1,46 @@
 #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;
+    
     
     
-    public:
-    
-    BX_camera(char cam);
-    
-    void read(void); //block in here
-    
-    
-    unsigned int line_image[128];
-    
-    char sign_line_image[128];
-    
-    private:
-    
-    
-    DigitalOut *cam_clk;
 
-    DigitalOut *si;
-    
-    FastAnalogIn *line_Cam; 
-
-    int w_f_v;
-    
-    int b_f_v;
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-    
-