Go to the documentation of this file.
20 #ifndef _VS6624_REGS_H_
21 #define _VS6624_REGS_H_
24 #define VS6624_MICRO_EN 0xC003
25 #define VS6624_DIO_EN 0xC044
27 #define VS6624_DEV_ID_MSB 0x0001
28 #define VS6624_DEV_ID_LSB 0x0002
29 #define VS6624_FW_VSN_MAJOR 0x0004
30 #define VS6624_FW_VSN_MINOR 0x0006
31 #define VS6624_PATCH_VSN_MAJOR 0x0008
32 #define VS6624_PATCH_VSN_MINOR 0x000A
34 #define VS6624_USER_CMD 0x0180
36 #define VS6624_STATE 0x0202
38 #define VS6624_METER_ON 0x0280
40 #define VS6624_ACTIVE_PIPE_SETUP 0x0302
41 #define VS6624_SENSOR_MODE 0x0308
43 #define VS6624_IMAGE_SIZE0 0x0380
44 #define VS6624_MAN_HSIZE0_MSB 0x0383
45 #define VS6624_MAN_HSIZE0_LSB 0x0384
46 #define VS6624_MAN_VSIZE0_MSB 0x0387
47 #define VS6624_MAN_VSIZE0_LSB 0x0388
48 #define VS6624_ZOOM_HSTEP0_MSB 0x038B
49 #define VS6624_ZOOM_HSTEP0_LSB 0x038C
50 #define VS6624_ZOOM_VSTEP0_MSB 0x038F
51 #define VS6624_ZOOM_VSTEP0_LSB 0x0390
52 #define VS6624_ZOOM_CTRL0 0x0392
53 #define VS6624_PAN_HSTEP0_MSB 0x0395
54 #define VS6624_PAN_HSTEP0_LSB 0x0396
55 #define VS6624_PAN_VSTEP0_MSB 0x0399
56 #define VS6624_PAN_VSTEP0_LSB 0x039A
57 #define VS6624_PAN_CTRL0 0x039C
58 #define VS6624_CROP_CTRL0 0x039E
59 #define VS6624_CROP_HSTART0_MSB 0x03A1
60 #define VS6624_CROP_HSTART0_LSB 0x03A2
61 #define VS6624_CROP_HSIZE0_MSB 0x03A5
62 #define VS6624_CROP_HSIZE0_LSB 0x03A6
63 #define VS6624_CROP_VSTART0_MSB 0x03A9
64 #define VS6624_CROP_VSTART0_LSB 0x03AA
65 #define VS6624_CROP_VSIZE0_MSB 0x03AD
66 #define VS6624_CROP_VSIZE0_LSB 0x03AE
67 #define VS6624_IMG_FMT0 0x03B0
68 #define VS6624_BAYER_OUT_ALIGN0 0x03B2
69 #define VS6624_CONTRAST0 0x03B4
70 #define VS6624_SATURATION0 0x03B6
71 #define VS6624_GAMMA0 0x03B8
72 #define VS6624_HMIRROR0 0x03BA
73 #define VS6624_VFLIP0 0x03BC
74 #define VS6624_CHANNEL_ID0 0x03BE
76 #define VS6624_IMAGE_SIZE1 0x0400
77 #define VS6624_MAN_HSIZE1_MSB 0x0403
78 #define VS6624_MAN_HSIZE1_LSB 0x0404
79 #define VS6624_MAN_VSIZE1_MSB 0x0407
80 #define VS6624_MAN_VSIZE1_LSB 0x0408
81 #define VS6624_ZOOM_HSTEP1_MSB 0x040B
82 #define VS6624_ZOOM_HSTEP1_LSB 0x040C
83 #define VS6624_ZOOM_VSTEP1_MSB 0x040F
84 #define VS6624_ZOOM_VSTEP1_LSB 0x0410
85 #define VS6624_ZOOM_CTRL1 0x0412
86 #define VS6624_PAN_HSTEP1_MSB 0x0415
87 #define VS6624_PAN_HSTEP1_LSB 0x0416
88 #define VS6624_PAN_VSTEP1_MSB 0x0419
89 #define VS6624_PAN_VSTEP1_LSB 0x041A
90 #define VS6624_PAN_CTRL1 0x041C
91 #define VS6624_CROP_CTRL1 0x041E
92 #define VS6624_CROP_HSTART1_MSB 0x0421
93 #define VS6624_CROP_HSTART1_LSB 0x0422
94 #define VS6624_CROP_HSIZE1_MSB 0x0425
95 #define VS6624_CROP_HSIZE1_LSB 0x0426
96 #define VS6624_CROP_VSTART1_MSB 0x0429
97 #define VS6624_CROP_VSTART1_LSB 0x042A
98 #define VS6624_CROP_VSIZE1_MSB 0x042D
99 #define VS6624_CROP_VSIZE1_LSB 0x042E
100 #define VS6624_IMG_FMT1 0x0430
101 #define VS6624_BAYER_OUT_ALIGN1 0x0432
102 #define VS6624_CONTRAST1 0x0434
103 #define VS6624_SATURATION1 0x0436
104 #define VS6624_GAMMA1 0x0438
105 #define VS6624_HMIRROR1 0x043A
106 #define VS6624_VFLIP1 0x043C
107 #define VS6624_CHANNEL_ID1 0x043E
109 #define VS6624_VIEW_LIVE_EN 0x0480
110 #define VS6624_INIT_PIPE_SETUP 0x0482
112 #define VS6624_CUR_PIPE_SETUP 0x0500
114 #define VS6624_TIME_TO_POWER_DOWN 0x0580
116 #define VS6624_EXT_CLK_FREQ_NUM_MSB 0x0605
117 #define VS6624_EXT_CLK_FREQ_NUM_LSB 0x0606
118 #define VS6624_EXT_CLK_FREQ_DEN 0x0608
120 #define VS6624_SYS_CLK_MODE 0x0880
122 #define VS6624_LIGHT_FREQ 0x0C80
123 #define VS6624_FLICKER_COMPAT 0x0C82
125 #define VS6624_FR_NUM_MSB 0x0D81
126 #define VS6624_FR_NUM_LSB 0x0D82
127 #define VS6624_FR_DEN 0x0D84
129 #define VS6624_DISABLE_FR_DAMPER 0x0E80
130 #define VS6624_MIN_DAMPER_OUT_MSB 0x0E8C
131 #define VS6624_MIN_DAMPER_OUT_LSB 0x0E8A
133 #define VS6624_EXPO_MODE 0x1180
134 #define VS6624_EXPO_METER 0x1182
135 #define VS6624_EXPO_TIME_NUM 0x1184
136 #define VS6624_EXPO_TIME_DEN 0x1186
137 #define VS6624_EXPO_TIME_MSB 0x1189
138 #define VS6624_EXPO_TIME_LSB 0x118A
139 #define VS6624_EXPO_COMPENSATION 0x1190
140 #define VS6624_DIRECT_COARSE_MSB 0x1195
141 #define VS6624_DIRECT_COARSE_LSB 0x1196
142 #define VS6624_DIRECT_FINE_MSB 0x1199
143 #define VS6624_DIRECT_FINE_LSB 0x119A
144 #define VS6624_DIRECT_ANAL_GAIN_MSB 0x119D
145 #define VS6624_DIRECT_ANAL_GAIN_LSB 0x119E
146 #define VS6624_DIRECT_DIGI_GAIN_MSB 0x11A1
147 #define VS6624_DIRECT_DIGI_GAIN_LSB 0x11A2
148 #define VS6624_FLASH_COARSE_MSB 0x11A5
149 #define VS6624_FLASH_COARSE_LSB 0x11A6
150 #define VS6624_FLASH_FINE_MSB 0x11A9
151 #define VS6624_FLASH_FINE_LSB 0x11AA
152 #define VS6624_FLASH_ANAL_GAIN_MSB 0x11AD
153 #define VS6624_FLASH_ANAL_GAIN_LSB 0x11AE
154 #define VS6624_FLASH_DIGI_GAIN_MSB 0x11B1
155 #define VS6624_FLASH_DIGI_GAIN_LSB 0x11B2
156 #define VS6624_FREEZE_AE 0x11B4
157 #define VS6624_MAX_INT_TIME_MSB 0x11B7
158 #define VS6624_MAX_INT_TIME_LSB 0x11B8
159 #define VS6624_FLASH_AG_THR_MSB 0x11BB
160 #define VS6624_FLASH_AG_THR_LSB 0x11BC
161 #define VS6624_ANTI_FLICKER_MODE 0x11C0
163 #define VS6624_WB_MODE 0x1480
164 #define VS6624_MAN_RG 0x1482
165 #define VS6624_MAN_GG 0x1484
166 #define VS6624_MAN_BG 0x1486
167 #define VS6624_FLASH_RG_MSB 0x148B
168 #define VS6624_FLASH_RG_LSB 0x148C
169 #define VS6624_FLASH_GG_MSB 0x148F
170 #define VS6624_FLASH_GG_LSB 0x1490
171 #define VS6624_FLASH_BG_MSB 0x1493
172 #define VS6624_FLASH_BG_LSB 0x1494
174 #define VS6624_BC_OFFSET 0x1990
176 #define VS6624_STABLE_WB 0x1900
177 #define VS6624_STABLE_EXPO 0x1902
178 #define VS6624_STABLE 0x1906
180 #define VS6624_FLASH_MODE 0x1A80
181 #define VS6624_FLASH_OFF_LINE_MSB 0x1A83
182 #define VS6624_FLASH_OFF_LINE_LSB 0x1A84
184 #define VS6624_FLASH_RECOM 0x1B00
185 #define VS6624_FLASH_GRAB_COMPLETE 0x1B02
187 #define VS6624_SCYTHE_FILTER 0x1D80
189 #define VS6624_JACK_FILTER 0x1E00
191 #define VS6624_ANTI_ALIAS_FILTER 0x1E80
193 #define VS6624_CM_DISABLE 0x1F00
194 #define VS6624_CM_LOW_THR_MSB 0x1F03
195 #define VS6624_CM_LOW_THR_LSB 0x1F04
196 #define VS6624_CM_HIGH_THR_MSB 0x1F07
197 #define VS6624_CM_HIGH_THR_LSB 0x1F08
198 #define VS6624_CM_MIN_OUT_MSB 0x1F0B
199 #define VS6624_CM_MIN_OUT_LSB 0x1F0C
201 #define VS6624_PEAK_GAIN 0x2000
202 #define VS6624_PEAK_G_DISABLE 0x2002
203 #define VS6624_PEAK_LOW_THR_G_MSB 0x2005
204 #define VS6624_PEAK_LOW_THR_G_LSB 0x2006
205 #define VS6624_PEAK_HIGH_THR_G_MSB 0x2009
206 #define VS6624_PEAK_HIGH_THR_G_LSB 0x200A
207 #define VS6624_PEAK_MIN_OUT_G_MSB 0x200D
208 #define VS6624_PEAK_MIN_OUT_G_LSB 0x200E
209 #define VS6624_PEAK_LOW_THR 0x2010
210 #define VS6624_PEAK_C_DISABLE 0x2012
211 #define VS6624_PEAK_HIGH_THR 0x2014
212 #define VS6624_PEAK_LOW_THR_C_MSB 0x2017
213 #define VS6624_PEAK_LOW_THR_C_LSB 0x2018
214 #define VS6624_PEAK_HIGH_THR_C_MSB 0x201B
215 #define VS6624_PEAK_HIGH_THR_C_LSB 0x201C
216 #define VS6624_PEAK_MIN_OUT_C_MSB 0x201F
217 #define VS6624_PEAK_MIN_OUT_C_LSB 0x2020
219 #define VS6624_RYM0_MAN_CTRL 0x2180
220 #define VS6624_RYM0_W00_MSB 0x2183
221 #define VS6624_RYM0_W00_LSB 0x2184
222 #define VS6624_RYM0_W01_MSB 0x2187
223 #define VS6624_RYM0_W01_LSB 0x2188
224 #define VS6624_RYM0_W02_MSB 0x218C
225 #define VS6624_RYM0_W02_LSB 0x218D
226 #define VS6624_RYM0_W10_MSB 0x2190
227 #define VS6624_RYM0_W10_LSB 0x218F
228 #define VS6624_RYM0_W11_MSB 0x2193
229 #define VS6624_RYM0_W11_LSB 0x2194
230 #define VS6624_RYM0_W12_MSB 0x2197
231 #define VS6624_RYM0_W12_LSB 0x2198
232 #define VS6624_RYM0_W20_MSB 0x219B
233 #define VS6624_RYM0_W20_LSB 0x219C
234 #define VS6624_RYM0_W21_MSB 0x21A0
235 #define VS6624_RYM0_W21_LSB 0x219F
236 #define VS6624_RYM0_W22_MSB 0x21A3
237 #define VS6624_RYM0_W22_LSB 0x21A4
238 #define VS6624_RYM0_YINY_MSB 0x21A7
239 #define VS6624_RYM0_YINY_LSB 0x21A8
240 #define VS6624_RYM0_YINCB_MSB 0x21AB
241 #define VS6624_RYM0_YINCB_LSB 0x21AC
242 #define VS6624_RYM0_YINCR_MSB 0x21B0
243 #define VS6624_RYM0_YINCR_LSB 0x21AF
245 #define VS6624_RYM1_MAN_CTRL 0x2200
246 #define VS6624_RYM1_W00_MSB 0x2203
247 #define VS6624_RYM1_W00_LSB 0x2204
248 #define VS6624_RYM1_W01_MSB 0x2207
249 #define VS6624_RYM1_W01_LSB 0x2208
250 #define VS6624_RYM1_W02_MSB 0x220C
251 #define VS6624_RYM1_W02_LSB 0x220D
252 #define VS6624_RYM1_W10_MSB 0x2210
253 #define VS6624_RYM1_W10_LSB 0x220F
254 #define VS6624_RYM1_W11_MSB 0x2213
255 #define VS6624_RYM1_W11_LSB 0x2214
256 #define VS6624_RYM1_W12_MSB 0x2217
257 #define VS6624_RYM1_W12_LSB 0x2218
258 #define VS6624_RYM1_W20_MSB 0x221B
259 #define VS6624_RYM1_W20_LSB 0x221C
260 #define VS6624_RYM1_W21_MSB 0x2220
261 #define VS6624_RYM1_W21_LSB 0x221F
262 #define VS6624_RYM1_W22_MSB 0x2223
263 #define VS6624_RYM1_W22_LSB 0x2224
264 #define VS6624_RYM1_YINY_MSB 0x2227
265 #define VS6624_RYM1_YINY_LSB 0x2228
266 #define VS6624_RYM1_YINCB_MSB 0x222B
267 #define VS6624_RYM1_YINCB_LSB 0x222C
268 #define VS6624_RYM1_YINCR_MSB 0x2220
269 #define VS6624_RYM1_YINCR_LSB 0x222F
271 #define VS6624_GAMMA_MAN_CTRL0 0x2280
272 #define VS6624_GAMMA_PEAK_R0 0x2282
273 #define VS6624_GAMMA_PEAK_G0 0x2284
274 #define VS6624_GAMMA_PEAK_B0 0x2286
275 #define VS6624_GAMMA_UNPEAK_R0 0x2288
276 #define VS6624_GAMMA_UNPEAK_G0 0x228A
277 #define VS6624_GAMMA_UNPEAK_B0 0x228C
279 #define VS6624_GAMMA_MAN_CTRL1 0x2300
280 #define VS6624_GAMMA_PEAK_R1 0x2302
281 #define VS6624_GAMMA_PEAK_G1 0x2304
282 #define VS6624_GAMMA_PEAK_B1 0x2306
283 #define VS6624_GAMMA_UNPEAK_R1 0x2308
284 #define VS6624_GAMMA_UNPEAK_G1 0x230A
285 #define VS6624_GAMMA_UNPEAK_B1 0x230C
287 #define VS6624_F2B_DISABLE 0x2480
288 #define VS6624_F2B_BLACK_VAL_MSB 0x2483
289 #define VS6624_F2B_BLACK_VAL_LSB 0x2484
290 #define VS6624_F2B_LOW_THR_MSB 0x2487
291 #define VS6624_F2B_LOW_THR_LSB 0x2488
292 #define VS6624_F2B_HIGH_THR_MSB 0x248B
293 #define VS6624_F2B_HIGH_THR_LSB 0x248C
294 #define VS6624_F2B_MIN_OUT_MSB 0x248F
295 #define VS6624_F2B_MIN_OUT_LSB 0x2490
297 #define VS6624_CODE_CK_EN 0x2580
298 #define VS6624_BLANK_FMT 0x2582
299 #define VS6624_SYNC_CODE_SETUP 0x2584
300 #define VS6624_HSYNC_SETUP 0x2586
301 #define VS6624_VSYNC_SETUP 0x2588
302 #define VS6624_PCLK_SETUP 0x258A
303 #define VS6624_PCLK_EN 0x258C
304 #define VS6624_OPF_SP_SETUP 0x258E
305 #define VS6624_BLANK_DATA_MSB 0x2590
306 #define VS6624_BLANK_DATA_LSB 0x2592
307 #define VS6624_RGB_SETUP 0x2594
308 #define VS6624_YUV_SETUP 0x2596
309 #define VS6624_VSYNC_RIS_COARSE_H 0x2598
310 #define VS6624_VSYNC_RIS_COARSE_L 0x259A
311 #define VS6624_VSYNC_RIS_FINE_H 0x259C
312 #define VS6624_VSYNC_RIS_FINE_L 0x259E
313 #define VS6624_VSYNC_FALL_COARSE_H 0x25A0
314 #define VS6624_VSYNC_FALL_COARSE_L 0x25A2
315 #define VS6624_VSYNC_FALL_FINE_H 0x25A4
316 #define VS6624_VSYNC_FALL_FINE_L 0x25A6
317 #define VS6624_HSYNC_RIS_H 0x25A8
318 #define VS6624_HSYNC_RIS_L 0x25AA
319 #define VS6624_HSYNC_FALL_H 0x25AC
320 #define VS6624_HSYNC_FALL_L 0x25AE
321 #define VS6624_OUT_IF 0x25B0
322 #define VS6624_CCP_EXT_DATA 0x25B2
324 #define VS6624_NORA_DISABLE 0x2600
325 #define VS6624_NORA_USAGE 0x2602
326 #define VS6624_NORA_SPLIT_KN 0x2604
327 #define VS6624_NORA_SPLIT_NI 0x2606
328 #define VS6624_NORA_TIGHT_G 0x2608
329 #define VS6624_NORA_DISABLE_NP 0x260A
330 #define VS6624_NORA_LOW_THR_MSB 0x260D
331 #define VS6624_NORA_LOW_THR_LSB 0x260E
332 #define VS6624_NORA_HIGH_THR_MSB 0x2611
333 #define VS6624_NORA_HIGH_THR_LSB 0x2612
334 #define VS6624_NORA_MIN_OUT_MSB 0x2615
335 #define VS6624_NORA_MIN_OUT_LSB 0x2616