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

Hardwares/OV7725RegBuf.cpp

Committer:
hazheng
Date:
2017-02-08
Revision:
12:256c303ad09d
Child:
13:7dcb1642ef99

File content as of revision 12:256c303ad09d:

#include "OV7725RegBuf.h"

OV7725RegBuf::OV7725RegBuf() : 
    m_data()
{
    
}

OV7725RegBuf::~OV7725RegBuf()
{
    
}

uint8_t * OV7725RegBuf::GetData()
{
    return m_data;
}

bool OV7725RegBuf::IsAddressReserved(const uint8_t addr) const
{
    switch(addr)
    {
    case OV7725_RESV_01:
    case OV7725_RESV_02:
    case OV7725_RESV_03:
    case OV7725_RESV_04:
    case OV7725_RESV_05:
    case OV7725_RESV_06:
    case OV7725_RESV_07:
    case OV7725_RESV_08:
    case OV7725_RESV_09:
    case OV7725_RESV_10:
    case OV7725_RESV_11:
    case OV7725_RESV_12:
    case OV7725_RESV_13:
    case OV7725_RESV_14:
    case OV7725_RESV_15:
    case OV7725_RESV_16:
        return true;
        //break;
    default:
        return false;
        //break;
    }
}