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

📄 noon200pc11.c

📁 展讯平台6600M sensor驱动:OV7670/noon200pc
💻 C
📖 第 1 页 / 共 4 页
字号:
        {0x40, 0x62, 0x55},
        {0x40, 0x63, 0x18},//0x10
        {0x40, 0x64, 0x18},//0x10
        {0x40, 0x65, 0x33},//0x28
        {0x40, 0x66, 0x55},//0x20
        {0x40, 0x67, 0x55},//0x20
        {0x40, 0x68, 0x55},//0x20
	//  EXP100
        {0x40, 0x76, 0x75},
        {0x40, 0x77, 0x30},
    //8 FRAMES MIN
        {0x40, 0x71, 0x05},//0x09 - 5 FRAMES MIN
        {0x40, 0x72, 0x27},//0x27//7e
        {0x40, 0x73, 0xC0},//0xc0///40
        {0x40, 0x76, 0x61},
        {0x40, 0x77, 0xA8},
	// HBLANK
        {0x40, 0x88, 0x01},/*0x01*/ // original value
        {0x40, 0x89, 0x2c},//0x2c/*0x7C*/
	// VBLANK
        {0x40, 0x8a, 0x01},
        {0x40, 0x8b, 0x14},//x010
        {0x40, 0x6C, 0x01},
        {0x40, 0x6D, 0x5f},//0x86
        {0x40, 0x6E, 0x90},//0xa0
        {0x40, 0x8d, 0x05},
        {0x40, 0x8e, 0x05},
        {0x40, 0x8f, 0x05},
        {0x40, 0x93, 0x3f},
        {0x40, 0x97, 0x77},
        {0x40, 0x98, 0x77},//0x70
        {0x40, 0x99, 0x37},
        {0x40, 0x9a, 0x00},
        {0x40, 0x9b, 0x61},
        {0x40, 0x9e, 0x03},
        {0x40, 0x9f, 0x01},
        {0x40, 0xfb, 0x10},
        {0x40, 0xfc, 0x11},
        {0x40, 0xa0, 0x3f},
	    {0x40, 0xa1, 0x34},//0x25
	    {0x40, 0xb0, 0x40},// 0x80
	    {0x40, 0xb1, 0x30},// 0x60
	    {0x40, 0xb2, 0x30},// 0x60
	    {0x40, 0xe0, 0x48},
        {0x40, 0xe1, 0x38},
        {0x40, 0xe2, 0x38},
        {0x40, 0xe3, 0x28},
        {0x40, 0xe4, 0x88},
        {0x40, 0xe5, 0x88},
        {0x40, 0xe6, 0x44},
        {0x40, 0xe7, 0x61},
        {0x40, 0xe8, 0x30},
        {0x40, 0xe9, 0x88},
        {0x40, 0xea, 0xff},
        {0x40, 0xeb, 0x70},
        {0x40, 0xec, 0x90},
        {0x40, 0x0f, 0x26},      
        {0x40, 0x0f, 0x94},
        {0x40, 0x0b, 0x9C},//0x8c
        {0x40, 0x0e, 0xE8},
    	{0x40, 0x04, 0x00},	// Sleep mode off
#if 0 // for day mode
        {0x40, 0x0B, 0x0C},
        {0x40, 0x04, 0x01}, 
      //7 FRAMES MIN
        {0x40, 0x71, 0x02},//0x06 //0x04 - 10 FRAMES MIN/
        {0x40, 0x72, 0x68},//0x93/
        {0x40, 0x73, 0xA0},//0xE0/
        {0x40, 0x6C, 0x01},
        {0x40, 0x6D, 0x5F},    
        {0x40, 0x6E, 0x90},
        {0x40, 0x62, 0x55},
        {0x40, 0x60, 0x0B},
        {0x40, 0x0B, 0x9C},//0x8c
        {0x40, 0x04, 0x00},
#endif
		{0xff,0xff,0xff},
};

