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

📄 hv7131c.h

📁 LINUX X86平台下 万能摄象头驱动
💻 H
字号:
/****************************************************************************#	 	Hynix HV7131b library                                       ## 		Copyright (C) 2004 Michel Xhaard   mxhaard@magic.fr         ##                                                                           ## This program is free software; you can redistribute it and/or modify      ## it under the terms of the GNU General Public License as published by      ## the Free Software Foundation; either version 2 of the License, or         ## (at your option) any later version.                                       ##                                                                           ## This program is distributed in the hope that it will be useful,           ## but WITHOUT ANY WARRANTY; without even the implied warranty of            ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             ## GNU General Public License for more details.                              ##                                                                           ## You should have received a copy of the GNU General Public License         ## along with this program; if not, write to the Free Software               ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA ##                                                                           #****************************************************************************/static __u16 hv7131cxx_start_data[][3] = {    {0xa0, 0x01, 0x0000},    {0xa0, 0x10, 0x0002},    {0xa0, 0x01, 0x0010},    {0xa0, 0x01, 0x0001},    {0xa0, 0x77, 0x0101},    {0xa0, 0x03, 0x0008},    {0xa0, 0x05, 0x0012},    {0xa0, 0x07, 0x0012},    {0xa0, 0x02, 0x0003},    {0xa0, 0x80, 0x0004},    {0xa0, 0x01, 0x0005},    {0xa0, 0xe0, 0x0006},    {0xa0, 0x00, 0x0098},    {0xa0, 0x00, 0x009a},    {0xa0, 0x01, 0x009b},    {0xa0, 0xe8, 0x009c},    {0xa0, 0x02, 0x009d},    {0xa0, 0x88, 0x009e},    {0xa0, 0x00, 0x011a},    {0xa0, 0x00, 0x011c},    {0xa0, 0x05, 0x0012},    {0xa0, 0x01, 0x0092},    {0xa0, 0x0c, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x11, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x13, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x14, 0x0092},    {0xa0, 0x01, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x15, 0x0092},    {0xa0, 0xe8, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x16, 0x0092},    {0xa0, 0x02, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x17, 0x0092},    {0xa0, 0x88, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x00, 0x0019},    {0xa0, 0x0d, 0x0100},    {0xa0, 0x89, 0x018d},    {0xa0, 0x50, 0x01a8},    {0xa0, 0x00, 0x01ad},    {0xa0, 0xc0, 0x019b},    {0xa0, 0xa0, 0x019c},    {0xa0, 0x06, 0x0189},    {0xa0, 0x03, 0x01c5},    {0xa0, 0x13, 0x01cb},    {0xa0, 0x08, 0x0250},    {0xa0, 0x08, 0x0301},    {0xa1, 0x01, 0x0002},    {0xa0, 0x00, 0x0092},    {0xa0, 0x02, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa1, 0x01, 0x0095},    {0xa1, 0x01, 0x0096},    {0xa1, 0x01, 0x0008},    {0xa0, 0x03, 0x0008},    {0xa0, 0x08, 0x01c6},    {0xa1, 0x01, 0x01c8},    {0xa1, 0x01, 0x01c9},    {0xa1, 0x01, 0x01ca},    {0xa0, 0x0f, 0x01cb},    {0xa0, 0x60, 0x010a},    {0xa0, 0xf0, 0x010b},    {0xa0, 0xf0, 0x010c},    {0xa0, 0xf0, 0x010d},    {0xa0, 0x60, 0x010e},    {0xa0, 0xf0, 0x010f},    {0xa0, 0xf0, 0x0110},    {0xa0, 0xf0, 0x0111},    {0xa0, 0x60, 0x0112},    {0xa1, 0x01, 0x0180},    {0xa0, 0x10, 0x0180},    {0xa0, 0x00, 0x0019},    {0xa0, 0x25, 0x0092},    {0xa0, 0x07, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x26, 0x0092},    {0xa0, 0x53, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x27, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x10, 0x0190},	//2f    {0xa0, 0x04, 0x0191},	//9b    {0xa0, 0x60, 0x0192},	//80    {0xa0, 0x01, 0x0195},    {0xa0, 0xd4, 0x0196},    {0xa0, 0xc0, 0x0197},    {0xa0, 0x10, 0x018c},    {0xa0, 0x20, 0x018f},    {0xa0, 0x60, 0x01a8},    {0xa0, 0x10, 0x01a9},    {0xa0, 0x13, 0x01aa},    {0xa1, 0x01, 0x001d},    {0xa1, 0x01, 0x001e},    {0xa1, 0x01, 0x001f},    {0xa1, 0x01, 0x0020},    {0xa0, 0x40, 0x0180},    {0xa1, 0x01, 0x0180},    {0xa0, 0x42, 0x0180},    {0, 0, 0}};static __u16 hv7131cxx_scale_data[][3] = {    {0xa0, 0x01, 0x0000},    {0xa0, 0x00, 0x0002},	//diff     {0xa0, 0x01, 0x0010},    {0xa0, 0x01, 0x0001},    {0xa0, 0x77, 0x0101},    {0xa0, 0x03, 0x0008},    {0xa0, 0x05, 0x0012},    {0xa0, 0x07, 0x0012},    {0xa0, 0x02, 0x0003},    {0xa0, 0x80, 0x0004},    {0xa0, 0x01, 0x0005},    {0xa0, 0xe0, 0x0006},	//1e0    {0xa0, 0x00, 0x0098},    {0xa0, 0x00, 0x009a},    {0xa0, 0x01, 0x009b},    {0xa0, 0xe8, 0x009c},    {0xa0, 0x02, 0x009d},    {0xa0, 0x88, 0x009e},    {0xa0, 0x00, 0x011a},    {0xa0, 0x00, 0x011c},    {0xa0, 0x05, 0x0012},    {0xa0, 0x01, 0x0092},    {0xa0, 0x0c, 0x0093},	//0c    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x11, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x13, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x14, 0x0092},    {0xa0, 0x01, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x15, 0x0092},    {0xa0, 0xe8, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x16, 0x0092},    {0xa0, 0x02, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x17, 0x0092},    {0xa0, 0x88, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x00, 0x0019},	//00    {0xa0, 0x0d, 0x0100},    {0xa0, 0x89, 0x018d},    {0xa0, 0x50, 0x01a8},    {0xa0, 0x00, 0x01ad},    {0xa0, 0xc0, 0x019b},    {0xa0, 0xa0, 0x019c},    {0xa0, 0x06, 0x0189},    {0xa0, 0x03, 0x01c5},    {0xa0, 0x13, 0x01cb},    {0xa0, 0x08, 0x0250},    {0xa0, 0x08, 0x0301},    {0xa1, 0x01, 0x0002},    {0xa0, 0x00, 0x0092},	//read the i2c chips ident    {0xa0, 0x02, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa1, 0x01, 0x0095},    {0xa1, 0x01, 0x0096},    {0xa1, 0x01, 0x0008},    {0xa0, 0x03, 0x0008},    {0xa0, 0x08, 0x01c6},    {0xa1, 0x01, 0x01c8},    {0xa1, 0x01, 0x01c9},    {0xa1, 0x01, 0x01ca},    {0xa0, 0x0f, 0x01cb},    {0xa0, 0x60, 0x010a},    {0xa0, 0xf0, 0x010b},    {0xa0, 0xf0, 0x010c},    {0xa0, 0xf0, 0x010d},    {0xa0, 0x60, 0x010e},    {0xa0, 0xf0, 0x010f},    {0xa0, 0xf0, 0x0110},    {0xa0, 0xf0, 0x0111},    {0xa0, 0x60, 0x0112},    {0xa1, 0x01, 0x0180},    {0xa0, 0x10, 0x0180},    {0xa0, 0x00, 0x0019},    {0xa0, 0x25, 0x0092},    {0xa0, 0x07, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x26, 0x0092},    {0xa0, 0x53, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x27, 0x0092},    {0xa0, 0x00, 0x0093},    {0xa0, 0x00, 0x0094},    {0xa0, 0x01, 0x0090},    {0xa1, 0x01, 0x0091},    {0xa0, 0x10, 0x0190},	//2f    {0xa0, 0x04, 0x0191},	//9b    {0xa0, 0x60, 0x0192},	//80    {0xa0, 0x01, 0x0195},    {0xa0, 0xd4, 0x0196},    {0xa0, 0xc0, 0x0197},    {0xa0, 0x10, 0x018c},    {0xa0, 0x20, 0x018f},    {0xa0, 0x60, 0x01a8},    {0xa0, 0x10, 0x01a9},    {0xa0, 0x13, 0x01aa},    {0xa1, 0x01, 0x001d},    {0xa1, 0x01, 0x001e},    {0xa1, 0x01, 0x001f},    {0xa1, 0x01, 0x0020},    {0xa0, 0x40, 0x0180},    {0xa1, 0x01, 0x0180},    {0xa0, 0x42, 0x0180},    {0, 0, 0}};

⌨️ 快捷键说明

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