i2c驱动问题

87 views
Skip to first unread message

Ricky Wang

unread,
Jul 12, 2012, 10:10:03 PM7/12/12
to linux...@googlegroups.com
最近在研究i2c驱动,遇到一个问题,在利用函数i2c_smbus_read_i2c_block_data(ts->client, 0x00, 33, buf);读取寄存器内容的时候,参数0x00应该代表的是寄存器的地址,可是实际的寄存器没有这个地址,请教宋老师和各位,这个参数意义到底是什么呢?万分感谢

Michael Wang

unread,
Jul 14, 2012, 5:09:00 AM7/14/12
to linux...@googlegroups.com


看这个函数的原型: i2c_smbus_read_i2c_block_data(struct i2c_client *client, u8 command, u8 length, u8 *values);


在 2012年7月13日 上午10:10,Ricky Wang <98wa...@gmail.com>写道:
最近在研究i2c驱动,遇到一个问题,在利用函数i2c_smbus_read_i2c_block_data(ts->client, 0x00, 33, buf);读取寄存器内容的时候,参数0x00应该代表的是寄存器的地址,可是实际的寄存器没有这个地址,请教宋老师和各位,这个参数意义到底是什么呢?万分感谢

--
_______________________________________________
Linux设备驱动开发邮件列表 linux...@googlegroups.com
http://groups.google.gr/group/linuxdriver?hl=zh-CN
退订请使用原订阅邮箱发邮件至:linuxdriver...@googlegroups.com




--
With best regards,
Wang Hai

chinamobile

unread,
Jul 14, 2012, 7:20:48 AM7/14/12
to linuxdriver
应该是控制指令
 

chinamobile
 
发件人: Michael Wang
发送时间: 2012-07-14 17:09
收件人: linuxdriver
主题: Re: [linux-driver] i2c驱动问题
Reply all
Reply to author
Forward
0 new messages