⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chp_sensor_po3030k.c

📁 chipnuts手机平台关于SETI sensor SIV100B的部分代码。
💻 C
📖 第 1 页 / 共 3 页
字号:
/**====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*FILE: chp_sensor_po3030k.cthe interface with the customer system.Copyright (c) 2005 by CHIPNUTS Incorporated. All Rights Reserved.*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*//**===========================================================================REVISIONS:Version  		Name       		Date			Description1.0  			Thomaszhang	  	07/11/2006  	Initial Version                      Niuxiaochen           01/09/2007    sensor effect*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/#include "chp_comdef.h"#include "chp_c626_api.h"#include "chp_c626_cmr.h"#include "chp_sensor.h"#include "chp_c626_hal.h"#include "chp_lcd.h"#include "chp_customer_if.h"#include "chp_c626_reg.h"CHP_I2C_IMEDIATE_DATA_T   	g_po3030k_i2c_data;const CHP_U8 g_po3030k_init[] =   {/* //	adr     data0x12, 0x06,0x13, 0x08,0x1e, 0x06,//0x860x21, 0x00,0x24, 0x02,0x32, 0x69,0x36, 0x35,0x39, 0x60,0x4d, 0xfe,0x53, 0x1c,0x5c, 0x70,0x5d, 0x04,0x5f, 0x08,0x60,0x08,0x61,0x08,0x62, 0x08,0x63, 0x00,0x64,0x00,0x65, 0x10,0x66,0x14,0x73, 0x68,0x82, 0x01,0x83,0x80,0x85,0x0c,0x86,0xb6,0x89,0x00,0xad,0x3f,0xae,0x24,0xb3,0x68,0xb4,0x03,0xb8,0x10,0xb9,0x07,0xba,0xcc,0xbb,0x1f,0xbc,0x30,0xbf,0x02,0x8e,0x42,0x8f,0x95,0x90,0x8d,0x91,0x89,0x92,0x3a,0x93,0x90,0x94,0x84,0x95,0x89,0x96,0x2d,//gamma0xd8,0x80,0x76,0x00,0x77,0x06,0x78,0x0c,0x79,0x13,0x7a,0x1a,0x7b,0x29,0x7c,0x38,0x7d,0x58,0x7e,0x78,0x7f,0x9d,0x80,0xbb,0x81,0xde,0xd8,0xa0,0x76,0x00,0x77,0x06,0x78,0x0c,0x79,0x13,0x7a,0x1a,0x7b,0x29,0x7c,0x38,0x7d,0x58,0x7e,0x78,0x7f,0x9d,0x80,0xbb,0x81,0xde,0xd8,0xc0,0x76,0x00,0x77,0x06,0x78,0x0c,0x79,0x13,0x7a,0x1a,0x7b,0x29,0x7c,0x38,0x7d,0x58,0x7e,0x78,0x7f,0x9d,0x80,0xbb,0x81,0xde,//0x46,0x8f,// 50HZ/60HZ flicker auto detection//add by caopeng 2006.11.140x49,0x85,0x4A,0x55,0x46,0x40,0x20,0x44,0x5c,0x66,0x97,0x25,0x98,0x25,//add by caopeng 2006.11.140xc5,0x80,0xc6,0x80,0x9b,0x08,0x5b,0x00,0x5c,0x6F,0x5d,0x04,0xb3,0x70,0xb9,0x03,0xba,0xe6,0xbb,0x07,0xbc,0xcc,*///[Addr]	[Data]                    0x04,0x00,                        0x10,0x13,                        0x11,0x1a,                        0x12,0x0a,                        0x18,0x00,                        0x19,0x7c,                                                          // SIV100A  60Hz - 15.00FPS(120/8)//0x20,0x00,                        //0x21,0x9c,                        //0x22,0x03,                        //0x34,0x7d,                                                          // SIV100A  50Hz - 25.00FPS(100/4)0x23,0x00,                        0x24,0x09,                        0x25,0x01,                        0x35,0xa6,                                                          0x33,0x10,                                                          0x40,0x84,                        0x41,0x84, //AE target           0x42,0x7f, //Don't change value.  0x43,0xc0,                        0x44,0x38,                        0x45,0x30,                        0x46,0x10,                        0x47,0x15,                        0x48,0x20,                        0x49,0x15,                        0x4a,0x73,                        0x4b,0x82, //Don't change value.  0x4c,0x0c,                        0x4e,0x19,                        0x4f,0x8a,                                                          0x5a,0x00,                                                          // Auto White Balance             0x60,0x90,                        0x61,0x83,                        0x62,0x01,                        0x63,0x80,                        0x64,0x80,                        0x65,0xd0,                        0x66,0x94,                        0x67,0xc8,                        0x68,0x8b,                        0x69,0x30,                        0x6a,0x2c,                        0x6b,0x80,                        0x6c,0x01,                        0x6d,0xe0,                        0x6e,0x30,                        0x6f,0xc0,                        0x70,0x80,                        0x71,0x32,                        0x72,0x32,                        0x73,0x80,                        0x74,0x80,                        0x75,0x40,                        0x7c,0x80,0x80,0xaf,//0x81,0x19,0x82,0xc5,0x83,0x00,                        0x85,0xa1,                        0x86,0x00,                        0x87,0x2d,                        0x88,0x0f,                        0x89,0x10,                        0x8d,0x7c,                        0x90,0x80,                        0x91,0x80,                        0x92,0x80,                        0x93,0x80,                        0x97,0x01,                        0xa0,0x40,                        0xa5,0x14,                        0xa6,0x14,                        0xa7,0x14,                        0xa8,0x14,                                                          //Shading -FIX                    0xb0,0xff,                        0xb1,0xff,                        0xb2,0xff,                        0xb3,0xdd,                        0xb4,0xdd,                        0xb5,0xba,                        0xb6,0x28,                        0xb7,0x86,                        0xb8,0x2e,                        0xb9,0x54,                        0xba,0x42,                        0xbb,0xa0,                        0xbc,0xa0,                                                          //Gamma                           0xc0,0x00,                        0xc1,0x08,                        0xc2,0x10,                        0xc3,0x20,                        0xc4,0x40,                        0xc5,0x5a,                        0xc6,0x71,                        0xc7,0x84,                        0xc8,0x94,                        0xc9,0xa2,                        0xca,0xaf,                        0xcb,0xc6,                        0xcc,0xdc,                        0xcd,0xf1,                        0xce,0xfd,                        0xcf,0xff,                                                          //Color Matrix                    0xd0,0x3d,                        0xd1,0xc6,                        0xd2,0xfd,                        0xd3,0x14,                        0xd4,0x1a,                        0xd5,0x13,                        0xd6,0xf6,                        0xd7,0xba,                        0xd8,0x50,                        0xd9,0x74,                        0xda,0x20,                        0xdb,0x2b,                        0xdc,0xf0,                                                          //Contrast & Saturation           0xe0,0x10,                        0xe1,0x14, //color gain           0xe2,0x14, //color gain           0xe3,0x00,                        0xe4,0xff,                        0xe5,0x00,                        0xe6,0xff,                        0xe7,0x00,                        0xe8,0xff,                        0xe9,0x00,                        0xea,0x2d,                        0xeb,0x38,                        0x03,0xC5,                        0x7a,0xb0,                        0x7b,0xb0,   };const CHP_U8 g_po3030k_capture[] =   {//[Addr]	[Data]                    0x04,0x00,                        0x10,0x13,                        0x11,0x1a,                        0x12,0x0a,                        0x18,0x00,                        0x19,0x7c,                                                          // SIV100A  60Hz - 15.00FPS(120/8)0x20,0x00,                        0x21,0x9c,                        0x22,0x03,                        0x34,0x7d,                                                          // SIV100A  50Hz - 25.00FPS(100/4)/*0x23,0x00,                        0x24,0x09,                        0x25,0x01,                        0x35,0xa6,                        */                              0x33,0x10,                                                          0x40,0x84,                        0x41,0x84, //AE target           0x42,0x7f, //Don't change value.  0x43,0xc0,                        0x44,0x38,                        0x45,0x30,                        0x46,0x10,                        0x47,0x15,                        0x48,0x20,                        0x49,0x15,                        0x4a,0x73,                        0x4b,0x82, //Don't change value.  0x4c,0x0c,                        0x4e,0x19,                        0x4f,0x8a,                                                          0x5a,0x00,                                                          // Auto White Balance             0x60,0x90,                        0x61,0x83,                        0x62,0x01,                        0x63,0x80,                        0x64,0x80,                        0x65,0xd0,                        0x66,0x94,                        0x67,0xc8,                        0x68,0x8b,                        0x69,0x30,                        0x6a,0x2c,                        0x6b,0x80,                        0x6c,0x01,                        0x6d,0xe0,                        0x6e,0x30,                        0x6f,0xc0,                        0x70,0x80,                        0x71,0x32,                        0x72,0x32,                        0x73,0x80,                        0x74,0x80,                        0x75,0x40,                        0x80,0xaf,                        0x83,0x00,                        0x85,0xa1,                        0x86,0x00,                        0x87,0x2d,                        0x88,0x0f,                        0x89,0x10,                        0x8d,0x7c,                        0x90,0x80,                        0x91,0x80,                        0x92,0x80,                        0x93,0x80,                        0x97,0x01,                        0xa0,0x40,                        0xa5,0x14,                        0xa6,0x14,                        0xa7,0x14,                        0xa8,0x14,                                                          //Shading -FIX                    0xb0,0xff,                        0xb1,0xff,                        0xb2,0xff,                        0xb3,0xdd,                        0xb4,0xdd,                        0xb5,0xba,                        0xb6,0x28,                        0xb7,0x86,                        0xb8,0x2e,                        0xb9,0x54,                        0xba,0x42,                        0xbb,0xa0,                        0xbc,0xa0,                                                          //Gamma                           0xc0,0x00,                        0xc1,0x08,                        0xc2,0x10,                        0xc3,0x20,                        0xc4,0x40,                        0xc5,0x5a,                        0xc6,0x71,                        0xc7,0x84,                        0xc8,0x94,                        0xc9,0xa2,                        0xca,0xaf,                        0xcb,0xc6,                        0xcc,0xdc,                        0xcd,0xf1,                        0xce,0xfd,                        0xcf,0xff,                                                          //Color Matrix                    0xd0,0x3d,                        0xd1,0xc6,                        0xd2,0xfd,                        0xd3,0x14,                        0xd4,0x1a,                        0xd5,0x13,                        0xd6,0xf6,                        0xd7,0xba,                        0xd8,0x50,                        0xd9,0x74,                        0xda,0x20,                        0xdb,0x2b,                        0xdc,0xf0,                                                          //Contrast & Saturation           0xe0,0x10,                        0xe1,0x14, //color gain           0xe2,0x14, //color gain           0xe3,0x00,                        0xe4,0xff,                        0xe5,0x00,                        0xe6,0xff,                        0xe7,0x00,                        0xe8,0xff,                        0xe9,0x00,                        0xea,0x2d,                        0xeb,0x38,                        0x03,0xC5,                        0x7a,0xb0,                        0x7b,0xb0,                                                          //[END]      /* //	adr     data0x12, 0x06,0x13, 0x08,0x1e, 0xc6,//0x860x21, 0x00,0x24, 0x02,0x32, 0x69,0x36, 0x35,0x39, 0x60,0x4d, 0xfe,0x53, 0x1c,0x5c, 0x70,0x5d, 0x04,0x5f, 0x08,0x60,0x08,0x61,0x08,0x62, 0x08,0x63, 0x00,0x64,0x00,0x65, 0x10,0x66,0x14,0x73, 0x68,0x82, 0x01,0x83,0x80,0x85,0x0c,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -