亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? i2c-dev.h

?? 自己做的交叉編譯工具!gcc-3.4.5,glibc-2.3.6在ubuntu8.04上做的面向kernel-2.6.28的交叉編譯工具
?? H
字號(hào):
/*    i2c-dev.h - i2c-bus driver, char device interface    Copyright (C) 1995-97 Simon G. Vogl    Copyright (C) 1998-99 Frodo Looijaard <frodol@dds.nl>    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., 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef LIB_I2CDEV_H#define LIB_I2CDEV_H#include <linux/types.h>#include <sys/ioctl.h>/* -- i2c.h -- *//* * I2C Message - used for pure i2c transaction, also from /dev interface */struct i2c_msg {	__u16 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	short len;		/* msg length				*/	char *buf;		/* pointer to msg data			*/	int err;	short done;};/* To determine what functionality is present */#define I2C_FUNC_I2C			0x00000001#define I2C_FUNC_10BIT_ADDR		0x00000002#define I2C_FUNC_PROTOCOL_MANGLING	0x00000004 /* I2C_M_{REV_DIR_ADDR,NOSTART,..} */#define I2C_FUNC_SMBUS_HWPEC_CALC	0x00000008 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_READ_WORD_DATA_PEC  0x00000800 /* SMBus 2.0 */ #define I2C_FUNC_SMBUS_WRITE_WORD_DATA_PEC 0x00001000 /* SMBus 2.0 */ #define I2C_FUNC_SMBUS_PROC_CALL_PEC	0x00002000 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL_PEC 0x00004000 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL	0x00008000 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_QUICK		0x00010000 #define I2C_FUNC_SMBUS_READ_BYTE	0x00020000 #define I2C_FUNC_SMBUS_WRITE_BYTE	0x00040000 #define I2C_FUNC_SMBUS_READ_BYTE_DATA	0x00080000 #define I2C_FUNC_SMBUS_WRITE_BYTE_DATA	0x00100000 #define I2C_FUNC_SMBUS_READ_WORD_DATA	0x00200000 #define I2C_FUNC_SMBUS_WRITE_WORD_DATA	0x00400000 #define I2C_FUNC_SMBUS_PROC_CALL	0x00800000 #define I2C_FUNC_SMBUS_READ_BLOCK_DATA	0x01000000 #define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA 0x02000000 #define I2C_FUNC_SMBUS_READ_I2C_BLOCK	0x04000000 /* I2C-like block xfer  */#define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK	0x08000000 /* w/ 1-byte reg. addr. */#define I2C_FUNC_SMBUS_READ_I2C_BLOCK_2	 0x10000000 /* I2C-like block xfer  */#define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK_2 0x20000000 /* w/ 2-byte reg. addr. */#define I2C_FUNC_SMBUS_READ_BLOCK_DATA_PEC  0x40000000 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA_PEC 0x80000000 /* SMBus 2.0 */#define I2C_FUNC_SMBUS_BYTE I2C_FUNC_SMBUS_READ_BYTE | \                            I2C_FUNC_SMBUS_WRITE_BYTE#define I2C_FUNC_SMBUS_BYTE_DATA I2C_FUNC_SMBUS_READ_BYTE_DATA | \                                 I2C_FUNC_SMBUS_WRITE_BYTE_DATA#define I2C_FUNC_SMBUS_WORD_DATA I2C_FUNC_SMBUS_READ_WORD_DATA | \                                 I2C_FUNC_SMBUS_WRITE_WORD_DATA#define I2C_FUNC_SMBUS_BLOCK_DATA I2C_FUNC_SMBUS_READ_BLOCK_DATA | \                                  I2C_FUNC_SMBUS_WRITE_BLOCK_DATA#define I2C_FUNC_SMBUS_I2C_BLOCK I2C_FUNC_SMBUS_READ_I2C_BLOCK | \                                  I2C_FUNC_SMBUS_WRITE_I2C_BLOCK#define I2C_FUNC_SMBUS_I2C_BLOCK_2 I2C_FUNC_SMBUS_READ_I2C_BLOCK_2 | \                                   I2C_FUNC_SMBUS_WRITE_I2C_BLOCK_2#define I2C_FUNC_SMBUS_BLOCK_DATA_PEC I2C_FUNC_SMBUS_READ_BLOCK_DATA_PEC | \                                      I2C_FUNC_SMBUS_WRITE_BLOCK_DATA_PEC#define I2C_FUNC_SMBUS_WORD_DATA_PEC  I2C_FUNC_SMBUS_READ_WORD_DATA_PEC | \                                      I2C_FUNC_SMBUS_WRITE_WORD_DATA_PEC#define I2C_FUNC_SMBUS_READ_BYTE_PEC		I2C_FUNC_SMBUS_READ_BYTE_DATA#define I2C_FUNC_SMBUS_WRITE_BYTE_PEC		I2C_FUNC_SMBUS_WRITE_BYTE_DATA#define I2C_FUNC_SMBUS_READ_BYTE_DATA_PEC	I2C_FUNC_SMBUS_READ_WORD_DATA#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA_PEC	I2C_FUNC_SMBUS_WRITE_WORD_DATA#define I2C_FUNC_SMBUS_BYTE_PEC			I2C_FUNC_SMBUS_BYTE_DATA#define I2C_FUNC_SMBUS_BYTE_DATA_PEC		I2C_FUNC_SMBUS_WORD_DATA#define I2C_FUNC_SMBUS_EMUL I2C_FUNC_SMBUS_QUICK | \                            I2C_FUNC_SMBUS_BYTE | \                            I2C_FUNC_SMBUS_BYTE_DATA | \                            I2C_FUNC_SMBUS_WORD_DATA | \                            I2C_FUNC_SMBUS_PROC_CALL | \                            I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | \                            I2C_FUNC_SMBUS_WRITE_BLOCK_DATA_PEC | \                            I2C_FUNC_SMBUS_I2C_BLOCK/*  * Data for SMBus Messages  */#define I2C_SMBUS_BLOCK_MAX	32	/* As specified in SMBus standard */	#define I2C_SMBUS_I2C_BLOCK_MAX	32	/* Not specified but we use same structure */union i2c_smbus_data {	__u8 byte;	__u16 word;	__u8 block[I2C_SMBUS_BLOCK_MAX + 3]; /* block[0] is used for length */                          /* one more for read length in block process call */	                                            /* and one more for PEC */};/* smbus_access read or write markers */#define I2C_SMBUS_READ	1#define I2C_SMBUS_WRITE	0/* SMBus transaction types (size parameter in the above functions)    Note: these no longer correspond to the (arbitrary) PIIX4 internal codes! */#define I2C_SMBUS_QUICK		    0#define I2C_SMBUS_BYTE		    1#define I2C_SMBUS_BYTE_DATA	    2 #define I2C_SMBUS_WORD_DATA	    3#define I2C_SMBUS_PROC_CALL	    4#define I2C_SMBUS_BLOCK_DATA	    5#define I2C_SMBUS_I2C_BLOCK_DATA    6#define I2C_SMBUS_BLOCK_PROC_CALL   7		/* SMBus 2.0 */#define I2C_SMBUS_BLOCK_DATA_PEC    8		/* SMBus 2.0 */#define I2C_SMBUS_PROC_CALL_PEC     9		/* SMBus 2.0 */#define I2C_SMBUS_BLOCK_PROC_CALL_PEC  10	/* SMBus 2.0 */#define I2C_SMBUS_WORD_DATA_PEC	   11		/* SMBus 2.0 *//* ----- commands for the ioctl like i2c_command call: * note that additional calls are defined in the algorithm and hw  *	dependent layers - these can be listed here, or see the  *	corresponding header files. */				/* -> bit-adapter specific ioctls	*/#define I2C_RETRIES	0x0701	/* number of times a device address      */				/* should be polled when not            */                                /* acknowledging 			*/#define I2C_TIMEOUT	0x0702	/* set timeout - call with int 		*//* this is for i2c-dev.c	*/#define I2C_SLAVE	0x0703	/* Change slave address			*/				/* Attn.: Slave address is 7 or 10 bits */#define I2C_SLAVE_FORCE	0x0706	/* Change slave address			*/				/* Attn.: Slave address is 7 or 10 bits */				/* This changes the address, even if it */				/* is already taken!			*/#define I2C_TENBIT	0x0704	/* 0 for 7 bit addrs, != 0 for 10 bit	*/#define I2C_FUNCS	0x0705	/* Get the adapter functionality */#define I2C_RDWR	0x0707	/* Combined R/W transfer (one stop only)*/#define I2C_PEC		0x0708	/* != 0 for SMBus PEC                   */#if 0#define I2C_ACK_TEST	0x0710	/* See if a slave is at a specific address */#endif#define I2C_SMBUS	0x0720	/* SMBus-level access *//* -- i2c.h -- *//* Note: 10-bit addresses are NOT supported! *//* This is the structure as used in the I2C_SMBUS ioctl call */struct i2c_smbus_ioctl_data {	char read_write;	__u8 command;	int size;	union i2c_smbus_data *data;};/* This is the structure as used in the I2C_RDWR ioctl call */struct i2c_rdwr_ioctl_data {	struct i2c_msg *msgs;	/* pointers to i2c_msgs */	int nmsgs;		/* number of i2c_msgs */};static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,                                      int size, union i2c_smbus_data *data){	struct i2c_smbus_ioctl_data args;	args.read_write = read_write;	args.command = command;	args.size = size;	args.data = data;	return ioctl(file,I2C_SMBUS,&args);}static inline __s32 i2c_smbus_write_quick(int file, __u8 value){	return i2c_smbus_access(file,value,0,I2C_SMBUS_QUICK,NULL);}	static inline __s32 i2c_smbus_read_byte(int file){	union i2c_smbus_data data;	if (i2c_smbus_access(file,I2C_SMBUS_READ,0,I2C_SMBUS_BYTE,&data))		return -1;	else		return 0x0FF & data.byte;}static inline __s32 i2c_smbus_write_byte(int file, __u8 value){	return i2c_smbus_access(file,I2C_SMBUS_WRITE,value,	                        I2C_SMBUS_BYTE,NULL);}static inline __s32 i2c_smbus_read_byte_data(int file, __u8 command){	union i2c_smbus_data data;	if (i2c_smbus_access(file,I2C_SMBUS_READ,command,	                     I2C_SMBUS_BYTE_DATA,&data))		return -1;	else		return 0x0FF & data.byte;}static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,                                               __u8 value){	union i2c_smbus_data data;	data.byte = value;	return i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                        I2C_SMBUS_BYTE_DATA, &data);}static inline __s32 i2c_smbus_read_word_data(int file, __u8 command){	union i2c_smbus_data data;	if (i2c_smbus_access(file,I2C_SMBUS_READ,command,	                     I2C_SMBUS_WORD_DATA,&data))		return -1;	else		return 0x0FFFF & data.word;}static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,                                               __u16 value){	union i2c_smbus_data data;	data.word = value;	return i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                        I2C_SMBUS_WORD_DATA, &data);}static inline __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value){	union i2c_smbus_data data;	data.word = value;	if (i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                     I2C_SMBUS_PROC_CALL,&data))		return -1;	else		return 0x0FFFF & data.word;}/* Returns the number of read bytes */static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,                                               __u8 *values){	union i2c_smbus_data data;	int i;	if (i2c_smbus_access(file,I2C_SMBUS_READ,command,	                     I2C_SMBUS_BLOCK_DATA,&data))		return -1;	else {		for (i = 1; i <= data.block[0]; i++)			values[i-1] = data.block[i];		return data.block[0];	}}static inline __s32 i2c_smbus_write_block_data(int file, __u8 command,                                                __u8 length, __u8 *values){	union i2c_smbus_data data;	int i;	if (length > 32)		length = 32;	for (i = 1; i <= length; i++)		data.block[i] = values[i-1];	data.block[0] = length;	return i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                        I2C_SMBUS_BLOCK_DATA, &data);}/* Returns the number of read bytes */static inline __s32 i2c_smbus_read_i2c_block_data(int file, __u8 command,                                                  __u8 *values){	union i2c_smbus_data data;	int i;	if (i2c_smbus_access(file,I2C_SMBUS_READ,command,	                      I2C_SMBUS_I2C_BLOCK_DATA,&data))		return -1;	else {		for (i = 1; i <= data.block[0]; i++)			values[i-1] = data.block[i];		return data.block[0];	}}static inline __s32 i2c_smbus_write_i2c_block_data(int file, __u8 command,                                               __u8 length, __u8 *values){	union i2c_smbus_data data;	int i;	if (length > 32)		length = 32;	for (i = 1; i <= length; i++)		data.block[i] = values[i-1];	data.block[0] = length;	return i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                        I2C_SMBUS_I2C_BLOCK_DATA, &data);}/* Returns the number of read bytes */static inline __s32 i2c_smbus_block_process_call(int file, __u8 command,                                                 __u8 length, __u8 *values){	union i2c_smbus_data data;	int i;	if (length > 32)		length = 32;	for (i = 1; i <= length; i++)		data.block[i] = values[i-1];	data.block[0] = length;	if (i2c_smbus_access(file,I2C_SMBUS_WRITE,command,	                     I2C_SMBUS_BLOCK_PROC_CALL,&data))		return -1;	else {		for (i = 1; i <= data.block[0]; i++)			values[i-1] = data.block[i];		return data.block[0];	}}#endif /* LIB_I2CDEV_H */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜狠狠色综合中国| 国产精品久久久久aaaa樱花| 国产日韩欧美一区二区三区乱码 | 高清视频一区二区| 亚州成人在线电影| 香港成人在线视频| 国产麻豆91精品| 99精品一区二区三区| 欧美精品电影在线播放| 久久综合九色综合久久久精品综合 | 麻豆国产欧美一区二区三区| 99精品久久99久久久久| 精品国产百合女同互慰| 亚洲综合丁香婷婷六月香| 美女视频黄a大片欧美| 91精品1区2区| 国产亚洲短视频| 日本特黄久久久高潮| 99re这里都是精品| 久久久久久免费网| 日本大胆欧美人术艺术动态| 欧美日韩一级大片网址| 中文字幕日韩精品一区| 国产一区二区视频在线| 欧美成人vps| 日日摸夜夜添夜夜添国产精品| 94色蜜桃网一区二区三区| 中文字幕精品在线不卡| 国产一区二区三区高清播放| 中文字幕的久久| 国产一区二区三区免费在线观看| 欧美日韩中文国产| 亚洲综合激情网| 欧美性猛交xxxxxx富婆| 亚洲免费观看高清在线观看| 91小视频免费观看| 国产精品麻豆99久久久久久| 国产激情精品久久久第一区二区 | 午夜精品123| 精品1区2区3区| 日本午夜一区二区| 日韩亚洲欧美一区二区三区| 久久不见久久见免费视频1| 欧美日韩美女一区二区| 在线不卡a资源高清| 91国偷自产一区二区三区成为亚洲经典| 极品美女销魂一区二区三区免费| 激情综合色播激情啊| 天天综合天天综合色| 亚洲一区二区三区中文字幕| 国产精品国产精品国产专区不蜜| 久久久久久久网| 国产清纯在线一区二区www| 久久精品欧美一区二区三区麻豆| 久久一区二区三区四区| 国产视频亚洲色图| 亚洲男人的天堂在线aⅴ视频| 亚洲va欧美va国产va天堂影院| 亚洲人吸女人奶水| 91麻豆视频网站| 欧美一区二区三区系列电影| 国产精品人人做人人爽人人添| 在线播放国产精品二区一二区四区 | 91丝袜高跟美女视频| www久久久久| 99精品热视频| 日韩激情中文字幕| 国产亚洲短视频| 欧美三级韩国三级日本一级| 久久国产夜色精品鲁鲁99| 国产欧美精品一区aⅴ影院| 日本乱码高清不卡字幕| 欧美性感一区二区三区| 日韩欧美亚洲国产另类| 国产精品久久久久久户外露出| 免费国产亚洲视频| 欧美亚洲动漫另类| 一区二区三区不卡视频在线观看| 丝袜美腿一区二区三区| 国产精品一卡二卡在线观看| 在线看日本不卡| 久久综合色婷婷| 丝袜美腿亚洲一区二区图片| 欧美日韩的一区二区| 91免费版在线| 久久免费精品国产久精品久久久久 | 日韩精品一区二区在线观看| 成人激情开心网| 秋霞影院一区二区| 亚洲三级电影全部在线观看高清| 精品国偷自产国产一区| 欧美综合在线视频| 成人伦理片在线| 国产一区二区不卡| 亚洲电影在线免费观看| 中文字幕在线一区免费| 日韩欧美国产电影| 欧美日韩情趣电影| 99久久99久久免费精品蜜臀| 国产精品白丝av| 免费成人结看片| 视频一区二区三区中文字幕| 亚洲裸体xxx| 日韩美女视频19| 亚洲丝袜制服诱惑| 中文字幕第一区二区| 欧美tickling网站挠脚心| 欧美日韩精品欧美日韩精品一| 91热门视频在线观看| 成人小视频在线观看| 国产成人精品影院| 国产乱码字幕精品高清av | 午夜精品免费在线观看| 亚洲老司机在线| 亚洲欧美经典视频| 亚洲人吸女人奶水| 亚洲欧美另类在线| 一区二区三区免费| 亚洲免费观看高清完整| **欧美大码日韩| 亚洲欧美一区二区三区国产精品| 1区2区3区国产精品| 国产精品每日更新在线播放网址| 国产精品午夜春色av| 欧美国产国产综合| 国产精品久久网站| 欧美性淫爽ww久久久久无| 国产一区二区不卡老阿姨| 亚洲成人激情自拍| 日日噜噜夜夜狠狠视频欧美人| 国产精品久久久久aaaa| 亚洲视频在线观看三级| 一级特黄大欧美久久久| 亚洲夂夂婷婷色拍ww47| 丝袜诱惑制服诱惑色一区在线观看 | 日韩欧美亚洲一区二区| 一本一本大道香蕉久在线精品| 国内精品第一页| 人人精品人人爱| 日韩黄色免费电影| 久久精品国产精品青草| 视频在线观看一区| 蜜臀av一区二区| 国产老女人精品毛片久久| 国产99久久久国产精品潘金| 国产精品一级片| 色欧美片视频在线观看在线视频| 一本一本大道香蕉久在线精品| 欧美无砖专区一中文字| 欧美人xxxx| 国产视频911| 亚洲精品国产精品乱码不99| 国产高清成人在线| 在线观看视频91| 国产精品二三区| 日精品一区二区| 亚洲成a人在线观看| 老汉av免费一区二区三区| 欧美日韩高清一区二区| 99热99精品| 蜜臀精品久久久久久蜜臀| 亚洲欧洲制服丝袜| 蜜桃一区二区三区四区| 99久久精品国产网站| 精品理论电影在线观看| 成人免费在线观看入口| 麻豆成人久久精品二区三区红| 国产一区二区三区美女| 欧美色大人视频| 国产精品麻豆网站| 国产精品一区在线| 4438成人网| 91在线一区二区| 久久综合色天天久久综合图片| 亚洲电影欧美电影有声小说| 国产福利不卡视频| 欧美一个色资源| 日本人妖一区二区| 欧美精品色一区二区三区| 一区二区三区国产精华| 极品瑜伽女神91| 精品区一区二区| 国产iv一区二区三区| 中文字幕乱码亚洲精品一区| 国产精品一区二区久久精品爱涩| 日韩三级视频在线观看| 91麻豆精品国产91久久久资源速度 | 欧美日韩视频在线第一区| 国产精品情趣视频| 国产精品自拍毛片| 26uuu久久天堂性欧美| 久久国产精品99久久人人澡| 欧美日韩一级二级三级| 亚洲综合在线电影| 在线免费不卡视频| 亚洲一区二区三区影院| 在线视频综合导航| 一区二区在线电影| 欧美三级在线视频| 青青青爽久久午夜综合久久午夜|