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
RemovedSources/OV7725RegAddr.h.txt@36:7e747e19f660, 2017-03-14 (annotated)
- Committer:
- hazheng
- Date:
- Tue Mar 14 22:23:15 2017 +0000
- Revision:
- 36:7e747e19f660
- Parent:
- Hardwares/OV7725RegAddr.h@13:7dcb1642ef99
Removed trash codes. Made it easier to switch different camera.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 12:256c303ad09d | 1 | #pragma once |
hazheng | 12:256c303ad09d | 2 | #ifndef OV7725_REG_ADDR_H |
hazheng | 12:256c303ad09d | 3 | #define OV7725_REG_ADDR_H |
hazheng | 12:256c303ad09d | 4 | |
hazheng | 13:7dcb1642ef99 | 5 | |
hazheng | 13:7dcb1642ef99 | 6 | #define OV7725_WRITE 0x42 |
hazheng | 13:7dcb1642ef99 | 7 | #define OV7725_READ 0x43 |
hazheng | 13:7dcb1642ef99 | 8 | #define OV7725_WRITEWAIT 20 |
hazheng | 13:7dcb1642ef99 | 9 | #define OV7725_NOACK 0 |
hazheng | 13:7dcb1642ef99 | 10 | #define OV7725_I2CFREQ 100000 |
hazheng | 13:7dcb1642ef99 | 11 | |
hazheng | 12:256c303ad09d | 12 | #define OV7725_PID_VALUE 0x77 |
hazheng | 12:256c303ad09d | 13 | #define OV7725_VER_VALUE 0x21 |
hazheng | 12:256c303ad09d | 14 | |
hazheng | 12:256c303ad09d | 15 | |
hazheng | 12:256c303ad09d | 16 | #define OV7725_GAIN 0x00 |
hazheng | 12:256c303ad09d | 17 | #define OV7725_BLUE 0x01 |
hazheng | 12:256c303ad09d | 18 | #define OV7725_RED 0x02 |
hazheng | 12:256c303ad09d | 19 | #define OV7725_GREEN 0x03 |
hazheng | 12:256c303ad09d | 20 | /**/ #define OV7725_RESV_01 0x04 |
hazheng | 12:256c303ad09d | 21 | #define OV7725_BAVG 0x05 |
hazheng | 12:256c303ad09d | 22 | #define OV7725_GAVG 0x06 |
hazheng | 12:256c303ad09d | 23 | #define OV7725_RAVG 0x07 |
hazheng | 12:256c303ad09d | 24 | #define OV7725_AECH 0x08 |
hazheng | 12:256c303ad09d | 25 | #define OV7725_COM2 0x09 |
hazheng | 12:256c303ad09d | 26 | #define OV7725_PID 0x0A |
hazheng | 12:256c303ad09d | 27 | #define OV7725_VER 0x0B |
hazheng | 12:256c303ad09d | 28 | #define OV7725_COM3 0x0C |
hazheng | 12:256c303ad09d | 29 | #define OV7725_COM4 0x0D |
hazheng | 12:256c303ad09d | 30 | #define OV7725_COM5 0x0E |
hazheng | 12:256c303ad09d | 31 | #define OV7725_COM6 0x0F |
hazheng | 12:256c303ad09d | 32 | #define OV7725_AEC 0x10 |
hazheng | 12:256c303ad09d | 33 | #define OV7725_CLKRC 0x11 |
hazheng | 12:256c303ad09d | 34 | #define OV7725_COM7 0x12 |
hazheng | 12:256c303ad09d | 35 | #define OV7725_COM8 0x13 |
hazheng | 12:256c303ad09d | 36 | #define OV7725_COM9 0x14 |
hazheng | 12:256c303ad09d | 37 | #define OV7725_COM10 0x15 |
hazheng | 12:256c303ad09d | 38 | #define OV7725_REG16 0x16 |
hazheng | 12:256c303ad09d | 39 | #define OV7725_HSTART 0x17 |
hazheng | 12:256c303ad09d | 40 | #define OV7725_HSIZE 0x18 |
hazheng | 12:256c303ad09d | 41 | #define OV7725_VSTRT 0x19 |
hazheng | 12:256c303ad09d | 42 | #define OV7725_VSIZE 0x1A |
hazheng | 12:256c303ad09d | 43 | #define OV7725_PSHFT 0x1B |
hazheng | 12:256c303ad09d | 44 | #define OV7725_MIDH 0x1C |
hazheng | 12:256c303ad09d | 45 | #define OV7725_MIDL 0x1D |
hazheng | 12:256c303ad09d | 46 | /**/ #define OV7725_RESV_02 0x1E |
hazheng | 12:256c303ad09d | 47 | #define OV7725_LAEC 0x1F |
hazheng | 12:256c303ad09d | 48 | #define OV7725_COM11 0x20 |
hazheng | 12:256c303ad09d | 49 | /**/ #define OV7725_RESV_03 0x21 |
hazheng | 12:256c303ad09d | 50 | #define OV7725_BDBase 0x22 |
hazheng | 12:256c303ad09d | 51 | #define OV7725_BDMStep 0x23 |
hazheng | 12:256c303ad09d | 52 | #define OV7725_AEW 0x24 |
hazheng | 12:256c303ad09d | 53 | #define OV7725_AEB 0x25 |
hazheng | 12:256c303ad09d | 54 | #define OV7725_VPT 0x26 |
hazheng | 12:256c303ad09d | 55 | /**/ #define OV7725_RESV_04 0x27 |
hazheng | 12:256c303ad09d | 56 | #define OV7725_REG28 0x28 |
hazheng | 12:256c303ad09d | 57 | #define OV7725_HOutSize 0x29 |
hazheng | 12:256c303ad09d | 58 | #define OV7725_EXHCH 0x2A |
hazheng | 12:256c303ad09d | 59 | #define OV7725_EXHCL 0x2B |
hazheng | 12:256c303ad09d | 60 | #define OV7725_VOutSize 0x2C |
hazheng | 12:256c303ad09d | 61 | #define OV7725_ADVFL 0x2D |
hazheng | 12:256c303ad09d | 62 | #define OV7725_ADVFH 0x2E |
hazheng | 12:256c303ad09d | 63 | #define OV7725_YAVE 0x2F |
hazheng | 12:256c303ad09d | 64 | #define OV7725_LumHTh 0x30 |
hazheng | 12:256c303ad09d | 65 | #define OV7725_LumLTh 0x31 |
hazheng | 12:256c303ad09d | 66 | #define OV7725_HREF 0x32 |
hazheng | 12:256c303ad09d | 67 | #define OV7725_DM_LNL 0x33 |
hazheng | 12:256c303ad09d | 68 | #define OV7725_DM_LNH 0x34 |
hazheng | 12:256c303ad09d | 69 | #define OV7725_ADoff_B 0x35 |
hazheng | 12:256c303ad09d | 70 | #define OV7725_ADoff_R 0x36 |
hazheng | 12:256c303ad09d | 71 | #define OV7725_ADoff_Gb 0x37 |
hazheng | 12:256c303ad09d | 72 | #define OV7725_ADoff_Gr 0x38 |
hazheng | 12:256c303ad09d | 73 | #define OV7725_Off_B 0x39 |
hazheng | 12:256c303ad09d | 74 | #define OV7725_Off_R 0x3A |
hazheng | 12:256c303ad09d | 75 | #define OV7725_Off_Gb 0x3B |
hazheng | 12:256c303ad09d | 76 | #define OV7725_Off_Gr 0x3C |
hazheng | 12:256c303ad09d | 77 | #define OV7725_COM12 0x3D |
hazheng | 12:256c303ad09d | 78 | #define OV7725_COM13 0x3E |
hazheng | 12:256c303ad09d | 79 | #define OV7725_COM14 0x3F |
hazheng | 12:256c303ad09d | 80 | #define OV7725_COM15 0x40 |
hazheng | 12:256c303ad09d | 81 | #define OV7725_COM16 0x41 |
hazheng | 12:256c303ad09d | 82 | #define OV7725_TGT_B 0x42 |
hazheng | 12:256c303ad09d | 83 | #define OV7725_TGT_R 0x43 |
hazheng | 12:256c303ad09d | 84 | #define OV7725_TGT_Gb 0x44 |
hazheng | 12:256c303ad09d | 85 | #define OV7725_TGT_Gr 0x45 |
hazheng | 12:256c303ad09d | 86 | #define OV7725_LC_CTR 0x46 |
hazheng | 12:256c303ad09d | 87 | #define OV7725_LC_XC 0x47 |
hazheng | 12:256c303ad09d | 88 | #define OV7725_LC_YC 0x48 |
hazheng | 12:256c303ad09d | 89 | #define OV7725_LC_COEF 0x49 |
hazheng | 12:256c303ad09d | 90 | #define OV7725_LC_RADI 0x4A |
hazheng | 12:256c303ad09d | 91 | #define OV7725_LC_COEFB 0x4B |
hazheng | 12:256c303ad09d | 92 | #define OV7725_LC_COEFR 0x4C |
hazheng | 12:256c303ad09d | 93 | #define OV7725_FixGain 0x4D |
hazheng | 12:256c303ad09d | 94 | #define OV7725_AREF0 0x4E |
hazheng | 12:256c303ad09d | 95 | #define OV7725_AREF1 0x4F |
hazheng | 12:256c303ad09d | 96 | #define OV7725_AREF2 0x50 |
hazheng | 12:256c303ad09d | 97 | #define OV7725_AREF3 0x51 |
hazheng | 12:256c303ad09d | 98 | #define OV7725_AREF4 0x52 |
hazheng | 12:256c303ad09d | 99 | #define OV7725_AREF5 0x53 |
hazheng | 12:256c303ad09d | 100 | #define OV7725_AREF6 0x54 |
hazheng | 12:256c303ad09d | 101 | #define OV7725_AREF7 0x55 |
hazheng | 12:256c303ad09d | 102 | /**/ #define OV7725_RESV_05 0x56 |
hazheng | 12:256c303ad09d | 103 | /**/ #define OV7725_RESV_06 0x57 |
hazheng | 12:256c303ad09d | 104 | /**/ #define OV7725_RESV_07 0x58 |
hazheng | 12:256c303ad09d | 105 | /**/ #define OV7725_RESV_08 0x59 |
hazheng | 12:256c303ad09d | 106 | /**/ #define OV7725_RESV_09 0x5A |
hazheng | 12:256c303ad09d | 107 | /**/ #define OV7725_RESV_10 0x5B |
hazheng | 12:256c303ad09d | 108 | /**/ #define OV7725_RESV_11 0x5C |
hazheng | 12:256c303ad09d | 109 | /**/ #define OV7725_RESV_12 0x5D |
hazheng | 12:256c303ad09d | 110 | /**/ #define OV7725_RESV_13 0x5E |
hazheng | 12:256c303ad09d | 111 | /**/ #define OV7725_RESV_14 0x5F |
hazheng | 12:256c303ad09d | 112 | #define OV7725_UFix 0x60 |
hazheng | 12:256c303ad09d | 113 | #define OV7725_VFix 0x61 |
hazheng | 12:256c303ad09d | 114 | #define OV7725_AWBb_blk 0x62 |
hazheng | 12:256c303ad09d | 115 | #define OV7725_AWB_Ctrl0 0x63 |
hazheng | 12:256c303ad09d | 116 | #define OV7725_DSP_Ctrl1 0x64 |
hazheng | 12:256c303ad09d | 117 | #define OV7725_DSP_Ctrl2 0x65 |
hazheng | 12:256c303ad09d | 118 | #define OV7725_DSP_Ctrl3 0x66 |
hazheng | 12:256c303ad09d | 119 | #define OV7725_DSP_Ctrl4 0x67 |
hazheng | 12:256c303ad09d | 120 | #define OV7725_AWB_bias 0x68 |
hazheng | 12:256c303ad09d | 121 | #define OV7725_AWBCtrl1 0x69 |
hazheng | 12:256c303ad09d | 122 | #define OV7725_AWBCtrl2 0x6A |
hazheng | 12:256c303ad09d | 123 | #define OV7725_AWBCtrl3 0x6B |
hazheng | 12:256c303ad09d | 124 | #define OV7725_AWBCtrl4 0x6C |
hazheng | 12:256c303ad09d | 125 | #define OV7725_AWBCtrl5 0x6D |
hazheng | 12:256c303ad09d | 126 | #define OV7725_AWBCtrl6 0x6E |
hazheng | 12:256c303ad09d | 127 | #define OV7725_AWBCtrl7 0x6F |
hazheng | 12:256c303ad09d | 128 | #define OV7725_AWBCtrl8 0x70 |
hazheng | 12:256c303ad09d | 129 | #define OV7725_AWBCtrl9 0x71 |
hazheng | 12:256c303ad09d | 130 | #define OV7725_AWBCtrl10 0x72 |
hazheng | 12:256c303ad09d | 131 | #define OV7725_AWBCtrl11 0x73 |
hazheng | 12:256c303ad09d | 132 | #define OV7725_AWBCtrl12 0x74 |
hazheng | 12:256c303ad09d | 133 | #define OV7725_AWBCtrl13 0x75 |
hazheng | 12:256c303ad09d | 134 | #define OV7725_AWBCtrl14 0x76 |
hazheng | 12:256c303ad09d | 135 | #define OV7725_AWBCtrl15 0x77 |
hazheng | 12:256c303ad09d | 136 | #define OV7725_AWBCtrl16 0x78 |
hazheng | 12:256c303ad09d | 137 | #define OV7725_AWBCtrl17 0x79 |
hazheng | 12:256c303ad09d | 138 | #define OV7725_AWBCtrl18 0x7A |
hazheng | 12:256c303ad09d | 139 | #define OV7725_AWBCtrl19 0x7B |
hazheng | 12:256c303ad09d | 140 | #define OV7725_AWBCtrl20 0x7C |
hazheng | 12:256c303ad09d | 141 | #define OV7725_AWBCtrl21 0x7D |
hazheng | 12:256c303ad09d | 142 | #define OV7725_GAM1 0x7E |
hazheng | 12:256c303ad09d | 143 | #define OV7725_GAM2 0x7F |
hazheng | 12:256c303ad09d | 144 | #define OV7725_GAM3 0x80 |
hazheng | 12:256c303ad09d | 145 | #define OV7725_GAM4 0x81 |
hazheng | 12:256c303ad09d | 146 | #define OV7725_GAM5 0x82 |
hazheng | 12:256c303ad09d | 147 | #define OV7725_GAM6 0x83 |
hazheng | 12:256c303ad09d | 148 | #define OV7725_GAM7 0x84 |
hazheng | 12:256c303ad09d | 149 | #define OV7725_GAM8 0x85 |
hazheng | 12:256c303ad09d | 150 | #define OV7725_GAM9 0x86 |
hazheng | 12:256c303ad09d | 151 | #define OV7725_GAM10 0x87 |
hazheng | 12:256c303ad09d | 152 | #define OV7725_GAM11 0x88 |
hazheng | 12:256c303ad09d | 153 | #define OV7725_GAM12 0x89 |
hazheng | 12:256c303ad09d | 154 | #define OV7725_GAM13 0x8A |
hazheng | 12:256c303ad09d | 155 | #define OV7725_GAM14 0x8B |
hazheng | 12:256c303ad09d | 156 | #define OV7725_GAM15 0x8C |
hazheng | 12:256c303ad09d | 157 | #define OV7725_SLOP 0x8D |
hazheng | 12:256c303ad09d | 158 | #define OV7725_DNSTh 0x8E |
hazheng | 12:256c303ad09d | 159 | #define OV7725_EDGE0 0x8F |
hazheng | 12:256c303ad09d | 160 | #define OV7725_EDGE1 0x90 |
hazheng | 12:256c303ad09d | 161 | #define OV7725_DNSOff 0x91 |
hazheng | 12:256c303ad09d | 162 | #define OV7725_EDGE2 0x92 |
hazheng | 12:256c303ad09d | 163 | #define OV7725_EDGE3 0x93 |
hazheng | 12:256c303ad09d | 164 | #define OV7725_MTX1 0x94 |
hazheng | 12:256c303ad09d | 165 | #define OV7725_MTX2 0x95 |
hazheng | 12:256c303ad09d | 166 | #define OV7725_MTX3 0x96 |
hazheng | 12:256c303ad09d | 167 | #define OV7725_MTX4 0x97 |
hazheng | 12:256c303ad09d | 168 | #define OV7725_MTX5 0x98 |
hazheng | 12:256c303ad09d | 169 | #define OV7725_MTX6 0x99 |
hazheng | 12:256c303ad09d | 170 | #define OV7725_MTX_Ctrl 0x9A |
hazheng | 12:256c303ad09d | 171 | #define OV7725_BRIGHT 0x9B |
hazheng | 12:256c303ad09d | 172 | #define OV7725_CNST 0x9C |
hazheng | 12:256c303ad09d | 173 | /**/ #define OV7725_RESV_15 0x9D |
hazheng | 12:256c303ad09d | 174 | #define OV7725_UVADJ0 0x9E |
hazheng | 12:256c303ad09d | 175 | #define OV7725_UVADJ1 0x9F |
hazheng | 12:256c303ad09d | 176 | #define OV7725_SCAL0 0xA0 |
hazheng | 12:256c303ad09d | 177 | #define OV7725_SCAL1 0xA1 |
hazheng | 12:256c303ad09d | 178 | #define OV7725_SCAL2 0xA2 |
hazheng | 12:256c303ad09d | 179 | #define OV7725_FIFOdlyM 0xA3 |
hazheng | 12:256c303ad09d | 180 | #define OV7725_FIFOdlyA 0xA4 |
hazheng | 12:256c303ad09d | 181 | /**/ #define OV7725_RESV_16 0xA5 |
hazheng | 12:256c303ad09d | 182 | #define OV7725_SDE 0xA6 |
hazheng | 12:256c303ad09d | 183 | #define OV7725_USAT 0xA7 |
hazheng | 12:256c303ad09d | 184 | #define OV7725_VSAT 0xA8 |
hazheng | 12:256c303ad09d | 185 | #define OV7725_HUECOS 0xA9 |
hazheng | 12:256c303ad09d | 186 | #define OV7725_HUESIN 0xAA |
hazheng | 12:256c303ad09d | 187 | #define OV7725_SIGN 0xAB |
hazheng | 12:256c303ad09d | 188 | #define OV7725_DSPAuto 0xAC |
hazheng | 12:256c303ad09d | 189 | |
hazheng | 13:7dcb1642ef99 | 190 | #define OV7725_LAST_ADDR OV7725_DSPAuto |
hazheng | 12:256c303ad09d | 191 | |
hazheng | 12:256c303ad09d | 192 | #endif //OV7725_REG_ADDR_H |