bf20a6_settings.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. #include <stdint.h>
  2. #define REG_DLY 0xffff
  3. #define REGLIST_TAIL 0xffff /* Array end token */
  4. static const uint16_t bf20a6_default_init_regs[][2] = {
  5. {0xf2,0x01},
  6. {0x12,0x20},
  7. {0x3a,0x00},
  8. {0xe1,0x92},
  9. {0xe3,0x12},// PLL Control, important for framerate(choice: 0x02\0x12\0x22\0x32\0x82)
  10. {0xe0,0x00},
  11. {0x2a,0x98},
  12. {0xcd,0x17},
  13. {0xc0,0x10},
  14. {0xc6,0x1d},
  15. {0x10,0x35},
  16. {0xe2,0x09},
  17. {0xe4,0x72},
  18. {0xe5,0x22},
  19. {0xe6,0x24},
  20. {0xe7,0x64},
  21. {0xe8,0xa2}, // DVP:a2}, SPI:f2 VDDIO=1.8V,E8[2]=1},VDDIO=2.8V,E8[2]=0},
  22. {0x4a,0x00},
  23. {0x00,0x03},
  24. {0x1f,0x02},
  25. {0x22,0x02},
  26. {0x0c,0x31},
  27. {0x00,0x00},
  28. {0x60,0x81},
  29. {0x61,0x81},
  30. {0xa0,0x08},
  31. {0x01,0x1a},
  32. // {0x01,0x1a},
  33. // {0x01,0x1a},
  34. // {0x02,0x15},
  35. // {0x02,0x15},
  36. {0x02,0x15},
  37. {0x13,0x08},
  38. {0x8a,0x96},
  39. {0x8b,0x06},
  40. {0x87,0x18},
  41. {0x34,0x48}, // lens
  42. {0x35,0x40},
  43. {0x36,0x40},
  44. {0x71,0x44},
  45. {0x72,0x48},
  46. {0x74,0xa2},
  47. {0x75,0xa9},
  48. {0x78,0x12},
  49. {0x79,0xa0},
  50. {0x7a,0x94},
  51. {0x7c,0x97},
  52. {0x40,0x30},
  53. {0x41,0x30},
  54. {0x42,0x28},
  55. {0x43,0x1f},
  56. {0x44,0x1c},
  57. {0x45,0x16},
  58. {0x46,0x13},
  59. {0x47,0x10},
  60. {0x48,0x0D},
  61. {0x49,0x0C},
  62. {0x4B,0x0A},
  63. {0x4C,0x0B},
  64. {0x4E,0x09},
  65. {0x4F,0x08},
  66. {0x50,0x08},
  67. {0x5f,0x29},
  68. {0x23,0x33},
  69. {0xa1,0x10}, // AWB
  70. {0xa2,0x0d},
  71. {0xa3,0x30},
  72. {0xa4,0x06},
  73. {0xa5,0x22},
  74. {0xa6,0x56},
  75. {0xa7,0x18},
  76. {0xa8,0x1a},
  77. {0xa9,0x12},
  78. {0xaa,0x12},
  79. {0xab,0x16},
  80. {0xac,0xb1},
  81. {0xba,0x12},
  82. {0xbb,0x12},
  83. {0xad,0x12},
  84. {0xae,0x56},
  85. {0xaf,0x0a},
  86. {0x3b,0x30},
  87. {0x3c,0x12},
  88. {0x3d,0x22},
  89. {0x3e,0x3f},
  90. {0x3f,0x28},
  91. {0xb8,0xc3},
  92. {0xb9,0xa3},
  93. {0x39,0x47}, // pure color threshold
  94. {0x26,0x13},
  95. {0x27,0x16},
  96. {0x28,0x14},
  97. {0x29,0x18},
  98. {0xee,0x0d},
  99. {0x13,0x05},
  100. {0x24,0x3C},
  101. {0x81,0x20},
  102. {0x82,0x40},
  103. {0x83,0x30},
  104. {0x84,0x58},
  105. {0x85,0x30},
  106. {0x92,0x08},
  107. {0x86,0x80},
  108. {0x8a,0x96},
  109. {0x91,0xff},
  110. {0x94,0x62},
  111. {0x9a,0x18}, // outdoor threshold
  112. {0xf0,0x45}, // integral time control, important for framerate(choice: 0x46\0x45\0x44..)
  113. {0x51,0x17}, // color normal
  114. {0x52,0x03},
  115. {0x53,0x5F},
  116. {0x54,0x47},
  117. {0x55,0x66},
  118. {0x56,0x0F},
  119. {0x7e,0x14},
  120. {0x57,0x36}, // color
  121. {0x58,0x2A},
  122. {0x59,0xAA},
  123. {0x5a,0xA8},
  124. {0x5b,0x43},
  125. {0x5c,0x10},
  126. {0x5d,0x00},
  127. {0x7d,0x36},
  128. {0x5e,0x10},
  129. {0xd6,0x88}, // contrast
  130. {0xd5,0x20}, // bright
  131. {0xb0,0x84}, // low light ctrl in gray section
  132. {0xb5,0x08}, // the threshold of GLB_GAIN
  133. {0xb1,0xc8}, // saturation
  134. {0xb2,0xc0},
  135. {0xb3,0xd0},
  136. {0xb4,0xB0},
  137. {0x32,0x10},
  138. // {0x8a,0x00},
  139. // {0x8b,0x10},
  140. {0xa0,0x09},
  141. {0x00,0x03},
  142. {0x0b,0x02},
  143. {REGLIST_TAIL, 0x00},
  144. };