Go to the documentation of this file.
19 #ifndef M5602_S5K4AA_H_
20 #define M5602_S5K4AA_H_
28 #define S5K4AA_PAGE_MAP 0xec
30 #define S5K4AA_PAGE_MAP_0 0x00
31 #define S5K4AA_PAGE_MAP_1 0x01
32 #define S5K4AA_PAGE_MAP_2 0x02
35 #define S5K4AA_READ_MODE 0x03
36 #define S5K4AA_ROWSTART_HI 0x04
37 #define S5K4AA_ROWSTART_LO 0x05
38 #define S5K4AA_COLSTART_HI 0x06
39 #define S5K4AA_COLSTART_LO 0x07
40 #define S5K4AA_WINDOW_HEIGHT_HI 0x08
41 #define S5K4AA_WINDOW_HEIGHT_LO 0x09
42 #define S5K4AA_WINDOW_WIDTH_HI 0x0a
43 #define S5K4AA_WINDOW_WIDTH_LO 0x0b
44 #define S5K4AA_GLOBAL_GAIN__ 0x0f
46 #define S5K4AA_H_BLANK_HI__ 0x1d
47 #define S5K4AA_H_BLANK_LO__ 0x1e
48 #define S5K4AA_EXPOSURE_HI 0x17
49 #define S5K4AA_EXPOSURE_LO 0x18
50 #define S5K4AA_BRIGHTNESS 0x1f
51 #define S5K4AA_GAIN 0x20
52 #define S5K4AA_NOISE_SUPP 0x37
54 #define S5K4AA_RM_ROW_SKIP_4X 0x08
55 #define S5K4AA_RM_ROW_SKIP_2X 0x04
56 #define S5K4AA_RM_COL_SKIP_4X 0x02
57 #define S5K4AA_RM_COL_SKIP_2X 0x01
58 #define S5K4AA_RM_H_FLIP 0x40
59 #define S5K4AA_RM_V_FLIP 0x80
61 #define S5K4AA_DEFAULT_GAIN 0x5f
62 #define S5K4AA_DEFAULT_BRIGHTNESS 0x10
86 static const unsigned char preinit_s5k4aa[][4] = {
129 static const unsigned char init_s5k4aa[][4] = {
170 {
SENSOR, 0x36, 0x01, 0x00},
172 {
SENSOR, 0x7b, 0xff, 0x00},
174 {
SENSOR, 0x0c, 0x05, 0x00},
175 {
SENSOR, 0x02, 0x0e, 0x00},
177 {
SENSOR, 0x37, 0x00, 0x00},
180 static const unsigned char VGA_s5k4aa[][4] = {
213 {
SENSOR, 0x37, 0x01, 0x00},
229 {
SENSOR, 0x11, 0x04, 0x00},
230 {
SENSOR, 0x12, 0xc3, 0x00},
232 {
SENSOR, 0x02, 0x0e, 0x00},
235 static const unsigned char SXGA_s5k4aa[][4] = {
265 {
SENSOR, 0x37, 0x01, 0x00},
278 {
SENSOR, 0x11, 0x04, 0x00},
279 {
SENSOR, 0x12, 0xc3, 0x00},
281 {
SENSOR, 0x02, 0x0e, 0x00},