STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
ov9655.c
Go to the documentation of this file.
1 
38 /* Includes ------------------------------------------------------------------*/
39 #include "ov9655.h"
40 
82 static uint64_t ov9655_ConvertValue(uint32_t feature, uint32_t value);
92 {
96 };
97 
98 /* Initialization sequence for VGA resolution (640x480)*/
99 const unsigned char OV9655_VGA[][2]=
100 {
101  {0x00, 0x00},
102  {0x01, 0x80},
103  {0x02, 0x80},
104  {0xb5, 0x00},
105  {0x35, 0x00},
106  {0xa8, 0xc1},
107  {0x3a, 0xcc},
108  {0x3d, 0x99},
109  {0x77, 0x02},
110  {0x13, 0xe7},
111  {0x26, 0x72},
112  {0x27, 0x08},
113  {0x28, 0x08},
114  {0x2c, 0x08},
115  {0xab, 0x04},
116  {0x6e, 0x00},
117  {0x6d, 0x55},
118  {0x00, 0x11},
119  {0x10, 0x7b},
120  {0xbb, 0xae},
121  {0x11, 0x03},
122  {0x72, 0x00},
123  {0x3e, 0x0c},
124  {0x74, 0x3a},
125  {0x76, 0x01},
126  {0x75, 0x35},
127  {0x73, 0x00},
128  {0xc7, 0x80},
129  {0x62, 0x00},
130  {0x63, 0x00},
131  {0x64, 0x02},
132  {0x65, 0x20},
133  {0x66, 0x01},
134  {0xc3, 0x4e},
135  {0x33, 0x00},
136  {0xa4, 0x50},
137  {0xaa, 0x92},
138  {0xc2, 0x01},
139  {0xc1, 0xc8},
140  {0x1e, 0x04},
141  {0xa9, 0xef},
142  {0x0e, 0x61},
143  {0x39, 0x57},
144  {0x0f, 0x48},
145  {0x24, 0x3c},
146  {0x25, 0x36},
147  {0x12, 0x63},
148  {0x03, 0x12},
149  {0x32, 0xff},
150  {0x17, 0x16},
151  {0x18, 0x02},
152  {0x19, 0x01},
153  {0x1a, 0x3d},
154  {0x36, 0xfa},
155  {0x69, 0x0a},
156  {0x8c, 0x8d},
157  {0xc0, 0xaa},
158  {0x40, 0xd0},
159  {0x43, 0x14},
160  {0x44, 0xf0},
161  {0x45, 0x46},
162  {0x46, 0x62},
163  {0x47, 0x2a},
164  {0x48, 0x3c},
165  {0x59, 0x85},
166  {0x5a, 0xa9},
167  {0x5b, 0x64},
168  {0x5c, 0x84},
169  {0x5d, 0x53},
170  {0x5e, 0x0e},
171  {0x6c, 0x0c},
172  {0xc6, 0x85},
173  {0xcb, 0xf0},
174  {0xcc, 0xd8},
175  {0x71, 0x78},
176  {0xa5, 0x68},
177  {0x6f, 0x9e},
178  {0x42, 0xc0},
179  {0x3f, 0x82},
180  {0x8a, 0x23},
181  {0x14, 0x3a},
182  {0x3b, 0xcc},
183  {0x34, 0x3d},
184  {0x41, 0x40},
185  {0xc9, 0xe0},
186  {0xca, 0xe8},
187  {0xcd, 0x93},
188  {0x7a, 0x20},
189  {0x7b, 0x1c},
190  {0x7c, 0x28},
191  {0x7d, 0x3c},
192  {0x7e, 0x5a},
193  {0x7f, 0x68},
194  {0x80, 0x76},
195  {0x81, 0x80},
196  {0x82, 0x88},
197  {0x83, 0x8f},
198  {0x84, 0x96},
199  {0x85, 0xa3},
200  {0x86, 0xaf},
201  {0x87, 0xc4},
202  {0x88, 0xd7},
203  {0x89, 0xe8},
204  {0x4f, 0x98},
205  {0x50, 0x98},
206  {0x51, 0x00},
207  {0x52, 0x28},
208  {0x53, 0x70},
209  {0x54, 0x98},
210  {0x58, 0x1a},
211  {0x6b, 0x5a},
212  {0x90, 0x92},
213  {0x91, 0x92},
214  {0x9f, 0x90},
215  {0xa0, 0x90},
216  {0x16, 0x24},
217  {0x2a, 0x00},
218  {0x2b, 0x00},
219  {0xac, 0x80},
220  {0xad, 0x80},
221  {0xae, 0x80},
222  {0xaf, 0x80},
223  {0xb2, 0xf2},
224  {0xb3, 0x20},
225  {0xb4, 0x20},
226  {0xb6, 0xaf},
227  {0x29, 0x15},
228  {0x9d, 0x02},
229  {0x9e, 0x02},
230  {0x9e, 0x02},
231  {0x04, 0x03},
232  {0x05, 0x2e},
233  {0x06, 0x2e},
234  {0x07, 0x2e},
235  {0x08, 0x2e},
236  {0x2f, 0x2e},
237  {0x4a, 0xe9},
238  {0x4b, 0xdd},
239  {0x4c, 0xdd},
240  {0x4d, 0xdd},
241  {0x4e, 0xdd},
242  {0x70, 0x06},
243  {0xa6, 0x40},
244  {0xbc, 0x02},
245  {0xbd, 0x01},
246  {0xbe, 0x02},
247  {0xbf, 0x01},
248 };
249 
250 /* Initialization sequence for QVGA resolution (320x240) */
251 const unsigned char OV9655_QVGA[][2]=
252 {
253  {0x00, 0x00},
254  {0x01, 0x80},
255  {0x02, 0x80},
256  {0x03, 0x02},
257  {0x04, 0x03},
258  {0x09, 0x01},
259  {0x0b, 0x57},
260  {0x0e, 0x61},
261  {0x0f, 0x40},
262  {0x11, 0x01},
263  {0x12, 0x62},
264  {0x13, 0xc7},
265  {0x14, 0x3a},
266  {0x16, 0x24},
267  {0x17, 0x18},
268  {0x18, 0x04},
269  {0x19, 0x01},
270  {0x1a, 0x81},
271  {0x1e, 0x00},
272  {0x24, 0x3c},
273  {0x25, 0x36},
274  {0x26, 0x72},
275  {0x27, 0x08},
276  {0x28, 0x08},
277  {0x29, 0x15},
278  {0x2a, 0x00},
279  {0x2b, 0x00},
280  {0x2c, 0x08},
281  {0x32, 0x12},
282  {0x33, 0x00},
283  {0x34, 0x3f},
284  {0x35, 0x00},
285  {0x36, 0x3a},
286  {0x38, 0x72},
287  {0x39, 0x57},
288  {0x3a, 0xcc},
289  {0x3b, 0x04},
290  {0x3d, 0x99},
291  {0x3e, 0x02},
292  {0x3f, 0xc1},
293  {0x40, 0xc0},
294  {0x41, 0x41},
295  {0x42, 0xc0},
296  {0x43, 0x0a},
297  {0x44, 0xf0},
298  {0x45, 0x46},
299  {0x46, 0x62},
300  {0x47, 0x2a},
301  {0x48, 0x3c},
302  {0x4a, 0xfc},
303  {0x4b, 0xfc},
304  {0x4c, 0x7f},
305  {0x4d, 0x7f},
306  {0x4e, 0x7f},
307  {0x4f, 0x98},
308  {0x50, 0x98},
309  {0x51, 0x00},
310  {0x52, 0x28},
311  {0x53, 0x70},
312  {0x54, 0x98},
313  {0x58, 0x1a},
314  {0x59, 0x85},
315  {0x5a, 0xa9},
316  {0x5b, 0x64},
317  {0x5c, 0x84},
318  {0x5d, 0x53},
319  {0x5e, 0x0e},
320  {0x5f, 0xf0},
321  {0x60, 0xf0},
322  {0x61, 0xf0},
323  {0x62, 0x00},
324  {0x63, 0x00},
325  {0x64, 0x02},
326  {0x65, 0x20},
327  {0x66, 0x00},
328  {0x69, 0x0a},
329  {0x6b, 0x5a},
330  {0x6c, 0x04},
331  {0x6d, 0x55},
332  {0x6e, 0x00},
333  {0x6f, 0x9d},
334  {0x70, 0x21},
335  {0x71, 0x78},
336  {0x72, 0x11},
337  {0x73, 0x01},
338  {0x74, 0x10},
339  {0x75, 0x10},
340  {0x76, 0x01},
341  {0x77, 0x02},
342  {0x7A, 0x12},
343  {0x7B, 0x08},
344  {0x7C, 0x16},
345  {0x7D, 0x30},
346  {0x7E, 0x5e},
347  {0x7F, 0x72},
348  {0x80, 0x82},
349  {0x81, 0x8e},
350  {0x82, 0x9a},
351  {0x83, 0xa4},
352  {0x84, 0xac},
353  {0x85, 0xb8},
354  {0x86, 0xc3},
355  {0x87, 0xd6},
356  {0x88, 0xe6},
357  {0x89, 0xf2},
358  {0x8a, 0x24},
359  {0x8c, 0x80},
360  {0x90, 0x7d},
361  {0x91, 0x7b},
362  {0x9d, 0x02},
363  {0x9e, 0x02},
364  {0x9f, 0x7a},
365  {0xa0, 0x79},
366  {0xa1, 0x40},
367  {0xa4, 0x50},
368  {0xa5, 0x68},
369  {0xa6, 0x4a},
370  {0xa8, 0xc1},
371  {0xa9, 0xef},
372  {0xaa, 0x92},
373  {0xab, 0x04},
374  {0xac, 0x80},
375  {0xad, 0x80},
376  {0xae, 0x80},
377  {0xaf, 0x80},
378  {0xb2, 0xf2},
379  {0xb3, 0x20},
380  {0xb4, 0x20},
381  {0xb5, 0x00},
382  {0xb6, 0xaf},
383  {0xb6, 0xaf},
384  {0xbb, 0xae},
385  {0xbc, 0x7f},
386  {0xbd, 0x7f},
387  {0xbe, 0x7f},
388  {0xbf, 0x7f},
389  {0xbf, 0x7f},
390  {0xc0, 0xaa},
391  {0xc1, 0xc0},
392  {0xc2, 0x01},
393  {0xc3, 0x4e},
394  {0xc6, 0x05},
395  {0xc7, 0x81},
396  {0xc9, 0xe0},
397  {0xca, 0xe8},
398  {0xcb, 0xf0},
399  {0xcc, 0xd8},
400  {0xcd, 0x93},
401  {0x12, 0x63},
402  {0x40, 0x10},
403 };
404 
405 /* Initialization sequence for QQVGA resolution (160x120) */
406 const char OV9655_QQVGA[][2]=
407 {
408  {0x00, 0x00},
409  {0x01, 0x80},
410  {0x02, 0x80},
411  {0x03, 0x02},
412  {0x04, 0x03},
413  {0x09, 0x01},
414  {0x0b, 0x57},
415  {0x0e, 0x61},
416  {0x0f, 0x40},
417  {0x11, 0x01},
418  {0x12, 0x62},
419  {0x13, 0xc7},
420  {0x14, 0x3a},
421  {0x16, 0x24},
422  {0x17, 0x18},
423  {0x18, 0x04},
424  {0x19, 0x01},
425  {0x1a, 0x81},
426  {0x1e, 0x00},
427  {0x24, 0x3c},
428  {0x25, 0x36},
429  {0x26, 0x72},
430  {0x27, 0x08},
431  {0x28, 0x08},
432  {0x29, 0x15},
433  {0x2a, 0x00},
434  {0x2b, 0x00},
435  {0x2c, 0x08},
436  {0x32, 0xa4},
437  {0x33, 0x00},
438  {0x34, 0x3f},
439  {0x35, 0x00},
440  {0x36, 0x3a},
441  {0x38, 0x72},
442  {0x39, 0x57},
443  {0x3a, 0xcc},
444  {0x3b, 0x04},
445  {0x3d, 0x99},
446  {0x3e, 0x0e},
447  {0x3f, 0xc1},
448  {0x40, 0xc0},
449  {0x41, 0x41},
450  {0x42, 0xc0},
451  {0x43, 0x0a},
452  {0x44, 0xf0},
453  {0x45, 0x46},
454  {0x46, 0x62},
455  {0x47, 0x2a},
456  {0x48, 0x3c},
457  {0x4a, 0xfc},
458  {0x4b, 0xfc},
459  {0x4c, 0x7f},
460  {0x4d, 0x7f},
461  {0x4e, 0x7f},
462  {0x4f, 0x98},
463  {0x50, 0x98},
464  {0x51, 0x00},
465  {0x52, 0x28},
466  {0x53, 0x70},
467  {0x54, 0x98},
468  {0x58, 0x1a},
469  {0x59, 0x85},
470  {0x5a, 0xa9},
471  {0x5b, 0x64},
472  {0x5c, 0x84},
473  {0x5d, 0x53},
474  {0x5e, 0x0e},
475  {0x5f, 0xf0},
476  {0x60, 0xf0},
477  {0x61, 0xf0},
478  {0x62, 0x00},
479  {0x63, 0x00},
480  {0x64, 0x02},
481  {0x65, 0x20},
482  {0x66, 0x00},
483  {0x69, 0x0a},
484  {0x6b, 0x5a},
485  {0x6c, 0x04},
486  {0x6d, 0x55},
487  {0x6e, 0x00},
488  {0x6f, 0x9d},
489  {0x70, 0x21},
490  {0x71, 0x78},
491  {0x72, 0x22},
492  {0x73, 0x02},
493  {0x74, 0x10},
494  {0x75, 0x10},
495  {0x76, 0x01},
496  {0x77, 0x02},
497  {0x7A, 0x12},
498  {0x7B, 0x08},
499  {0x7C, 0x16},
500  {0x7D, 0x30},
501  {0x7E, 0x5e},
502  {0x7F, 0x72},
503  {0x80, 0x82},
504  {0x81, 0x8e},
505  {0x82, 0x9a},
506  {0x83, 0xa4},
507  {0x84, 0xac},
508  {0x85, 0xb8},
509  {0x86, 0xc3},
510  {0x87, 0xd6},
511  {0x88, 0xe6},
512  {0x89, 0xf2},
513  {0x8a, 0x24},
514  {0x8c, 0x80},
515  {0x90, 0x7d},
516  {0x91, 0x7b},
517  {0x9d, 0x02},
518  {0x9e, 0x02},
519  {0x9f, 0x7a},
520  {0xa0, 0x79},
521  {0xa1, 0x40},
522  {0xa4, 0x50},
523  {0xa5, 0x68},
524  {0xa6, 0x4a},
525  {0xa8, 0xc1},
526  {0xa9, 0xef},
527  {0xaa, 0x92},
528  {0xab, 0x04},
529  {0xac, 0x80},
530  {0xad, 0x80},
531  {0xae, 0x80},
532  {0xaf, 0x80},
533  {0xb2, 0xf2},
534  {0xb3, 0x20},
535  {0xb4, 0x20},
536  {0xb5, 0x00},
537  {0xb6, 0xaf},
538  {0xb6, 0xaf},
539  {0xbb, 0xae},
540  {0xbc, 0x7f},
541  {0xbd, 0x7f},
542  {0xbe, 0x7f},
543  {0xbf, 0x7f},
544  {0xbf, 0x7f},
545  {0xc0, 0xaa},
546  {0xc1, 0xc0},
547  {0xc2, 0x01},
548  {0xc3, 0x4e},
549  {0xc6, 0x05},
550  {0xc7, 0x82},
551  {0xc9, 0xe0},
552  {0xca, 0xe8},
553  {0xcb, 0xf0},
554  {0xcc, 0xd8},
555  {0xcd, 0x93},
556  {0x12, 0x63},
557  {0x40, 0x10},
558 };
559 
574 void ov9655_Init(uint16_t DeviceAddr, uint32_t resolution)
575 {
576  uint32_t index;
577 
578  /* Initialize I2C */
579  CAMERA_IO_Init();
580 
581  /* Prepare the camera to be configured by resetting all its registers */
582  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_COM7, 0x80);
583  CAMERA_Delay(200);
584 
585  /* Initialize OV9655 */
586  switch (resolution)
587  {
588  case CAMERA_R160x120:
589  {
590  for(index=0; index<(sizeof(OV9655_QQVGA)/2); index++)
591  {
592  CAMERA_IO_Write(DeviceAddr, OV9655_QQVGA[index][0], OV9655_QQVGA[index][1]);
593  CAMERA_Delay(2);
594  }
595  break;
596  }
597  case CAMERA_R320x240:
598  {
599  for(index=0; index<(sizeof(OV9655_QVGA)/2); index++)
600  {
601  CAMERA_IO_Write(DeviceAddr, OV9655_QVGA[index][0], OV9655_QVGA[index][1]);
602  CAMERA_Delay(2);
603  }
604  break;
605  }
606  case CAMERA_R480x272:
607  {
608  /* Not supported resolution */
609  break;
610  }
611  case CAMERA_R640x480:
612  {
613  for(index=0; index<(sizeof(OV9655_VGA)/2); index++)
614  {
615  CAMERA_IO_Write(DeviceAddr, OV9655_VGA[index][0], OV9655_VGA[index][1]);
616  CAMERA_Delay(2);
617  }
618  break;
619  }
620  default:
621  {
622  break;
623  }
624  }
625 }
626 
635 void ov9655_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t brightness_value)
636 {
637  uint8_t tslb, mtx1, mtx2, mtx3, mtx4, mtx5, mtx6;
638  uint64_t value_tmp;
639  uint32_t br_value;
640 
641  /* Convert the input value into ov9655 parameters */
642  value_tmp = ov9655_ConvertValue(feature, value);
643  br_value = (uint32_t)ov9655_ConvertValue(CAMERA_CONTRAST_BRIGHTNESS, brightness_value);
644 
645  switch(feature)
646  {
648  {
649  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_BRTN, br_value);
650  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_CNST1, value_tmp);
651  break;
652  }
653  case CAMERA_BLACK_WHITE:
654  case CAMERA_COLOR_EFFECT:
655  {
656  tslb = (uint8_t)(value_tmp >> 48);
657  mtx1 = (uint8_t)(value_tmp >> 40);
658  mtx2 = (uint8_t)(value_tmp >> 32);
659  mtx3 = (uint8_t)(value_tmp >> 24);
660  mtx4 = (uint8_t)(value_tmp >> 16);
661  mtx5 = (uint8_t)(value_tmp >> 8);
662  mtx6 = (uint8_t)(value_tmp);
663  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_TSLB, tslb);
664  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX1, mtx1);
665  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX2, mtx2);
666  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX3, mtx3);
667  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX4, mtx4);
668  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX5, mtx5);
669  CAMERA_IO_Write(DeviceAddr, OV9655_SENSOR_MTX6, mtx6);
670  break;
671  }
672  default:
673  {
674  break;
675  }
676  }
677 }
678 
684 uint16_t ov9655_ReadID(uint16_t DeviceAddr)
685 {
686  /* Initialize I2C */
687  CAMERA_IO_Init();
688 
689  /* Get the camera ID */
690  return (CAMERA_IO_Read(DeviceAddr, OV9655_SENSOR_PIDH));
691 }
692 
693 /******************************************************************************
694  Static Functions
695 *******************************************************************************/
702 static uint64_t ov9655_ConvertValue(uint32_t feature, uint32_t value)
703 {
704  uint64_t ret = 0;
705 
706  switch(feature)
707  {
708  case CAMERA_BLACK_WHITE:
709  {
710  switch(value)
711  {
713  {
714  ret = OV9655_BLACK_WHITE_BW;
715  break;
716  }
718  {
720  break;
721  }
723  {
725  break;
726  }
728  {
730  break;
731  }
732  default:
733  {
735  break;
736  }
737  }
738  break;
739  }
741  {
742  switch(value)
743  {
745  {
747  break;
748  }
750  {
752  break;
753  }
755  {
757  break;
758  }
760  {
762  break;
763  }
765  {
767  break;
768  }
770  {
772  break;
773  }
775  {
777  break;
778  }
780  {
782  break;
783  }
785  {
787  break;
788  }
790  {
792  break;
793  }
794  default:
795  {
797  break;
798  }
799  }
800  break;
801  }
802  case CAMERA_COLOR_EFFECT:
803  {
804  switch(value)
805  {
807  {
809  break;
810  }
812  {
814  break;
815  }
817  {
819  break;
820  }
822  {
824  break;
825  }
827  default:
828  {
830  break;
831  }
832  }
833  break;
834  default:
835  {
836  ret = 0;
837  break;
838  }
839  }
840  }
841 
842  return ret;
843 }
844 
861 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
#define CAMERA_BLACK_WHITE_NORMAL
Definition: camera.h:111
#define OV9655_BLACK_WHITE_BW
Definition: ov9655.h:105
#define CAMERA_BLACK_WHITE
Definition: camera.h:93
#define OV9655_SENSOR_COM7
Definition: ov9655.h:84
#define CAMERA_BRIGHTNESS_LEVEL0
Definition: camera.h:96
#define CAMERA_BLACK_WHITE_BW_NEGATIVE
Definition: camera.h:110
#define CAMERA_BRIGHTNESS_LEVEL1
Definition: camera.h:97
uint16_t ov9655_ReadID(uint16_t DeviceAddr)
Read the OV9655 Camera identity.
Definition: ov9655.c:684
#define OV9655_SENSOR_MTX4
Definition: ov9655.h:89
#define CAMERA_R320x240
Definition: camera.h:88
const char OV9655_QQVGA[][2]
Definition: ov9655.c:406
#define CAMERA_BRIGHTNESS_LEVEL3
Definition: camera.h:99
#define CAMERA_COLOR_EFFECT_RED
Definition: camera.h:116
#define CAMERA_BRIGHTNESS_LEVEL2
Definition: camera.h:98
const unsigned char OV9655_QVGA[][2]
Definition: ov9655.c:251
#define OV9655_SENSOR_MTX6
Definition: ov9655.h:91
#define OV9655_SENSOR_MTX5
Definition: ov9655.h:90
#define OV9655_BLACK_WHITE_NORMAL
Definition: ov9655.h:108
#define OV9655_SENSOR_CNST1
Definition: ov9655.h:93
#define OV9655_BRIGHTNESS_LEVEL3
Definition: ov9655.h:102
#define OV9655_BLACK_WHITE_BW_NEGATIVE
Definition: ov9655.h:107
#define OV9655_BRIGHTNESS_LEVEL2
Definition: ov9655.h:101
#define OV9655_COLOR_EFFECT_RED
Definition: ov9655.h:120
#define CAMERA_COLOR_EFFECT_NONE
Definition: camera.h:113
#define CAMERA_CONTRAST_LEVEL2
Definition: camera.h:104
#define CAMERA_COLOR_EFFECT
Definition: camera.h:94
#define OV9655_COLOR_EFFECT_BLUE
Definition: ov9655.h:118
#define OV9655_SENSOR_MTX1
Definition: ov9655.h:86
#define OV9655_CONTRAST_LEVEL1
Definition: ov9655.h:111
#define CAMERA_R640x480
Definition: camera.h:90
CAMERA_DrvTypeDef ov9655_drv
Definition: ov9655.c:91
#define CAMERA_R480x272
Definition: camera.h:89
#define CAMERA_BLACK_WHITE_NEGATIVE
Definition: camera.h:109
#define OV9655_SENSOR_TSLB
Definition: ov9655.h:85
#define OV9655_COLOR_EFFECT_GREEN
Definition: ov9655.h:119
#define OV9655_SENSOR_PIDH
OV9655 Registers.
Definition: ov9655.h:82
#define CAMERA_CONTRAST_LEVEL1
Definition: camera.h:103
void CAMERA_IO_Write(uint8_t addr, uint8_t reg, uint8_t value)
void CAMERA_Delay(uint32_t delay)
#define CAMERA_COLOR_EFFECT_BLUE
Definition: camera.h:114
#define OV9655_CONTRAST_LEVEL4
Definition: ov9655.h:114
#define OV9655_BRIGHTNESS_LEVEL0
OV9655 Features Parameters.
Definition: ov9655.h:99
#define OV9655_CONTRAST_LEVEL0
Definition: ov9655.h:110
#define OV9655_COLOR_EFFECT_ANTIQUE
Definition: ov9655.h:117
#define OV9655_SENSOR_MTX3
Definition: ov9655.h:88
uint8_t CAMERA_IO_Read(uint8_t addr, uint8_t reg)
void ov9655_Init(uint16_t DeviceAddr, uint32_t resolution)
Initializes the OV9655 CAMERA component.
Definition: ov9655.c:574
#define OV9655_BRIGHTNESS_LEVEL1
Definition: ov9655.h:100
#define CAMERA_CONTRAST_LEVEL0
Definition: camera.h:102
#define CAMERA_COLOR_EFFECT_GREEN
Definition: camera.h:115
#define OV9655_BLACK_WHITE_NEGATIVE
Definition: ov9655.h:106
#define CAMERA_BLACK_WHITE_BW
Definition: camera.h:108
#define CAMERA_R160x120
Definition: camera.h:87
void ov9655_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t brightness_value)
Configures the OV9655 camera feature.
Definition: ov9655.c:635
#define CAMERA_CONTRAST_BRIGHTNESS
Definition: camera.h:92
const unsigned char OV9655_VGA[][2]
Definition: ov9655.c:99
#define CAMERA_CONTRAST_LEVEL4
Definition: camera.h:106
#define OV9655_CONTRAST_LEVEL2
Definition: ov9655.h:112
#define CAMERA_CONTRAST_LEVEL3
Definition: camera.h:105
#define OV9655_SENSOR_MTX2
Definition: ov9655.h:87
#define OV9655_SENSOR_BRTN
Definition: ov9655.h:92
#define OV9655_CONTRAST_LEVEL3
Definition: ov9655.h:113
#define OV9655_BRIGHTNESS_LEVEL4
Definition: ov9655.h:103
void CAMERA_IO_Init(void)
#define OV9655_COLOR_EFFECT_NONE
Definition: ov9655.h:116
#define CAMERA_COLOR_EFFECT_ANTIQUE
Definition: camera.h:117
#define CAMERA_BRIGHTNESS_LEVEL4
Definition: camera.h:100
This file contains all the functions prototypes for the ov9655.c driver.