简体   繁体   English

关于i2c设备驱动程序的困惑

[英]confusion about i2c device driver

I know how to write an SMbus adapter driver for I2C but still unaware of the fact that whether or not this driver is sufficient to talk to or have my i2c sensor work with the linux machine or board, in case if I in particular want to insert my driver in to the kernel.... 我知道如何编写用于I2C的SMbus适配器驱动程序,但仍然不知道以下事实:如果我特别想插入该驱动程序是否足以与linux机器或板进行对话或让我的i2c传感器与linux机器或主板一起工作。我的驱动程序进入了内核。

or in other words say I have some gyroscope to interface with ARM9, so is there still a lot to learn as far as writing an I2C driver is concerned or suffices well enough with the one mentioned above....Help me out please tripped over on this doubt.... 或换句话说,我有一些陀螺仪可以与ARM9交互,所以就编写I2C驱动程序而言,还是上面提到的一个驱动程序就足够了,要学习的东西还很多。...帮帮我,请跳过去在这个疑问上...

Under Linux, you should look for the i2c-tools package. 在Linux下,您应该寻找i2c-tools软件包。 You'll want i2c-detect or i2c-dump to do the i2c accesses. 您需要使用i2c-detect或i2c-dump进行i2c访问。

To see if you can even see it connected. 查看您是否甚至可以看到它已连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM