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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

535 次查看
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?

 

标记 (3)
0 项奖励
1 回复

524 次查看
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 项奖励