Lines Matching +full:0 +full:x3a
49 .com7 = 0x2c,
50 .com3 = 0x00,
51 .com14 = 0x11,
52 .scaling_xsc = 0x3a,
53 .scaling_ysc = 0x35,
54 .dcwctr = 0x11,
55 .pclk_div = 0xf1,
56 .pclk_delay = 0x52
60 .com7 = 0x14,
61 .com3 = 0x04,
62 .com14 = 0x19,
63 .scaling_xsc = 0x3a,
64 .scaling_ysc = 0x35,
65 .dcwctr = 0x11,
66 .pclk_div = 0xf1,
67 .pclk_delay = 0x02
71 .com7 = 0x24,
72 .com3 = 0x08,
73 .com14 = 0x11,
74 .scaling_xsc = 0x3a,
75 .scaling_ysc = 0x35,
76 .dcwctr = 0x11,
77 .pclk_div = 0xf1,
78 .pclk_delay = 0x02
82 .com7 = 0x04,
83 .com3 = 0x00,
84 .com14 = 0x00,
85 .scaling_xsc = 0x3a,
86 .scaling_ysc = 0x35,
87 .dcwctr = 0x11,
88 .pclk_div = 0xf0,
89 .pclk_delay = 0x02
94 #define OV7670_PID 0x0A
95 #define OV7670_COM7 0x12
96 #define OV7670_MVFP 0x1E
97 #define OV7670_COM10 0x15
98 #define OV7670_COM12 0x3C
99 #define OV7670_BRIGHT 0x55
100 #define OV7670_CLKRC 0x11
101 #define OV7670_SCALING_PCLK_DIV 0x73
102 #define OV7670_COM14 0x3E
103 #define OV7670_DBLV 0x6B
104 #define OV7670_SCALING_XSC 0x70
105 #define OV7670_SCALING_YSC 0x71
106 #define OV7670_COM2 0x09
107 #define OV7670_SCALING_PCLK_DELAY 0xA2
108 #define OV7670_BD50MAX 0xA5
109 #define OV7670_BD60MAX 0xAB
110 #define OV7670_HAECC7 0xAA
111 #define OV7670_COM3 0x0C
112 #define OV7670_COM4 0x0D
113 #define OV7670_COM6 0x0F
114 #define OV7670_COM11 0x3B
115 #define OV7670_EDGE 0x3F
116 #define OV7670_DNSTH 0x4C
117 #define OV7670_DM_LNL 0x92
118 #define OV7670_DM_LNH 0x93
119 #define OV7670_COM15 0x40
120 #define OV7670_TSLB 0x3A
121 #define OV7670_COM13 0x3D
122 #define OV7670_MANU 0x67
123 #define OV7670_MANV 0x68
124 #define OV7670_HSTART 0x17
125 #define OV7670_HSTOP 0x18
126 #define OV7670_VSTRT 0x19
127 #define OV7670_VSTOP 0x1A
128 #define OV7670_HREF 0x32
129 #define OV7670_VREF 0x03
130 #define OV7670_SCALING_DCWCTR 0x72
131 #define OV7670_GAIN 0x00
132 #define OV7670_AECHH 0x07
133 #define OV7670_AECH 0x10
134 #define OV7670_COM8 0x13
135 #define OV7670_COM9 0x14
136 #define OV7670_AEW 0x24
137 #define OV7670_AEB 0x25
138 #define OV7670_VPT 0x26
139 #define OV7670_AWBC1 0x43
140 #define OV7670_AWBC2 0x44
141 #define OV7670_AWBC3 0x45
142 #define OV7670_AWBC4 0x46
143 #define OV7670_AWBC5 0x47
144 #define OV7670_AWBC6 0x48
145 #define OV7670_MTX1 0x4F
146 #define OV7670_MTX2 0x50
147 #define OV7670_MTX3 0x51
148 #define OV7670_MTX4 0x52
149 #define OV7670_MTX5 0x53
150 #define OV7670_MTX6 0x54
151 #define OV7670_LCC1 0x62
152 #define OV7670_LCC2 0x63
153 #define OV7670_LCC3 0x64
154 #define OV7670_LCC4 0x65
155 #define OV7670_LCC5 0x66
156 #define OV7670_LCC6 0x94
157 #define OV7670_LCC7 0x95
158 #define OV7670_SLOP 0x7A
159 #define OV7670_GAM1 0x7B
160 #define OV7670_GAM2 0x7C
161 #define OV7670_GAM3 0x7D
162 #define OV7670_GAM4 0x7E
163 #define OV7670_GAM5 0x7F
164 #define OV7670_GAM6 0x80
165 #define OV7670_GAM7 0x81
166 #define OV7670_GAM8 0x82
167 #define OV7670_GAM9 0x83
168 #define OV7670_GAM10 0x84
169 #define OV7670_GAM11 0x85
170 #define OV7670_GAM12 0x86
171 #define OV7670_GAM13 0x87
172 #define OV7670_GAM14 0x88
173 #define OV7670_GAM15 0x89
174 #define OV7670_HAECC1 0x9F
175 #define OV7670_HAECC2 0xA0
176 #define OV7670_HSYEN 0x31
177 #define OV7670_HAECC3 0xA6
178 #define OV7670_HAECC4 0xA7
179 #define OV7670_HAECC5 0xA8
180 #define OV7670_HAECC6 0xA9
183 #define OV7670_PROD_ID 0x76
188 .height_min = (height), .height_max = (height), .width_step = 0, .height_step = 0 \
200 {0}};
207 {OV7670_MVFP, 0x20}, /* MVFP: Mirror/VFlip,Normal image */
211 {OV7670_COM10, 0x20}, /* COM10 */
212 {OV7670_COM12, 0x00}, /* COM12,No HREF when VSYNC is low */
213 /* Brightness Control, with signal -128 to +128, 0x00 is middle value */
214 {OV7670_BRIGHT, 0x2f},
216 /* Internal clock pre-scalar,F(internal clock) = F(input clock)/(Bit[5:0]+1) */
217 {OV7670_CLKRC, 0x80}, /* Clock Div, Input/(n+1), bit6 set to 1 to disable divider */
220 /* 0:Bypass PLL, 40: Input clock x4 , 80: Input clock x6 ,C0: Input clock x8 */
221 {OV7670_DBLV, 0x00},
224 {OV7670_COM2, 0x00}, /* Common Control 2, Output Drive Capability: 1x */
225 {OV7670_BD50MAX, 0x05},
226 {OV7670_BD60MAX, 0x07},
227 {OV7670_HAECC7, 0x94},
229 {OV7670_COM4, 0x00},
230 {OV7670_COM6, 0x4b},
231 {OV7670_COM11, 0x9F}, /* Night mode */
232 {OV7670_EDGE, 0x04}, /* Edge Enhancement Adjustment */
233 {OV7670_DNSTH, 0x00}, /* De-noise Strength */
235 {OV7670_DM_LNL, 0x00},
236 {OV7670_DM_LNH, 0x00},
239 {0x16, 0x02},
240 {0x21, 0x02},
241 {0x22, 0x91},
242 {0x29, 0x07},
243 {0x35, 0x0b},
244 {0x33, 0x0b},
245 {0x37, 0x1d},
246 {0x38, 0x71},
247 {0x39, 0x2a},
248 {0x0e, 0x61},
249 {0x56, 0x40},
250 {0x57, 0x80},
251 {0x69, 0x00},
252 {0x74, 0x19},
255 {OV7670_COM15, 0xD0}, /* Common Control 15 */
256 {OV7670_TSLB, 0x0C}, /* Line Buffer Test Option */
257 {OV7670_COM13, 0x80}, /* Common Control 13 */
258 {OV7670_MANU, 0x11}, /* Manual U Value */
259 {OV7670_MANV, 0xFF}, /* Manual V Value */
261 {OV7670_HSTART, 0x16}, /* HSTART */
262 {OV7670_HSTOP, 0x04}, /* HSTOP */
263 {OV7670_VSTRT, 0x02}, /* VSTRT */
264 {OV7670_VSTOP, 0x7a}, /* VSTOP */
265 {OV7670_HREF, 0x80}, /* HREF */
266 {OV7670_VREF, 0x0a}, /* VREF */
269 {OV7670_GAIN, 0x00}, /* AGC */
270 {OV7670_AECHH, 0x3F}, /* Exposure Value */
271 {OV7670_AECH, 0xFF},
272 {OV7670_COM8, 0x66},
273 {OV7670_COM9, 0x21}, /* limit the max gain */
274 {OV7670_AEW, 0x75},
275 {OV7670_AEB, 0x63},
276 {OV7670_VPT, 0xA5},
278 {OV7670_AWBC1, 0x14},
279 {OV7670_AWBC2, 0xf0},
280 {OV7670_AWBC3, 0x34},
281 {OV7670_AWBC4, 0x58},
282 {OV7670_AWBC5, 0x28},
283 {OV7670_AWBC6, 0x3a},
285 {OV7670_MTX1, 0x80},
286 {OV7670_MTX2, 0x80},
287 {OV7670_MTX3, 0x00},
288 {OV7670_MTX4, 0x22},
289 {OV7670_MTX5, 0x5e},
290 {OV7670_MTX6, 0x80},
292 {0x59, 0x88},
293 {0x5a, 0x88},
294 {0x5b, 0x44},
295 {0x5c, 0x67},
296 {0x5d, 0x49},
297 {0x5e, 0x0e},
298 {0x6c, 0x0a},
299 {0x6d, 0x55},
300 {0x6e, 0x11},
301 {0x6f, 0x9f},
303 {OV7670_LCC1, 0x00},
304 {OV7670_LCC2, 0x00},
305 {OV7670_LCC3, 0x04},
306 {OV7670_LCC4, 0x20},
307 {OV7670_LCC5, 0x05},
308 {OV7670_LCC6, 0x04}, /* effective only when LCC5[2] is high */
309 {OV7670_LCC7, 0x08}, /* effective only when LCC5[2] is high */
311 {OV7670_SLOP, 0x20},
312 {OV7670_GAM1, 0x1c},
313 {OV7670_GAM2, 0x28},
314 {OV7670_GAM3, 0x3c},
315 {OV7670_GAM4, 0x55},
316 {OV7670_GAM5, 0x68},
317 {OV7670_GAM6, 0x76},
318 {OV7670_GAM7, 0x80},
319 {OV7670_GAM8, 0x88},
320 {OV7670_GAM9, 0x8f},
321 {OV7670_GAM10, 0x96},
322 {OV7670_GAM11, 0xa3},
323 {OV7670_GAM12, 0xaf},
324 {OV7670_GAM13, 0xc4},
325 {OV7670_GAM14, 0xd7},
326 {OV7670_GAM15, 0xe8},
328 {OV7670_HAECC1, 0x78},
329 {OV7670_HAECC2, 0x68},
330 {OV7670_HSYEN, 0xff},
331 {0xa1, 0x03},
332 {OV7670_HAECC3, 0xdf},
333 {OV7670_HAECC4, 0xdf},
334 {OV7670_HAECC5, 0xf0},
335 {OV7670_HAECC6, 0x90},
337 {0xb0, 0x84},
338 {0xb1, 0x0c},
339 {0xb2, 0x0e},
340 {0xb3, 0x82},
341 {0xb8, 0x0a},
348 return 0; in ov7670_get_caps()
358 uint8_t i = 0U; in ov7670_set_fmt()
367 return 0; in ov7670_set_fmt()
394 if (ret < 0) { in ov7670_set_fmt()
399 if (ret < 0) { in ov7670_set_fmt()
404 if (ret < 0) { in ov7670_set_fmt()
409 if (ret < 0) { in ov7670_set_fmt()
414 if (ret < 0) { in ov7670_set_fmt()
419 if (ret < 0) { in ov7670_set_fmt()
424 if (ret < 0) { in ov7670_set_fmt()
446 return 0; in ov7670_get_fmt()
469 if (ret < 0) { in ov7670_init()
482 if (ret < 0) { in ov7670_init()
487 gpio_pin_set_dt(&config->reset, 0); in ov7670_init()
504 if (ret < 0) { in ov7670_init()
509 if (ret < 0) { in ov7670_init()
515 LOG_ERR("Incorrect product ID: 0x%02X", pid); in ov7670_init()
520 ret = i2c_reg_write_byte_dt(&config->bus, OV7670_COM7, 0x80); in ov7670_init()
521 if (ret < 0) { in ov7670_init()
534 if (ret < 0) { in ov7670_init()
539 for (i = 0; i < ARRAY_SIZE(ov7670_init_regtbl); i++) { in ov7670_init()
542 if (ret < 0) { in ov7670_init()
547 return 0; in ov7670_init()