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

Committer:
hazheng
Date:
Wed Feb 08 18:00:33 2017 +0000
Revision:
12:256c303ad09d
Child:
13:7dcb1642ef99
Finished OV7725 register buffer class, and its addres definitions.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hazheng 12:256c303ad09d 1 #include "OV7725RegBuf.h"
hazheng 12:256c303ad09d 2
hazheng 12:256c303ad09d 3 OV7725RegBuf::OV7725RegBuf() :
hazheng 12:256c303ad09d 4 m_data()
hazheng 12:256c303ad09d 5 {
hazheng 12:256c303ad09d 6
hazheng 12:256c303ad09d 7 }
hazheng 12:256c303ad09d 8
hazheng 12:256c303ad09d 9 OV7725RegBuf::~OV7725RegBuf()
hazheng 12:256c303ad09d 10 {
hazheng 12:256c303ad09d 11
hazheng 12:256c303ad09d 12 }
hazheng 12:256c303ad09d 13
hazheng 12:256c303ad09d 14 uint8_t * OV7725RegBuf::GetData()
hazheng 12:256c303ad09d 15 {
hazheng 12:256c303ad09d 16 return m_data;
hazheng 12:256c303ad09d 17 }
hazheng 12:256c303ad09d 18
hazheng 12:256c303ad09d 19 bool OV7725RegBuf::IsAddressReserved(const uint8_t addr) const
hazheng 12:256c303ad09d 20 {
hazheng 12:256c303ad09d 21 switch(addr)
hazheng 12:256c303ad09d 22 {
hazheng 12:256c303ad09d 23 case OV7725_RESV_01:
hazheng 12:256c303ad09d 24 case OV7725_RESV_02:
hazheng 12:256c303ad09d 25 case OV7725_RESV_03:
hazheng 12:256c303ad09d 26 case OV7725_RESV_04:
hazheng 12:256c303ad09d 27 case OV7725_RESV_05:
hazheng 12:256c303ad09d 28 case OV7725_RESV_06:
hazheng 12:256c303ad09d 29 case OV7725_RESV_07:
hazheng 12:256c303ad09d 30 case OV7725_RESV_08:
hazheng 12:256c303ad09d 31 case OV7725_RESV_09:
hazheng 12:256c303ad09d 32 case OV7725_RESV_10:
hazheng 12:256c303ad09d 33 case OV7725_RESV_11:
hazheng 12:256c303ad09d 34 case OV7725_RESV_12:
hazheng 12:256c303ad09d 35 case OV7725_RESV_13:
hazheng 12:256c303ad09d 36 case OV7725_RESV_14:
hazheng 12:256c303ad09d 37 case OV7725_RESV_15:
hazheng 12:256c303ad09d 38 case OV7725_RESV_16:
hazheng 12:256c303ad09d 39 return true;
hazheng 12:256c303ad09d 40 //break;
hazheng 12:256c303ad09d 41 default:
hazheng 12:256c303ad09d 42 return false;
hazheng 12:256c303ad09d 43 //break;
hazheng 12:256c303ad09d 44 }
hazheng 12:256c303ad09d 45 }