const SENSOR_SEQUENCE_T siliconfile_noon200pc11_mode_seq[] =
{//sequence for different mode/
	{
		SENSOR_MODE_1600X1200_NORMAL,
		48,
		noon200pc11_1600X1200_NORMAL,
		
	},
	
	{
		SENSOR_MODE_800X600_NORMAL,
		48,
		noon200pc11_800X600_NORMAL,
		
	},
		
	{
		SENSOR_MODE_400X300_NORMAL,
		48,
		noon200pc11_400X300_NORMAL,
		
	},
	
	{
		SENSOR_MODE_200X150_NORMAL,
		48,
		noon200pc11_200X150_NORMAL,
	},
	
	{
		SENSOR_MODE_1600X1200_NIGHT,
		48,
		noon200pc11_1600X1200_NIGHT,
		
	},
	
	{
		SENSOR_MODE_800X600_NIGHT,
		48,
		noon200pc11_800X600_NIGHT,
		
	},
		
	{
		SENSOR_MODE_400X300_NIGHT,
		48,
		noon200pc11_400X300_NIGHT,
		
	},
	
	{
		SENSOR_MODE_200X150_NIGHT,
		48,
		noon200pc11_200X150_NIGHT,
	},
	
	
	{0, 0, 0}
};

const uint8 noon200pc11_BRIGHTNESS_0 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_1 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_2 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_3 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_4 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_5 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_6 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_7 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_BRIGHTNESS_8 [][3] =
{
	
	{0xff,0xff,0xff},
};

const uint8 noon200pc11_CONTRAST_0 [][3] =
{
			
			{0xff,0xff,0xff},
};

const uint8 noon200pc11_CONTRAST_1 [][3] =
{
			
			{0xff, 0xff, 0xff},  
};

const uint8 noon200pc11_CONTRAST_2 [][3] =
{
			
			{0xff, 0xff, 0xff},  
};

const uint8 noon200pc11_CONTRAST_3 [][3] =
{
			
			{0xff, 0xff, 0xff},  
};

const uint8 noon200pc11_CONTRAST_4 [][3] =
{
			
			{0xff, 0xff, 0xff}, 
};

const uint8 noon200pc11_CONTRAST_5 [][3] =
{
			
			{0xff, 0xff, 0xff}, 
};

