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
Hardwares/OV2640RegProg.h@32:5badeff825dc, 2017-03-02 (annotated)
- Committer:
- hazheng
- Date:
- Thu Mar 02 23:56:42 2017 +0000
- Revision:
- 32:5badeff825dc
- Parent:
- 30:ff7f83ad6369
- Child:
- 33:e3fcc4d6bb9b
Successfully get the first picture from the camera and displayed on the computer screen.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 29:f87d8790f57d | 1 | #pragma once |
hazheng | 29:f87d8790f57d | 2 | #ifndef OV2640_REG_PROG_H |
hazheng | 29:f87d8790f57d | 3 | #define OV2640_REG_PROG_H |
hazheng | 29:f87d8790f57d | 4 | |
hazheng | 30:ff7f83ad6369 | 5 | #include "CamRegDefinitions.h" |
hazheng | 29:f87d8790f57d | 6 | |
hazheng | 29:f87d8790f57d | 7 | #define OV2640_WRITE 0x60 |
hazheng | 29:f87d8790f57d | 8 | #define OV2640_READ 0x61 |
hazheng | 29:f87d8790f57d | 9 | |
hazheng | 29:f87d8790f57d | 10 | #define OV2640_PID_VALUE 0x26 |
hazheng | 29:f87d8790f57d | 11 | #define OV2640_VER_VALUE 0x42 |
hazheng | 29:f87d8790f57d | 12 | |
hazheng | 32:5badeff825dc | 13 | #define OV2640_PID_ADDR 0x0A |
hazheng | 32:5badeff825dc | 14 | #define OV2640_VER_ADDR 0x0B |
hazheng | 30:ff7f83ad6369 | 15 | |
hazheng | 30:ff7f83ad6369 | 16 | namespace OV2640Prog |
hazheng | 30:ff7f83ad6369 | 17 | { |
hazheng | 32:5badeff825dc | 18 | const struct sensor_reg SVGA[] = |
hazheng | 32:5badeff825dc | 19 | { |
hazheng | 32:5badeff825dc | 20 | {0xff, 0x00}, |
hazheng | 32:5badeff825dc | 21 | {0x2c, 0xff}, |
hazheng | 32:5badeff825dc | 22 | {0x2e, 0xdf}, |
hazheng | 32:5badeff825dc | 23 | {0xff, 0x01}, |
hazheng | 32:5badeff825dc | 24 | {0x3c, 0x32}, |
hazheng | 32:5badeff825dc | 25 | // |
hazheng | 32:5badeff825dc | 26 | {0x11, 0x00}, |
hazheng | 32:5badeff825dc | 27 | {0x09, 0x02}, |
hazheng | 32:5badeff825dc | 28 | {0x04, 0x28}, |
hazheng | 32:5badeff825dc | 29 | {0x13, 0xe5}, |
hazheng | 32:5badeff825dc | 30 | {0x14, 0x48}, |
hazheng | 32:5badeff825dc | 31 | |
hazheng | 32:5badeff825dc | 32 | {0x2c, 0x0c}, |
hazheng | 32:5badeff825dc | 33 | {0x33, 0x78}, |
hazheng | 32:5badeff825dc | 34 | {0x3a, 0x33}, |
hazheng | 32:5badeff825dc | 35 | {0x3b, 0xfB}, |
hazheng | 32:5badeff825dc | 36 | // |
hazheng | 32:5badeff825dc | 37 | {0x3e, 0x00}, |
hazheng | 32:5badeff825dc | 38 | {0x43, 0x11}, |
hazheng | 32:5badeff825dc | 39 | {0x16, 0x10}, |
hazheng | 32:5badeff825dc | 40 | // |
hazheng | 32:5badeff825dc | 41 | {0x39, 0x92}, |
hazheng | 32:5badeff825dc | 42 | // |
hazheng | 32:5badeff825dc | 43 | {0x35, 0xda}, |
hazheng | 32:5badeff825dc | 44 | {0x22, 0x1a}, |
hazheng | 32:5badeff825dc | 45 | {0x37, 0xc3}, |
hazheng | 32:5badeff825dc | 46 | {0x23, 0x00}, |
hazheng | 32:5badeff825dc | 47 | {0x34, 0xc0}, |
hazheng | 32:5badeff825dc | 48 | {0x36, 0x1a}, |
hazheng | 32:5badeff825dc | 49 | {0x06, 0x88}, |
hazheng | 32:5badeff825dc | 50 | {0x07, 0xc0}, |
hazheng | 32:5badeff825dc | 51 | {0x0d, 0x87}, |
hazheng | 32:5badeff825dc | 52 | {0x0e, 0x41}, |
hazheng | 32:5badeff825dc | 53 | {0x4c, 0x00}, |
hazheng | 32:5badeff825dc | 54 | {0x48, 0x00}, |
hazheng | 32:5badeff825dc | 55 | {0x5B, 0x00}, |
hazheng | 32:5badeff825dc | 56 | {0x42, 0x03}, |
hazheng | 32:5badeff825dc | 57 | // |
hazheng | 32:5badeff825dc | 58 | {0x4a, 0x81}, |
hazheng | 32:5badeff825dc | 59 | {0x21, 0x99}, |
hazheng | 32:5badeff825dc | 60 | // |
hazheng | 32:5badeff825dc | 61 | {0x24, 0x40}, |
hazheng | 32:5badeff825dc | 62 | {0x25, 0x38}, |
hazheng | 32:5badeff825dc | 63 | {0x26, 0x82}, |
hazheng | 32:5badeff825dc | 64 | {0x5c, 0x00}, |
hazheng | 32:5badeff825dc | 65 | {0x63, 0x00}, |
hazheng | 32:5badeff825dc | 66 | {0x46, 0x22}, |
hazheng | 32:5badeff825dc | 67 | {0x0c, 0x3c}, |
hazheng | 32:5badeff825dc | 68 | // |
hazheng | 32:5badeff825dc | 69 | {0x61, 0x70}, |
hazheng | 32:5badeff825dc | 70 | {0x62, 0x80}, |
hazheng | 32:5badeff825dc | 71 | {0x7c, 0x05}, |
hazheng | 32:5badeff825dc | 72 | // |
hazheng | 32:5badeff825dc | 73 | {0x20, 0x80}, |
hazheng | 32:5badeff825dc | 74 | {0x28, 0x30}, |
hazheng | 32:5badeff825dc | 75 | {0x6c, 0x00}, |
hazheng | 32:5badeff825dc | 76 | {0x6d, 0x80}, |
hazheng | 32:5badeff825dc | 77 | {0x6e, 0x00}, |
hazheng | 32:5badeff825dc | 78 | {0x70, 0x02}, |
hazheng | 32:5badeff825dc | 79 | {0x71, 0x94}, |
hazheng | 32:5badeff825dc | 80 | |
hazheng | 32:5badeff825dc | 81 | {0x73, 0xc1}, |
hazheng | 32:5badeff825dc | 82 | // |
hazheng | 32:5badeff825dc | 83 | {0x12, 0x40}, |
hazheng | 32:5badeff825dc | 84 | {0x17, 0x11}, |
hazheng | 32:5badeff825dc | 85 | {0x18, 0x43}, |
hazheng | 32:5badeff825dc | 86 | {0x19, 0x00}, |
hazheng | 32:5badeff825dc | 87 | {0x1a, 0x4b}, |
hazheng | 32:5badeff825dc | 88 | {0x32, 0x09}, |
hazheng | 32:5badeff825dc | 89 | {0x37, 0xc0}, |
hazheng | 32:5badeff825dc | 90 | {0x4f, 0xca}, |
hazheng | 32:5badeff825dc | 91 | {0x50, 0xa8}, |
hazheng | 32:5badeff825dc | 92 | {0x5a, 0x23}, |
hazheng | 32:5badeff825dc | 93 | {0x6d, 0x00}, |
hazheng | 32:5badeff825dc | 94 | {0x3d, 0x38}, |
hazheng | 32:5badeff825dc | 95 | // |
hazheng | 32:5badeff825dc | 96 | {0xff, 0x00}, |
hazheng | 32:5badeff825dc | 97 | {0xe5, 0x7f}, |
hazheng | 32:5badeff825dc | 98 | {0xf9, 0xc0}, |
hazheng | 32:5badeff825dc | 99 | {0x41, 0x24}, |
hazheng | 32:5badeff825dc | 100 | {0xe0, 0x14}, |
hazheng | 32:5badeff825dc | 101 | {0x76, 0xff}, |
hazheng | 32:5badeff825dc | 102 | {0x33, 0xa0}, |
hazheng | 32:5badeff825dc | 103 | {0x42, 0x20}, |
hazheng | 32:5badeff825dc | 104 | {0x43, 0x18}, |
hazheng | 32:5badeff825dc | 105 | {0x4c, 0x00}, |
hazheng | 32:5badeff825dc | 106 | {0x87, 0xd5}, |
hazheng | 32:5badeff825dc | 107 | {0x88, 0x3f}, |
hazheng | 32:5badeff825dc | 108 | {0xd7, 0x03}, |
hazheng | 32:5badeff825dc | 109 | {0xd9, 0x10}, |
hazheng | 32:5badeff825dc | 110 | {0xd3, 0x82}, |
hazheng | 32:5badeff825dc | 111 | // |
hazheng | 32:5badeff825dc | 112 | {0xc8, 0x08}, |
hazheng | 32:5badeff825dc | 113 | {0xc9, 0x80}, |
hazheng | 32:5badeff825dc | 114 | // |
hazheng | 32:5badeff825dc | 115 | {0x7c, 0x00}, |
hazheng | 32:5badeff825dc | 116 | {0x7d, 0x00}, |
hazheng | 32:5badeff825dc | 117 | {0x7c, 0x03}, |
hazheng | 32:5badeff825dc | 118 | {0x7d, 0x48}, |
hazheng | 32:5badeff825dc | 119 | {0x7d, 0x48}, |
hazheng | 32:5badeff825dc | 120 | {0x7c, 0x08}, |
hazheng | 32:5badeff825dc | 121 | {0x7d, 0x20}, |
hazheng | 32:5badeff825dc | 122 | {0x7d, 0x10}, |
hazheng | 32:5badeff825dc | 123 | {0x7d, 0x0e}, |
hazheng | 32:5badeff825dc | 124 | // |
hazheng | 32:5badeff825dc | 125 | {0x90, 0x00}, |
hazheng | 32:5badeff825dc | 126 | {0x91, 0x0e}, |
hazheng | 32:5badeff825dc | 127 | {0x91, 0x1a}, |
hazheng | 32:5badeff825dc | 128 | {0x91, 0x31}, |
hazheng | 32:5badeff825dc | 129 | |
hazheng | 32:5badeff825dc | 130 | {0x91, 0x5a}, |
hazheng | 32:5badeff825dc | 131 | {0x91, 0x69}, |
hazheng | 32:5badeff825dc | 132 | {0x91, 0x75}, |
hazheng | 32:5badeff825dc | 133 | {0x91, 0x7e}, |
hazheng | 32:5badeff825dc | 134 | {0x91, 0x88}, |
hazheng | 32:5badeff825dc | 135 | {0x91, 0x8f}, |
hazheng | 32:5badeff825dc | 136 | {0x91, 0x96}, |
hazheng | 32:5badeff825dc | 137 | {0x91, 0xa3}, |
hazheng | 32:5badeff825dc | 138 | {0x91, 0xaf}, |
hazheng | 32:5badeff825dc | 139 | {0x91, 0xc4}, |
hazheng | 32:5badeff825dc | 140 | {0x91, 0xd7}, |
hazheng | 32:5badeff825dc | 141 | {0x91, 0xe8}, |
hazheng | 32:5badeff825dc | 142 | {0x91, 0x20}, |
hazheng | 32:5badeff825dc | 143 | // |
hazheng | 32:5badeff825dc | 144 | {0x92, 0x00}, |
hazheng | 32:5badeff825dc | 145 | {0x93, 0x06}, |
hazheng | 32:5badeff825dc | 146 | {0x93, 0xe3}, |
hazheng | 32:5badeff825dc | 147 | {0x93, 0x05}, |
hazheng | 32:5badeff825dc | 148 | {0x93, 0x05}, |
hazheng | 32:5badeff825dc | 149 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 150 | {0x93, 0x04}, |
hazheng | 32:5badeff825dc | 151 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 152 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 153 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 154 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 155 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 156 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 157 | {0x93, 0x00}, |
hazheng | 32:5badeff825dc | 158 | // |
hazheng | 32:5badeff825dc | 159 | {0x96, 0x00}, |
hazheng | 32:5badeff825dc | 160 | {0x97, 0x08}, |
hazheng | 32:5badeff825dc | 161 | {0x97, 0x19}, |
hazheng | 32:5badeff825dc | 162 | {0x97, 0x02}, |
hazheng | 32:5badeff825dc | 163 | {0x97, 0x0c}, |
hazheng | 32:5badeff825dc | 164 | {0x97, 0x24}, |
hazheng | 32:5badeff825dc | 165 | {0x97, 0x30}, |
hazheng | 32:5badeff825dc | 166 | {0x97, 0x28}, |
hazheng | 32:5badeff825dc | 167 | {0x97, 0x26}, |
hazheng | 32:5badeff825dc | 168 | {0x97, 0x02}, |
hazheng | 32:5badeff825dc | 169 | {0x97, 0x98}, |
hazheng | 32:5badeff825dc | 170 | {0x97, 0x80}, |
hazheng | 32:5badeff825dc | 171 | {0x97, 0x00}, |
hazheng | 32:5badeff825dc | 172 | {0x97, 0x00}, |
hazheng | 32:5badeff825dc | 173 | // |
hazheng | 32:5badeff825dc | 174 | {0xc3, 0xed}, |
hazheng | 32:5badeff825dc | 175 | {0xa4, 0x00}, |
hazheng | 32:5badeff825dc | 176 | {0xa8, 0x00}, |
hazheng | 32:5badeff825dc | 177 | {0xc5, 0x11}, |
hazheng | 32:5badeff825dc | 178 | |
hazheng | 32:5badeff825dc | 179 | {0xc6, 0x51}, |
hazheng | 32:5badeff825dc | 180 | {0xbf, 0x80}, |
hazheng | 32:5badeff825dc | 181 | {0xc7, 0x10}, |
hazheng | 32:5badeff825dc | 182 | {0xb6, 0x66}, |
hazheng | 32:5badeff825dc | 183 | {0xb8, 0xA5}, |
hazheng | 32:5badeff825dc | 184 | {0xb7, 0x64}, |
hazheng | 32:5badeff825dc | 185 | {0xb9, 0x7C}, |
hazheng | 32:5badeff825dc | 186 | {0xb3, 0xaf}, |
hazheng | 32:5badeff825dc | 187 | {0xb4, 0x97}, |
hazheng | 32:5badeff825dc | 188 | {0xb5, 0xFF}, |
hazheng | 32:5badeff825dc | 189 | {0xb0, 0xC5}, |
hazheng | 32:5badeff825dc | 190 | {0xb1, 0x94}, |
hazheng | 32:5badeff825dc | 191 | {0xb2, 0x0f}, |
hazheng | 32:5badeff825dc | 192 | {0xc4, 0x5c}, |
hazheng | 32:5badeff825dc | 193 | // |
hazheng | 32:5badeff825dc | 194 | {0xc0, 0x64}, |
hazheng | 32:5badeff825dc | 195 | {0xc1, 0x4B}, |
hazheng | 32:5badeff825dc | 196 | {0x8c, 0x00}, |
hazheng | 32:5badeff825dc | 197 | {0x86, 0x3D}, |
hazheng | 32:5badeff825dc | 198 | {0x50, 0x00}, |
hazheng | 32:5badeff825dc | 199 | {0x51, 0xC8}, |
hazheng | 32:5badeff825dc | 200 | {0x52, 0x96}, |
hazheng | 32:5badeff825dc | 201 | {0x53, 0x00}, |
hazheng | 32:5badeff825dc | 202 | {0x54, 0x00}, |
hazheng | 32:5badeff825dc | 203 | {0x55, 0x00}, |
hazheng | 32:5badeff825dc | 204 | {0x5a, 0xC8}, |
hazheng | 32:5badeff825dc | 205 | {0x5b, 0x96}, |
hazheng | 32:5badeff825dc | 206 | {0x5c, 0x00}, |
hazheng | 32:5badeff825dc | 207 | {0xd3, 0x82}, |
hazheng | 32:5badeff825dc | 208 | // |
hazheng | 32:5badeff825dc | 209 | {0xc3, 0xed}, |
hazheng | 32:5badeff825dc | 210 | {0x7f, 0x00}, |
hazheng | 32:5badeff825dc | 211 | // |
hazheng | 32:5badeff825dc | 212 | {0xda, 0x08}, |
hazheng | 32:5badeff825dc | 213 | // |
hazheng | 32:5badeff825dc | 214 | {0xe5, 0x1f}, |
hazheng | 32:5badeff825dc | 215 | {0xe1, 0x67}, |
hazheng | 32:5badeff825dc | 216 | {0xe0, 0x00}, |
hazheng | 32:5badeff825dc | 217 | {0xdd, 0x7f}, |
hazheng | 32:5badeff825dc | 218 | {0x05, 0x00}, |
hazheng | 30:ff7f83ad6369 | 219 | |
hazheng | 32:5badeff825dc | 220 | {0xff, 0xff} |
hazheng | 32:5badeff825dc | 221 | }; |
hazheng | 32:5badeff825dc | 222 | |
hazheng | 32:5badeff825dc | 223 | const struct sensor_reg QVGA[] = |
hazheng | 30:ff7f83ad6369 | 224 | { |
hazheng | 30:ff7f83ad6369 | 225 | {0xff, 0x0}, |
hazheng | 30:ff7f83ad6369 | 226 | {0x2c, 0xff}, |
hazheng | 30:ff7f83ad6369 | 227 | {0x2e, 0xdf}, |
hazheng | 30:ff7f83ad6369 | 228 | {0xff, 0x1}, |
hazheng | 32:5badeff825dc | 229 | {0x3c, 0x32}, |
hazheng | 32:5badeff825dc | 230 | |
hazheng | 30:ff7f83ad6369 | 231 | {0x11, 0x0}, |
hazheng | 30:ff7f83ad6369 | 232 | {0x9, 0x2}, |
hazheng | 32:5badeff825dc | 233 | {0x4, 0xa8}, /////////// |
hazheng | 30:ff7f83ad6369 | 234 | {0x13, 0xe5}, |
hazheng | 30:ff7f83ad6369 | 235 | {0x14, 0x48}, |
hazheng | 30:ff7f83ad6369 | 236 | {0x2c, 0xc}, |
hazheng | 30:ff7f83ad6369 | 237 | {0x33, 0x78}, |
hazheng | 30:ff7f83ad6369 | 238 | {0x3a, 0x33}, |
hazheng | 30:ff7f83ad6369 | 239 | {0x3b, 0xfb}, |
hazheng | 32:5badeff825dc | 240 | |
hazheng | 30:ff7f83ad6369 | 241 | {0x3e, 0x0}, |
hazheng | 30:ff7f83ad6369 | 242 | {0x43, 0x11}, |
hazheng | 30:ff7f83ad6369 | 243 | {0x16, 0x10}, |
hazheng | 32:5badeff825dc | 244 | |
hazheng | 32:5badeff825dc | 245 | {0x39, 0x2}, /////////// |
hazheng | 32:5badeff825dc | 246 | |
hazheng | 32:5badeff825dc | 247 | {0x35, 0x88}, /////////////// |
hazheng | 32:5badeff825dc | 248 | {0x22, 0xa}, ///////////// |
hazheng | 32:5badeff825dc | 249 | {0x37, 0x40}, /////////// |
hazheng | 30:ff7f83ad6369 | 250 | {0x23, 0x0}, |
hazheng | 32:5badeff825dc | 251 | {0x34, 0xa0},/////////////////// |
hazheng | 32:5badeff825dc | 252 | {0x6, 0x2}, //++++++++++++++ |
hazheng | 30:ff7f83ad6369 | 253 | {0x6, 0x88}, |
hazheng | 30:ff7f83ad6369 | 254 | {0x7, 0xc0}, |
hazheng | 32:5badeff825dc | 255 | {0xd, 0xb7}, //////// |
hazheng | 32:5badeff825dc | 256 | {0xe, 0x1}, ///////// |
hazheng | 30:ff7f83ad6369 | 257 | {0x4c, 0x0}, |
hazheng | 32:5badeff825dc | 258 | |
hazheng | 32:5badeff825dc | 259 | {0x4a, 0x81}, //++++++++++++++ |
hazheng | 32:5badeff825dc | 260 | |
hazheng | 30:ff7f83ad6369 | 261 | {0x21, 0x99}, |
hazheng | 30:ff7f83ad6369 | 262 | {0x24, 0x40}, |
hazheng | 30:ff7f83ad6369 | 263 | {0x25, 0x38}, |
hazheng | 30:ff7f83ad6369 | 264 | {0x26, 0x82}, |
hazheng | 30:ff7f83ad6369 | 265 | {0x5c, 0x0}, |
hazheng | 30:ff7f83ad6369 | 266 | {0x63, 0x0}, |
hazheng | 30:ff7f83ad6369 | 267 | {0x46, 0x22}, |
hazheng | 32:5badeff825dc | 268 | {0xc, 0x3a}, /////////// |
hazheng | 32:5badeff825dc | 269 | |
hazheng | 32:5badeff825dc | 270 | |
hazheng | 32:5badeff825dc | 271 | {0x5d, 0x55},////// |
hazheng | 32:5badeff825dc | 272 | {0x5e, 0x7d}, ////////// |
hazheng | 32:5badeff825dc | 273 | {0x5f, 0x7d}, ////////// |
hazheng | 32:5badeff825dc | 274 | {0x60, 0x55}, /////// |
hazheng | 32:5badeff825dc | 275 | |
hazheng | 30:ff7f83ad6369 | 276 | {0x61, 0x70}, |
hazheng | 30:ff7f83ad6369 | 277 | {0x62, 0x80}, |
hazheng | 30:ff7f83ad6369 | 278 | {0x7c, 0x5}, |
hazheng | 32:5badeff825dc | 279 | |
hazheng | 30:ff7f83ad6369 | 280 | {0x20, 0x80}, |
hazheng | 30:ff7f83ad6369 | 281 | {0x28, 0x30}, |
hazheng | 30:ff7f83ad6369 | 282 | {0x6c, 0x0}, |
hazheng | 30:ff7f83ad6369 | 283 | {0x6d, 0x80}, |
hazheng | 30:ff7f83ad6369 | 284 | {0x6e, 0x0}, |
hazheng | 30:ff7f83ad6369 | 285 | {0x70, 0x2}, |
hazheng | 30:ff7f83ad6369 | 286 | {0x71, 0x94}, |
hazheng | 30:ff7f83ad6369 | 287 | {0x73, 0xc1}, |
hazheng | 32:5badeff825dc | 288 | |
hazheng | 30:ff7f83ad6369 | 289 | {0x3d, 0x34}, |
hazheng | 32:5badeff825dc | 290 | |
hazheng | 32:5badeff825dc | 291 | {0x12, 0x4}, //////////// |
hazheng | 30:ff7f83ad6369 | 292 | {0x5a, 0x57}, |
hazheng | 32:5badeff825dc | 293 | |
hazheng | 30:ff7f83ad6369 | 294 | {0x4f, 0xbb}, |
hazheng | 30:ff7f83ad6369 | 295 | {0x50, 0x9c}, |
hazheng | 32:5badeff825dc | 296 | |
hazheng | 32:5badeff825dc | 297 | |
hazheng | 30:ff7f83ad6369 | 298 | {0xff, 0x0}, |
hazheng | 30:ff7f83ad6369 | 299 | {0xe5, 0x7f}, |
hazheng | 30:ff7f83ad6369 | 300 | {0xf9, 0xc0}, |
hazheng | 30:ff7f83ad6369 | 301 | {0x41, 0x24}, |
hazheng | 30:ff7f83ad6369 | 302 | {0xe0, 0x14}, |
hazheng | 30:ff7f83ad6369 | 303 | {0x76, 0xff}, |
hazheng | 30:ff7f83ad6369 | 304 | {0x33, 0xa0}, |
hazheng | 30:ff7f83ad6369 | 305 | {0x42, 0x20}, |
hazheng | 30:ff7f83ad6369 | 306 | {0x43, 0x18}, |
hazheng | 30:ff7f83ad6369 | 307 | {0x4c, 0x0}, |
hazheng | 32:5badeff825dc | 308 | {0x87, 0xd0}, /////// |
hazheng | 30:ff7f83ad6369 | 309 | {0x88, 0x3f}, |
hazheng | 30:ff7f83ad6369 | 310 | {0xd7, 0x3}, |
hazheng | 30:ff7f83ad6369 | 311 | {0xd9, 0x10}, |
hazheng | 30:ff7f83ad6369 | 312 | {0xd3, 0x82}, |
hazheng | 32:5badeff825dc | 313 | |
hazheng | 30:ff7f83ad6369 | 314 | {0xc8, 0x8}, |
hazheng | 30:ff7f83ad6369 | 315 | {0xc9, 0x80}, |
hazheng | 32:5badeff825dc | 316 | |
hazheng | 30:ff7f83ad6369 | 317 | {0x7c, 0x0}, |
hazheng | 30:ff7f83ad6369 | 318 | {0x7d, 0x0}, |
hazheng | 30:ff7f83ad6369 | 319 | {0x7c, 0x3}, |
hazheng | 30:ff7f83ad6369 | 320 | {0x7d, 0x48}, |
hazheng | 30:ff7f83ad6369 | 321 | {0x7d, 0x48}, |
hazheng | 30:ff7f83ad6369 | 322 | {0x7c, 0x8}, |
hazheng | 30:ff7f83ad6369 | 323 | {0x7d, 0x20}, |
hazheng | 30:ff7f83ad6369 | 324 | {0x7d, 0x10}, |
hazheng | 30:ff7f83ad6369 | 325 | {0x7d, 0xe}, |
hazheng | 30:ff7f83ad6369 | 326 | {0x90, 0x0}, |
hazheng | 30:ff7f83ad6369 | 327 | {0x91, 0xe}, |
hazheng | 30:ff7f83ad6369 | 328 | {0x91, 0x1a}, |
hazheng | 30:ff7f83ad6369 | 329 | {0x91, 0x31}, |
hazheng | 30:ff7f83ad6369 | 330 | {0x91, 0x5a}, |
hazheng | 30:ff7f83ad6369 | 331 | {0x91, 0x69}, |
hazheng | 30:ff7f83ad6369 | 332 | {0x91, 0x75}, |
hazheng | 30:ff7f83ad6369 | 333 | {0x91, 0x7e}, |
hazheng | 30:ff7f83ad6369 | 334 | {0x91, 0x88}, |
hazheng | 30:ff7f83ad6369 | 335 | {0x91, 0x8f}, |
hazheng | 30:ff7f83ad6369 | 336 | {0x91, 0x96}, |
hazheng | 30:ff7f83ad6369 | 337 | {0x91, 0xa3}, |
hazheng | 30:ff7f83ad6369 | 338 | {0x91, 0xaf}, |
hazheng | 30:ff7f83ad6369 | 339 | {0x91, 0xc4}, |
hazheng | 30:ff7f83ad6369 | 340 | {0x91, 0xd7}, |
hazheng | 30:ff7f83ad6369 | 341 | {0x91, 0xe8}, |
hazheng | 30:ff7f83ad6369 | 342 | {0x91, 0x20}, |
hazheng | 32:5badeff825dc | 343 | |
hazheng | 30:ff7f83ad6369 | 344 | {0x92, 0x0}, |
hazheng | 30:ff7f83ad6369 | 345 | {0x93, 0x6}, |
hazheng | 30:ff7f83ad6369 | 346 | {0x93, 0xe3}, |
hazheng | 32:5badeff825dc | 347 | {0x93, 0x3}, //////// |
hazheng | 32:5badeff825dc | 348 | {0x93, 0x3}, ///////// |
hazheng | 30:ff7f83ad6369 | 349 | {0x93, 0x0}, |
hazheng | 32:5badeff825dc | 350 | {0x93, 0x2}, /////// |
hazheng | 30:ff7f83ad6369 | 351 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 352 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 353 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 354 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 355 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 356 | {0x93, 0x0}, |
hazheng | 30:ff7f83ad6369 | 357 | {0x93, 0x0}, |
hazheng | 32:5badeff825dc | 358 | |
hazheng | 30:ff7f83ad6369 | 359 | {0x96, 0x0}, |
hazheng | 30:ff7f83ad6369 | 360 | {0x97, 0x8}, |
hazheng | 30:ff7f83ad6369 | 361 | {0x97, 0x19}, |
hazheng | 30:ff7f83ad6369 | 362 | {0x97, 0x2}, |
hazheng | 30:ff7f83ad6369 | 363 | {0x97, 0xc}, |
hazheng | 30:ff7f83ad6369 | 364 | {0x97, 0x24}, |
hazheng | 30:ff7f83ad6369 | 365 | {0x97, 0x30}, |
hazheng | 30:ff7f83ad6369 | 366 | {0x97, 0x28}, |
hazheng | 30:ff7f83ad6369 | 367 | {0x97, 0x26}, |
hazheng | 30:ff7f83ad6369 | 368 | {0x97, 0x2}, |
hazheng | 30:ff7f83ad6369 | 369 | {0x97, 0x98}, |
hazheng | 30:ff7f83ad6369 | 370 | {0x97, 0x80}, |
hazheng | 30:ff7f83ad6369 | 371 | {0x97, 0x0}, |
hazheng | 30:ff7f83ad6369 | 372 | {0x97, 0x0}, |
hazheng | 32:5badeff825dc | 373 | |
hazheng | 32:5badeff825dc | 374 | ////// |
hazheng | 30:ff7f83ad6369 | 375 | {0xa4, 0x0}, |
hazheng | 30:ff7f83ad6369 | 376 | {0xa8, 0x0}, |
hazheng | 30:ff7f83ad6369 | 377 | {0xc5, 0x11}, |
hazheng | 30:ff7f83ad6369 | 378 | {0xc6, 0x51}, |
hazheng | 30:ff7f83ad6369 | 379 | {0xbf, 0x80}, |
hazheng | 30:ff7f83ad6369 | 380 | {0xc7, 0x10}, |
hazheng | 30:ff7f83ad6369 | 381 | {0xb6, 0x66}, |
hazheng | 30:ff7f83ad6369 | 382 | {0xb8, 0xa5}, |
hazheng | 30:ff7f83ad6369 | 383 | {0xb7, 0x64}, |
hazheng | 30:ff7f83ad6369 | 384 | {0xb9, 0x7c}, |
hazheng | 30:ff7f83ad6369 | 385 | {0xb3, 0xaf}, |
hazheng | 30:ff7f83ad6369 | 386 | {0xb4, 0x97}, |
hazheng | 30:ff7f83ad6369 | 387 | {0xb5, 0xff}, |
hazheng | 30:ff7f83ad6369 | 388 | {0xb0, 0xc5}, |
hazheng | 30:ff7f83ad6369 | 389 | {0xb1, 0x94}, |
hazheng | 30:ff7f83ad6369 | 390 | {0xb2, 0xf}, |
hazheng | 30:ff7f83ad6369 | 391 | {0xc4, 0x5c}, |
hazheng | 32:5badeff825dc | 392 | |
hazheng | 30:ff7f83ad6369 | 393 | {0xa6, 0x0}, |
hazheng | 30:ff7f83ad6369 | 394 | {0xa7, 0x20}, |
hazheng | 30:ff7f83ad6369 | 395 | {0xa7, 0xd8}, |
hazheng | 30:ff7f83ad6369 | 396 | {0xa7, 0x1b}, |
hazheng | 30:ff7f83ad6369 | 397 | {0xa7, 0x31}, |
hazheng | 30:ff7f83ad6369 | 398 | {0xa7, 0x0}, |
hazheng | 30:ff7f83ad6369 | 399 | {0xa7, 0x18}, |
hazheng | 30:ff7f83ad6369 | 400 | {0xa7, 0x20}, |
hazheng | 30:ff7f83ad6369 | 401 | {0xa7, 0xd8}, |
hazheng | 30:ff7f83ad6369 | 402 | {0xa7, 0x19}, |
hazheng | 30:ff7f83ad6369 | 403 | {0xa7, 0x31}, |
hazheng | 30:ff7f83ad6369 | 404 | {0xa7, 0x0}, |
hazheng | 30:ff7f83ad6369 | 405 | {0xa7, 0x18}, |
hazheng | 30:ff7f83ad6369 | 406 | {0xa7, 0x20}, |
hazheng | 30:ff7f83ad6369 | 407 | {0xa7, 0xd8}, |
hazheng | 30:ff7f83ad6369 | 408 | {0xa7, 0x19}, |
hazheng | 30:ff7f83ad6369 | 409 | {0xa7, 0x31}, |
hazheng | 30:ff7f83ad6369 | 410 | {0xa7, 0x0}, |
hazheng | 30:ff7f83ad6369 | 411 | {0xa7, 0x18}, |
hazheng | 30:ff7f83ad6369 | 412 | {0x7f, 0x0}, |
hazheng | 30:ff7f83ad6369 | 413 | {0xe5, 0x1f}, |
hazheng | 30:ff7f83ad6369 | 414 | {0xe1, 0x77}, |
hazheng | 30:ff7f83ad6369 | 415 | {0xdd, 0x7f}, |
hazheng | 30:ff7f83ad6369 | 416 | {0xc2, 0xe}, |
hazheng | 30:ff7f83ad6369 | 417 | |
hazheng | 30:ff7f83ad6369 | 418 | {0xff, 0x0}, |
hazheng | 30:ff7f83ad6369 | 419 | {0xe0, 0x4}, |
hazheng | 30:ff7f83ad6369 | 420 | {0xc0, 0xc8}, |
hazheng | 30:ff7f83ad6369 | 421 | {0xc1, 0x96}, |
hazheng | 30:ff7f83ad6369 | 422 | {0x86, 0x3d}, |
hazheng | 30:ff7f83ad6369 | 423 | {0x51, 0x90}, |
hazheng | 30:ff7f83ad6369 | 424 | {0x52, 0x2c}, |
hazheng | 30:ff7f83ad6369 | 425 | {0x53, 0x0}, |
hazheng | 30:ff7f83ad6369 | 426 | {0x54, 0x0}, |
hazheng | 30:ff7f83ad6369 | 427 | {0x55, 0x88}, |
hazheng | 30:ff7f83ad6369 | 428 | {0x57, 0x0}, |
hazheng | 30:ff7f83ad6369 | 429 | |
hazheng | 30:ff7f83ad6369 | 430 | {0x50, 0x92}, |
hazheng | 30:ff7f83ad6369 | 431 | {0x5a, 0x50}, |
hazheng | 30:ff7f83ad6369 | 432 | {0x5b, 0x3c}, |
hazheng | 30:ff7f83ad6369 | 433 | {0x5c, 0x0}, |
hazheng | 30:ff7f83ad6369 | 434 | {0xd3, 0x4}, |
hazheng | 30:ff7f83ad6369 | 435 | {0xe0, 0x0}, |
hazheng | 30:ff7f83ad6369 | 436 | |
hazheng | 30:ff7f83ad6369 | 437 | {0xff, 0x0}, |
hazheng | 30:ff7f83ad6369 | 438 | {0x5, 0x0}, |
hazheng | 30:ff7f83ad6369 | 439 | |
hazheng | 30:ff7f83ad6369 | 440 | {0xda, 0x8}, |
hazheng | 30:ff7f83ad6369 | 441 | {0xd7, 0x3}, |
hazheng | 30:ff7f83ad6369 | 442 | {0xe0, 0x0}, |
hazheng | 30:ff7f83ad6369 | 443 | |
hazheng | 30:ff7f83ad6369 | 444 | {0x5, 0x0}, |
hazheng | 30:ff7f83ad6369 | 445 | |
hazheng | 30:ff7f83ad6369 | 446 | |
hazheng | 30:ff7f83ad6369 | 447 | {0xff,0xff}, |
hazheng | 30:ff7f83ad6369 | 448 | }; |
hazheng | 30:ff7f83ad6369 | 449 | |
hazheng | 32:5badeff825dc | 450 | const struct sensor_reg JPEG_INIT[] = |
hazheng | 30:ff7f83ad6369 | 451 | { |
hazheng | 30:ff7f83ad6369 | 452 | { 0xff, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 453 | { 0x2c, 0xff }, |
hazheng | 30:ff7f83ad6369 | 454 | { 0x2e, 0xdf }, |
hazheng | 30:ff7f83ad6369 | 455 | { 0xff, 0x01 }, |
hazheng | 30:ff7f83ad6369 | 456 | { 0x3c, 0x32 }, |
hazheng | 30:ff7f83ad6369 | 457 | { 0x11, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 458 | { 0x09, 0x02 }, |
hazheng | 30:ff7f83ad6369 | 459 | { 0x04, 0x28 }, |
hazheng | 30:ff7f83ad6369 | 460 | { 0x13, 0xe5 }, |
hazheng | 30:ff7f83ad6369 | 461 | { 0x14, 0x48 }, |
hazheng | 30:ff7f83ad6369 | 462 | { 0x2c, 0x0c }, |
hazheng | 30:ff7f83ad6369 | 463 | { 0x33, 0x78 }, |
hazheng | 30:ff7f83ad6369 | 464 | { 0x3a, 0x33 }, |
hazheng | 30:ff7f83ad6369 | 465 | { 0x3b, 0xfB }, |
hazheng | 30:ff7f83ad6369 | 466 | { 0x3e, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 467 | { 0x43, 0x11 }, |
hazheng | 30:ff7f83ad6369 | 468 | { 0x16, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 469 | { 0x39, 0x92 }, |
hazheng | 30:ff7f83ad6369 | 470 | { 0x35, 0xda }, |
hazheng | 30:ff7f83ad6369 | 471 | { 0x22, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 472 | { 0x37, 0xc3 }, |
hazheng | 30:ff7f83ad6369 | 473 | { 0x23, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 474 | { 0x34, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 475 | { 0x36, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 476 | { 0x06, 0x88 }, |
hazheng | 30:ff7f83ad6369 | 477 | { 0x07, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 478 | { 0x0d, 0x87 }, |
hazheng | 30:ff7f83ad6369 | 479 | { 0x0e, 0x41 }, |
hazheng | 30:ff7f83ad6369 | 480 | { 0x4c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 481 | { 0x48, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 482 | { 0x5B, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 483 | { 0x42, 0x03 }, |
hazheng | 30:ff7f83ad6369 | 484 | { 0x4a, 0x81 }, |
hazheng | 30:ff7f83ad6369 | 485 | { 0x21, 0x99 }, |
hazheng | 30:ff7f83ad6369 | 486 | { 0x24, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 487 | { 0x25, 0x38 }, |
hazheng | 30:ff7f83ad6369 | 488 | { 0x26, 0x82 }, |
hazheng | 30:ff7f83ad6369 | 489 | { 0x5c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 490 | { 0x63, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 491 | { 0x61, 0x70 }, |
hazheng | 30:ff7f83ad6369 | 492 | { 0x62, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 493 | { 0x7c, 0x05 }, |
hazheng | 30:ff7f83ad6369 | 494 | { 0x20, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 495 | { 0x28, 0x30 }, |
hazheng | 30:ff7f83ad6369 | 496 | { 0x6c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 497 | { 0x6d, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 498 | { 0x6e, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 499 | { 0x70, 0x02 }, |
hazheng | 30:ff7f83ad6369 | 500 | { 0x71, 0x94 }, |
hazheng | 30:ff7f83ad6369 | 501 | { 0x73, 0xc1 }, |
hazheng | 30:ff7f83ad6369 | 502 | { 0x12, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 503 | { 0x17, 0x11 }, |
hazheng | 30:ff7f83ad6369 | 504 | { 0x18, 0x43 }, |
hazheng | 30:ff7f83ad6369 | 505 | { 0x19, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 506 | { 0x1a, 0x4b }, |
hazheng | 30:ff7f83ad6369 | 507 | { 0x32, 0x09 }, |
hazheng | 30:ff7f83ad6369 | 508 | { 0x37, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 509 | { 0x4f, 0x60 }, |
hazheng | 30:ff7f83ad6369 | 510 | { 0x50, 0xa8 }, |
hazheng | 30:ff7f83ad6369 | 511 | { 0x6d, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 512 | { 0x3d, 0x38 }, |
hazheng | 30:ff7f83ad6369 | 513 | { 0x46, 0x3f }, |
hazheng | 30:ff7f83ad6369 | 514 | { 0x4f, 0x60 }, |
hazheng | 30:ff7f83ad6369 | 515 | { 0x0c, 0x3c }, |
hazheng | 30:ff7f83ad6369 | 516 | { 0xff, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 517 | { 0xe5, 0x7f }, |
hazheng | 30:ff7f83ad6369 | 518 | { 0xf9, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 519 | { 0x41, 0x24 }, |
hazheng | 30:ff7f83ad6369 | 520 | { 0xe0, 0x14 }, |
hazheng | 30:ff7f83ad6369 | 521 | { 0x76, 0xff }, |
hazheng | 30:ff7f83ad6369 | 522 | { 0x33, 0xa0 }, |
hazheng | 30:ff7f83ad6369 | 523 | { 0x42, 0x20 }, |
hazheng | 30:ff7f83ad6369 | 524 | { 0x43, 0x18 }, |
hazheng | 30:ff7f83ad6369 | 525 | { 0x4c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 526 | { 0x87, 0xd5 }, |
hazheng | 30:ff7f83ad6369 | 527 | { 0x88, 0x3f }, |
hazheng | 30:ff7f83ad6369 | 528 | { 0xd7, 0x03 }, |
hazheng | 30:ff7f83ad6369 | 529 | { 0xd9, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 530 | { 0xd3, 0x82 }, |
hazheng | 30:ff7f83ad6369 | 531 | { 0xc8, 0x08 }, |
hazheng | 30:ff7f83ad6369 | 532 | { 0xc9, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 533 | { 0x7c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 534 | { 0x7d, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 535 | { 0x7c, 0x03 }, |
hazheng | 30:ff7f83ad6369 | 536 | { 0x7d, 0x48 }, |
hazheng | 30:ff7f83ad6369 | 537 | { 0x7d, 0x48 }, |
hazheng | 30:ff7f83ad6369 | 538 | { 0x7c, 0x08 }, |
hazheng | 30:ff7f83ad6369 | 539 | { 0x7d, 0x20 }, |
hazheng | 30:ff7f83ad6369 | 540 | { 0x7d, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 541 | { 0x7d, 0x0e }, |
hazheng | 30:ff7f83ad6369 | 542 | { 0x90, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 543 | { 0x91, 0x0e }, |
hazheng | 30:ff7f83ad6369 | 544 | { 0x91, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 545 | { 0x91, 0x31 }, |
hazheng | 30:ff7f83ad6369 | 546 | { 0x91, 0x5a }, |
hazheng | 30:ff7f83ad6369 | 547 | { 0x91, 0x69 }, |
hazheng | 30:ff7f83ad6369 | 548 | { 0x91, 0x75 }, |
hazheng | 30:ff7f83ad6369 | 549 | { 0x91, 0x7e }, |
hazheng | 30:ff7f83ad6369 | 550 | { 0x91, 0x88 }, |
hazheng | 30:ff7f83ad6369 | 551 | { 0x91, 0x8f }, |
hazheng | 30:ff7f83ad6369 | 552 | { 0x91, 0x96 }, |
hazheng | 30:ff7f83ad6369 | 553 | { 0x91, 0xa3 }, |
hazheng | 30:ff7f83ad6369 | 554 | { 0x91, 0xaf }, |
hazheng | 30:ff7f83ad6369 | 555 | { 0x91, 0xc4 }, |
hazheng | 30:ff7f83ad6369 | 556 | { 0x91, 0xd7 }, |
hazheng | 30:ff7f83ad6369 | 557 | { 0x91, 0xe8 }, |
hazheng | 30:ff7f83ad6369 | 558 | { 0x91, 0x20 }, |
hazheng | 30:ff7f83ad6369 | 559 | { 0x92, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 560 | { 0x93, 0x06 }, |
hazheng | 30:ff7f83ad6369 | 561 | { 0x93, 0xe3 }, |
hazheng | 30:ff7f83ad6369 | 562 | { 0x93, 0x05 }, |
hazheng | 30:ff7f83ad6369 | 563 | { 0x93, 0x05 }, |
hazheng | 30:ff7f83ad6369 | 564 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 565 | { 0x93, 0x04 }, |
hazheng | 30:ff7f83ad6369 | 566 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 567 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 568 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 569 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 570 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 571 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 572 | { 0x93, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 573 | { 0x96, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 574 | { 0x97, 0x08 }, |
hazheng | 30:ff7f83ad6369 | 575 | { 0x97, 0x19 }, |
hazheng | 30:ff7f83ad6369 | 576 | { 0x97, 0x02 }, |
hazheng | 30:ff7f83ad6369 | 577 | { 0x97, 0x0c }, |
hazheng | 30:ff7f83ad6369 | 578 | { 0x97, 0x24 }, |
hazheng | 30:ff7f83ad6369 | 579 | { 0x97, 0x30 }, |
hazheng | 30:ff7f83ad6369 | 580 | { 0x97, 0x28 }, |
hazheng | 30:ff7f83ad6369 | 581 | { 0x97, 0x26 }, |
hazheng | 30:ff7f83ad6369 | 582 | { 0x97, 0x02 }, |
hazheng | 30:ff7f83ad6369 | 583 | { 0x97, 0x98 }, |
hazheng | 30:ff7f83ad6369 | 584 | { 0x97, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 585 | { 0x97, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 586 | { 0x97, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 587 | { 0xc3, 0xed }, |
hazheng | 30:ff7f83ad6369 | 588 | { 0xa4, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 589 | { 0xa8, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 590 | { 0xc5, 0x11 }, |
hazheng | 30:ff7f83ad6369 | 591 | { 0xc6, 0x51 }, |
hazheng | 30:ff7f83ad6369 | 592 | { 0xbf, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 593 | { 0xc7, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 594 | { 0xb6, 0x66 }, |
hazheng | 30:ff7f83ad6369 | 595 | { 0xb8, 0xA5 }, |
hazheng | 30:ff7f83ad6369 | 596 | { 0xb7, 0x64 }, |
hazheng | 30:ff7f83ad6369 | 597 | { 0xb9, 0x7C }, |
hazheng | 30:ff7f83ad6369 | 598 | { 0xb3, 0xaf }, |
hazheng | 30:ff7f83ad6369 | 599 | { 0xb4, 0x97 }, |
hazheng | 30:ff7f83ad6369 | 600 | { 0xb5, 0xFF }, |
hazheng | 30:ff7f83ad6369 | 601 | { 0xb0, 0xC5 }, |
hazheng | 30:ff7f83ad6369 | 602 | { 0xb1, 0x94 }, |
hazheng | 30:ff7f83ad6369 | 603 | { 0xb2, 0x0f }, |
hazheng | 30:ff7f83ad6369 | 604 | { 0xc4, 0x5c }, |
hazheng | 30:ff7f83ad6369 | 605 | { 0xc0, 0x64 }, |
hazheng | 30:ff7f83ad6369 | 606 | { 0xc1, 0x4B }, |
hazheng | 30:ff7f83ad6369 | 607 | { 0x8c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 608 | { 0x86, 0x3D }, |
hazheng | 30:ff7f83ad6369 | 609 | { 0x50, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 610 | { 0x51, 0xC8 }, |
hazheng | 30:ff7f83ad6369 | 611 | { 0x52, 0x96 }, |
hazheng | 30:ff7f83ad6369 | 612 | { 0x53, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 613 | { 0x54, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 614 | { 0x55, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 615 | { 0x5a, 0xC8 }, |
hazheng | 30:ff7f83ad6369 | 616 | { 0x5b, 0x96 }, |
hazheng | 30:ff7f83ad6369 | 617 | { 0x5c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 618 | { 0xd3, 0x00 }, //{ 0xd3, 0x7f }, |
hazheng | 30:ff7f83ad6369 | 619 | { 0xc3, 0xed }, |
hazheng | 30:ff7f83ad6369 | 620 | { 0x7f, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 621 | { 0xda, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 622 | { 0xe5, 0x1f }, |
hazheng | 30:ff7f83ad6369 | 623 | { 0xe1, 0x67 }, |
hazheng | 30:ff7f83ad6369 | 624 | { 0xe0, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 625 | { 0xdd, 0x7f }, |
hazheng | 30:ff7f83ad6369 | 626 | { 0x05, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 627 | |
hazheng | 30:ff7f83ad6369 | 628 | { 0x12, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 629 | { 0xd3, 0x04 }, //{ 0xd3, 0x7f }, |
hazheng | 30:ff7f83ad6369 | 630 | { 0xc0, 0x16 }, |
hazheng | 30:ff7f83ad6369 | 631 | { 0xC1, 0x12 }, |
hazheng | 30:ff7f83ad6369 | 632 | { 0x8c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 633 | { 0x86, 0x3d }, |
hazheng | 30:ff7f83ad6369 | 634 | { 0x50, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 635 | { 0x51, 0x2C }, |
hazheng | 30:ff7f83ad6369 | 636 | { 0x52, 0x24 }, |
hazheng | 30:ff7f83ad6369 | 637 | { 0x53, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 638 | { 0x54, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 639 | { 0x55, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 640 | { 0x5A, 0x2c }, |
hazheng | 30:ff7f83ad6369 | 641 | { 0x5b, 0x24 }, |
hazheng | 30:ff7f83ad6369 | 642 | { 0x5c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 643 | { 0xff, 0xff }, |
hazheng | 30:ff7f83ad6369 | 644 | }; |
hazheng | 30:ff7f83ad6369 | 645 | |
hazheng | 32:5badeff825dc | 646 | const struct sensor_reg YUV422[] = |
hazheng | 30:ff7f83ad6369 | 647 | { |
hazheng | 30:ff7f83ad6369 | 648 | { 0xFF, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 649 | { 0x05, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 650 | { 0xDA, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 651 | { 0xD7, 0x03 }, |
hazheng | 30:ff7f83ad6369 | 652 | { 0xDF, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 653 | { 0x33, 0x80 }, |
hazheng | 30:ff7f83ad6369 | 654 | { 0x3C, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 655 | { 0xe1, 0x77 }, |
hazheng | 30:ff7f83ad6369 | 656 | { 0x00, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 657 | { 0xff, 0xff }, |
hazheng | 30:ff7f83ad6369 | 658 | }; |
hazheng | 30:ff7f83ad6369 | 659 | |
hazheng | 32:5badeff825dc | 660 | const struct sensor_reg JPEG[] = |
hazheng | 30:ff7f83ad6369 | 661 | { |
hazheng | 30:ff7f83ad6369 | 662 | { 0xe0, 0x14 }, |
hazheng | 30:ff7f83ad6369 | 663 | { 0xe1, 0x77 }, |
hazheng | 30:ff7f83ad6369 | 664 | { 0xe5, 0x1f }, |
hazheng | 30:ff7f83ad6369 | 665 | { 0xd7, 0x03 }, |
hazheng | 30:ff7f83ad6369 | 666 | { 0xda, 0x10 }, |
hazheng | 30:ff7f83ad6369 | 667 | { 0xe0, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 668 | { 0xFF, 0x01 }, |
hazheng | 30:ff7f83ad6369 | 669 | { 0x04, 0x08 }, |
hazheng | 30:ff7f83ad6369 | 670 | { 0xff, 0xff }, |
hazheng | 30:ff7f83ad6369 | 671 | }; |
hazheng | 30:ff7f83ad6369 | 672 | |
hazheng | 30:ff7f83ad6369 | 673 | /* JPG 160x120 */ |
hazheng | 32:5badeff825dc | 674 | const struct sensor_reg P160x120_JPEG[] = |
hazheng | 30:ff7f83ad6369 | 675 | { |
hazheng | 30:ff7f83ad6369 | 676 | { 0xff, 0x01 }, |
hazheng | 30:ff7f83ad6369 | 677 | { 0x12, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 678 | { 0x17, 0x11 }, |
hazheng | 30:ff7f83ad6369 | 679 | { 0x18, 0x43 }, |
hazheng | 30:ff7f83ad6369 | 680 | { 0x19, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 681 | { 0x1a, 0x4b }, |
hazheng | 30:ff7f83ad6369 | 682 | { 0x32, 0x09 }, |
hazheng | 30:ff7f83ad6369 | 683 | { 0x4f, 0xca }, |
hazheng | 30:ff7f83ad6369 | 684 | { 0x50, 0xa8 }, |
hazheng | 30:ff7f83ad6369 | 685 | { 0x5a, 0x23 }, |
hazheng | 30:ff7f83ad6369 | 686 | { 0x6d, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 687 | { 0x39, 0x12 }, |
hazheng | 30:ff7f83ad6369 | 688 | { 0x35, 0xda }, |
hazheng | 30:ff7f83ad6369 | 689 | { 0x22, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 690 | { 0x37, 0xc3 }, |
hazheng | 30:ff7f83ad6369 | 691 | { 0x23, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 692 | { 0x34, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 693 | { 0x36, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 694 | { 0x06, 0x88 }, |
hazheng | 30:ff7f83ad6369 | 695 | { 0x07, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 696 | { 0x0d, 0x87 }, |
hazheng | 30:ff7f83ad6369 | 697 | { 0x0e, 0x41 }, |
hazheng | 30:ff7f83ad6369 | 698 | { 0x4c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 699 | { 0xff, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 700 | { 0xe0, 0x04 }, |
hazheng | 30:ff7f83ad6369 | 701 | { 0xc0, 0x64 }, |
hazheng | 30:ff7f83ad6369 | 702 | { 0xc1, 0x4b }, |
hazheng | 30:ff7f83ad6369 | 703 | { 0x86, 0x35 }, |
hazheng | 30:ff7f83ad6369 | 704 | { 0x50, 0x92 }, |
hazheng | 30:ff7f83ad6369 | 705 | { 0x51, 0xc8 }, |
hazheng | 30:ff7f83ad6369 | 706 | { 0x52, 0x96 }, |
hazheng | 30:ff7f83ad6369 | 707 | { 0x53, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 708 | { 0x54, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 709 | { 0x55, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 710 | { 0x57, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 711 | { 0x5a, 0x28 }, |
hazheng | 30:ff7f83ad6369 | 712 | { 0x5b, 0x1e }, |
hazheng | 30:ff7f83ad6369 | 713 | { 0x5c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 714 | { 0xe0, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 715 | { 0xff, 0xff }, |
hazheng | 30:ff7f83ad6369 | 716 | }; |
hazheng | 30:ff7f83ad6369 | 717 | |
hazheng | 30:ff7f83ad6369 | 718 | |
hazheng | 30:ff7f83ad6369 | 719 | /* JPG 320x240 */ |
hazheng | 30:ff7f83ad6369 | 720 | |
hazheng | 32:5badeff825dc | 721 | const struct sensor_reg P320x240_JPEG[] = |
hazheng | 30:ff7f83ad6369 | 722 | { |
hazheng | 30:ff7f83ad6369 | 723 | { 0xff, 0x01 }, |
hazheng | 30:ff7f83ad6369 | 724 | { 0x12, 0x40 }, |
hazheng | 30:ff7f83ad6369 | 725 | { 0x17, 0x11 }, |
hazheng | 30:ff7f83ad6369 | 726 | { 0x18, 0x43 }, |
hazheng | 30:ff7f83ad6369 | 727 | { 0x19, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 728 | { 0x1a, 0x4b }, |
hazheng | 30:ff7f83ad6369 | 729 | { 0x32, 0x09 }, |
hazheng | 30:ff7f83ad6369 | 730 | { 0x4f, 0xca }, |
hazheng | 30:ff7f83ad6369 | 731 | { 0x50, 0xa8 }, |
hazheng | 30:ff7f83ad6369 | 732 | { 0x5a, 0x23 }, |
hazheng | 30:ff7f83ad6369 | 733 | { 0x6d, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 734 | { 0x39, 0x12 }, |
hazheng | 30:ff7f83ad6369 | 735 | { 0x35, 0xda }, |
hazheng | 30:ff7f83ad6369 | 736 | { 0x22, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 737 | { 0x37, 0xc3 }, |
hazheng | 30:ff7f83ad6369 | 738 | { 0x23, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 739 | { 0x34, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 740 | { 0x36, 0x1a }, |
hazheng | 30:ff7f83ad6369 | 741 | { 0x06, 0x88 }, |
hazheng | 30:ff7f83ad6369 | 742 | { 0x07, 0xc0 }, |
hazheng | 30:ff7f83ad6369 | 743 | { 0x0d, 0x87 }, |
hazheng | 30:ff7f83ad6369 | 744 | { 0x0e, 0x41 }, |
hazheng | 30:ff7f83ad6369 | 745 | { 0x4c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 746 | { 0xff, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 747 | { 0xe0, 0x04 }, |
hazheng | 30:ff7f83ad6369 | 748 | { 0xc0, 0x64 }, |
hazheng | 30:ff7f83ad6369 | 749 | { 0xc1, 0x4b }, |
hazheng | 30:ff7f83ad6369 | 750 | { 0x86, 0x35 }, |
hazheng | 30:ff7f83ad6369 | 751 | { 0x50, 0x89 }, |
hazheng | 30:ff7f83ad6369 | 752 | { 0x51, 0xc8 }, |
hazheng | 30:ff7f83ad6369 | 753 | { 0x52, 0x96 }, |
hazheng | 30:ff7f83ad6369 | 754 | { 0x53, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 755 | { 0x54, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 756 | { 0x55, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 757 | { 0x57, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 758 | { 0x5a, 0x50 }, |
hazheng | 30:ff7f83ad6369 | 759 | { 0x5b, 0x3c }, |
hazheng | 30:ff7f83ad6369 | 760 | { 0x5c, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 761 | { 0xe0, 0x00 }, |
hazheng | 30:ff7f83ad6369 | 762 | { 0xff, 0xff }, |
hazheng | 30:ff7f83ad6369 | 763 | }; |
hazheng | 30:ff7f83ad6369 | 764 | |
hazheng | 30:ff7f83ad6369 | 765 | } |
hazheng | 30:ff7f83ad6369 | 766 | |
hazheng | 29:f87d8790f57d | 767 | #endif //OV2640_REG_PROG_H |