SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Revision:
32:5badeff825dc
Parent:
29:f87d8790f57d
Child:
34:f79db3bc2f86
diff -r f29f71336710 -r 5badeff825dc Hardwares/ArduCAM.h
--- a/Hardwares/ArduCAM.h	Thu Mar 02 04:26:33 2017 +0000
+++ b/Hardwares/ArduCAM.h	Thu Mar 02 23:56:42 2017 +0000
@@ -23,6 +23,12 @@
 #define FIFO_RDPTR_RST_MASK     0x10
 #define FIFO_WRPTR_RST_MASK     0x20
 
+#define FIFO_SIZE1              0x42  //Camera write FIFO size[7:0] for burst to read
+#define FIFO_SIZE2              0x43  //Camera write FIFO size[15:8]
+#define FIFO_SIZE3              0x44  //Camera write FIFO size[18:16
+
+#define BURST_FIFO_READ         0x3C  //Burst FIFO read operation
+#define SINGLE_FIFO_READ        0x3D  //Single FIFO read operation
 
 bool ardu_cam_init();
 
@@ -38,4 +44,8 @@
 
 uint8_t ardu_cam_bus_read(int address);
 
+uint32_t ardu_cam_get_fifo_length();
+
+void ardu_cam_print_debug();
+
 #endif //ARDU_CAM_H
\ No newline at end of file