const uint8 noon200pc11_CONTRAST_6 [][3] =
{
			
			{0xff, 0xff,0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_NORMAL [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_BLACKWHITE [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_BLUE [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_GREEN [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_RED [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_CANVAS [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_SENSOR_SEPIA_NEGATIVE [][3] =
{
	
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_VFLIP_ENABLE[][3] = 
{
	{0x40, 0x01, 0x92},
	{0xff, 0xff, 0xff},
};

const uint8 noon200pc11_VFLIP_DISABLE[][3] = 
{
	{0x40, 0x01, 0x90},
	{0xff, 0xff, 0xff},
};


const SENSOR_SEQUENCE_T siliconfile_noon200pc11_effect_seq[] =
{//sequence for different mode/
	{
		SENSOR_EFFECT_BRIGHTNESS_0,
		0,
		noon200pc11_BRIGHTNESS_0,
	},
	
	{
		SENSOR_EFFECT_BRIGHTNESS_1,
		0,
		noon200pc11_BRIGHTNESS_1,
	},
	
	{
		SENSOR_EFFECT_BRIGHTNESS_2,
		0,
		noon200pc11_BRIGHTNESS_2,
	},
	
	{
		SENSOR_EFFECT_BRIGHTNESS_3,
		0,
		noon200pc11_BRIGHTNESS_3,
	},

	{
		SENSOR_EFFECT_BRIGHTNESS_4,
		0,
		noon200pc11_BRIGHTNESS_4,
	},
	{
		SENSOR_EFFECT_BRIGHTNESS_5,
		0,
		noon200pc11_BRIGHTNESS_5,
	},
	{
		SENSOR_EFFECT_BRIGHTNESS_6,
		0,
		noon200pc11_BRIGHTNESS_6,
	},
	{
		SENSOR_EFFECT_BRIGHTNESS_7,
		0,
		noon200pc11_BRIGHTNESS_7,
	},
	{
		SENSOR_EFFECT_BRIGHTNESS_8,
		0,
		noon200pc11_BRIGHTNESS_8,
	},

	{
		SENSOR_EFFECT_CONTRAST_0,
		0,
		noon200pc11_CONTRAST_0,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_1,
		0,
		noon200pc11_CONTRAST_1,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_2,
		0,
		noon200pc11_CONTRAST_2,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_3,
		0,
		noon200pc11_CONTRAST_3,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_4,
		0,
		noon200pc11_CONTRAST_4,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_5,
		0,
		noon200pc11_CONTRAST_5,
	},
	
	{
		SENSOR_EFFECT_CONTRAST_6,
		0,
		noon200pc11_CONTRAST_6,
	},
	
	{
		SENSOR_EFFECT_SEPIA_NORMAL,
		0,
		noon200pc11_SENSOR_SEPIA_NORMAL,
	},
	
	{
		SENSOR_EFFECT_SEPIA_BLACKWHITE,
		0,
		noon200pc11_SENSOR_SEPIA_BLACKWHITE,
	},
	
	{
		SENSOR_EFFECT_SEPIA_BLUE,
		0,
		noon200pc11_SENSOR_SEPIA_BLUE,
	},
	
	{
		SENSOR_EFFECT_SEPIA_GREEN,
		0,
		noon200pc11_SENSOR_SEPIA_GREEN,
	},
	
	{
		SENSOR_EFFECT_SEPIA_RED,
		0,
		noon200pc11_SENSOR_SEPIA_RED,
	},
	
	{
		SENSOR_EFFECT_SEPIA_CANVAS,
		0,
		noon200pc11_SENSOR_SEPIA_CANVAS,
	},
	
	{
		SENSOR_EFFECT_SEPIA_NEGATIVE,
		0,
		noon200pc11_SENSOR_SEPIA_NEGATIVE,
	},
	
	{
		SENSOR_EFFECT_VFLIP_ENABLE,
		0,
		noon200pc11_VFLIP_ENABLE,
	},
	
	{
		SENSOR_EFFECT_VFLIP_DISABLE,
		0,
		noon200pc11_VFLIP_DISABLE,
	},
	
	{0, 0, 0}
};


SENSOR_SPEC_T s_siliconfile__spec = 
{
	1,			//Polarity of Hsync 0: Low 1: High 
	1,			//Polarity of Vsync 0: Low 1: High 
	0,			//Polarity of Pixel
		        //0: Positive edge to strobe data 
				//1: Negative edge to strobe datah
				
	1,			//Frame number to capture in single mode
	1,			//Sensor Y data translation
	1,			//Sensor UV data translation
	0x40,
	0x41,
	0,
	3,
	noon200pc11_Reset,//reset_func,
	noon200pc11_PowerDown,//powerdown_func,
	siliconfile_noon200pc11_mode_seq,
	siliconfile_noon200pc11_effect_seq
};

DC_LCD_SPEC_T s_main_lcd_spec = 
{
	128,
	160,
	0,
	0xb
};

DC_LCD_SPEC_T s_sub_lcd_spec = 
{
	96,
	96,
	2,
	0xb
};


/******************************************************************************/
// Description: reg sensor and lcd spec to DCAM module
// Author:     bruce.chi
// Input:      none
// Output:     
// Note:       this should be called after DCAM_init and DC_Open
/******************************************************************************/
void DCAM_InitSensorAndLCD(void)
{
	DC_RegisterLcdSpec(0,&s_main_lcd_spec);
	DC_RegisterLcdSpec(1,&s_sub_lcd_spec);
	DC_RegisterSensorSpec(&s_siliconfile__spec);
}




#endif

⌨️ 快捷键说明

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