Reading Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)

742件の閲覧回数
carlo_p
Contributor II

Hi,

How can I read Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)?

I've built the full-image with yocto. I see a lot of i2c devices, should I use one of them to read sensors values? If yes, which one?

 

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 返信

731件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello carlo_p,

 

You can use the Lpi2c, is the one available to used, the menu configuration is: Select Device Drivers > I2C support > I2C Hardware Bus support > IMX Low Power I2C interface

and the driver is at:

drivers/i2c/busses/imx-lpi2c.c

The LPI2C device driver can use the standard SMBus interface to read and write the registers of the device connected to the LPI2C
bus. For more information, see include/linux/i2c.h.

Note:The LPI2C driver does not support the slave mode.

 

Regards

 

0 件の賞賛
返信