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
Diff: Hardwares/ArduCAM.h
- Revision:
- 44:15de535c4005
- Parent:
- 43:0d1886f4848a
- Child:
- 46:a5eb9bd3bb55
--- a/Hardwares/ArduCAM.h Mon Mar 27 22:09:22 2017 +0000 +++ b/Hardwares/ArduCAM.h Wed Mar 29 21:19:27 2017 +0000 @@ -3,6 +3,7 @@ #define ARDU_CAM_H #include <mbed.h> +#include <rtos.h> #include "PinAssignment.h" #define RESOLUTION_WIDTH 160 @@ -73,9 +74,14 @@ #define FIFO_RDPTR_RST_MASK 0x10 #define FIFO_WRPTR_RST_MASK 0x20 +#define ARDUCHIP_TRIG 0x41 //Trigger source +#define VSYNC_MASK 0x01 +#define SHUTTER_MASK 0x02 +#define CAP_DONE_MASK 0x08 + #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 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 @@ -88,7 +94,11 @@ void ardu_cam_print_debug(); -void ardu_cam_display_img_utft(); +//void ardu_cam_display_img_utft(); + +volatile const uint8_t* ardu_cam_get_center_array(); + +uint8_t ardu_cam_is_capture_finished(); //uint8_t ardu_cam_read_reg(uint8_t addr);