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

📄 sensor_i2c-bak.h

📁 onmivision 摄相头模块驱动程序,blackfin 平台参考设计.
💻 H
字号:
struct i2c_msg {	unsigned short addr;	/* slave address			*/ 	unsigned short flags;		#define I2C_M_TEN	0x10	/* we have a ten bit chip address	*/#define I2C_M_RD	0x01#define I2C_M_NOSTART	0x4000#define I2C_M_REV_DIR_ADDR	0x2000#define I2C_M_IGNORE_NAK	0x1000#define I2C_M_NO_RD_ACK		0x0800 	unsigned short len;		/* msg length				*/ 	unsigned char *buf;		/* pointer to msg data			*/};#define SENSOR_COM1        0x04#define SENSOR_COM2        0x09#define SENSOR_COM3        0x0c#define SENSOR_COM4        0x0d#define SENSOR_COM5	   0x0e#define SENSOR_COM6        0x0f#define SENSOR_COM7        0x12#define SENSOR_COM8        0x13#define SENSOR_COM9        0x14#define SENSOR_COM10       0x15#define SENSOR_COM11       0x3b#define SENSOR_COM12       0x3c#define SENSOR_COM13       0x3d#define SENSOR_COM14       0x3e#define SENSOR_COM15       0x40#define SENSOR_COM16       0x41#define SENSOR_COM17       0x42#define SENSOR_COM21       0x8b#define SENSOR_COM22       0x8c#define SENSOR_COM23       0x8d#define SENSOR_COM24       0x8e#define SENSOR_COM25       0xa4#define SENSOR_COM26       0xa5        unsigned char SensorInitTab[]={	/* addr offset */   /* value */		0x12,			0x80,	0x11,			0x81,		0x6b,			0x4a,	0x6a,			0x41,	0x3b,			0x09,	0x13,			0xe0,	0x01,			0x80,	0x02,			0x80,	0x00,			0x00,	0x10,			0x00,	0x13,			0xe5,		0x39,			0x43,	0x38,			0x12,	0x37,			0x00,	0x35,			0x91,	0x0e,			0xa0,	0x1e,			0x04,		0xa8,			0x80,	0x12,			0x00,	0x04,			0x00,	0x0c,			0x00,	0x0d,			0x00,	0x18,			0xbd,	0x17,			0x1d,	0x32,			0xad,	0x03,			0x12,	0x1a,			0x81,	0x19,			0x01,	0x14,			0x2e,	0x15,			0x02,	0x3f,			0xa6,	0x41,			0x02,	0x42,			0x08,		0x1b,			0x00,	0x16,			0x06,	0x33,			0xe2,	0x34,			0xbf,		0x96,			0x04,	0x3a,			0x00,	0x8e,			0x00,	0x3c,			0x77,	0x8b,			0x06,	0x94,			0x88,	0x95,			0x88,	0x40,			0xc1,	0x29,			0x3f,	0x0f,			0x42,	 	0x3d,			0x92,	0x69,			0x40,	0x5c,			0xb9,	0x5d,			0x96,	0x5e,			0x10,	0x59,			0xc0,	0x5a,			0xaf,	0x5b,			0x55,	0x43,			0xf0,	0x44,			0x10,	0x45,			0x68,	0x46,			0x96,	0x47,			0x60,	0x48,			0x80,	0x5f,			0xe0,		0x60,			0x8c,	0x61,			0x20,	0xa5,			0xd9,	0xa4,			0x74,	0x8d,			0x02,	0x13,			0xe7,		0x4f,			0x3a,	0x50,			0x3d,	0x51,			0x03,	0x52,			0x12,	0x53,			0x26,	0x54,			0x38,	0x55,			0x40,	0x56,			0x40,	0x57,			0x40,	0x58,			0x0d,		0x8c,			0x23,	0x3e,			0x02,	0xa9,			0xb8,	0xaa,			0x92,	0xab,			0x0a,		0x8f,			0xdf,	0x90,			0x00,	0x91,			0x00,	0x9f,			0x00,	0xa0,			0x00,	0x3a,			0x01,		0x24,			0x70,	0x25,			0x64,	0x26,			0xc3,		0x2a,			0x10,	0x2b,			0x34,		0x6c,			0x40,	0x6d,			0x30,	0x6e,			0x4b,	0x6f,			0x60,	0x70,			0x70,	0x71,			0x70,	0x72,			0x70,	0x73,			0x70,	0x74,			0x60,	0x75,			0x60,	0x76,			0x50,	0x77,			0x48,	0x78,			0x3a,	0x79,			0x2e,	0x7a,			0x28,	0x7b,			0x22,	0x7c,			0x04,	0x7d,			0x07,	0x7e,			0x10,	0x7f,			0x28,	0x80,			0x36,	0x81,			0x44,	0x82,			0x52,	0x83,			0x60,	0x84,			0x6c,	0x85,			0x78,	0x86,			0x8c,	0x87,			0x9e,	0x88,			0xbb,	0x89,			0xd2,	0x8a,			0xe6			/*	SENSOR_COM1,		0x40,		SENSOR_COM2,		0x01,	SENSOR_COM3,		0x00,	SENSOR_COM4,		0x00,	SENSOR_COM5,		0x01,	SENSOR_COM6,		0x43,	SENSOR_COM7,		0x20,	SENSOR_COM8,		0x8f,	SENSOR_COM9,		0x4a,	SENSOR_COM10,		0x00,	SENSOR_COM11,		0x00,	SENSOR_COM12,		0x40,	SENSOR_COM13,		0x99,	SENSOR_COM14,		0x0e,	SENSOR_COM15,		0xc0,	SENSOR_COM16,		0x10,	SENSOR_COM17,		0x08,	SENSOR_COM21,		0x04,	SENSOR_COM22,		0x00,	SENSOR_COM23,		0x00,	SENSOR_COM24,		0x00,	SENSOR_COM25,		0x00,	SENSOR_COM26,		0x00	*/	};

⌨️ 快捷键说明

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