Documentation on IIC_RegRead and IIC_RegWrite?

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

Documentation on IIC_RegRead and IIC_RegWrite?

ソリューションへジャンプ
707件の閲覧回数
DillonM
Contributor II

Hello,

I have been following the AN4068 document in order to configure my MMA8451Q accelerometer for orientation detection. I have succeeded in doing so using the i2c-tools package commands "i2cget" and "i2cset". In the document however (and in other places across NXP) the functions "IIC_RegRead" and "IIC_RegWrite" are used. I cannot however find any information about these functions. What language are they available in? What package are they a part of?

Any more info would be appreciated.

Thanks!!

ラベル(1)
0 件の賞賛
返信
1 解決策
697件の閲覧回数
diazmarin09
NXP TechSupport
NXP TechSupport

Hello,

I hope all is great with you.

Such functions are used as a reference. To read and write data using the I2C module, you need to create your own functions or use a driver.

In this case, I would like to recommend the examples below as a reference for your design. The source code is attached.

FXLS8471Q - Accelerometer orientation detection function example code

MMA8451Q - Bare metal example project

 

Please note that the MMA8451Q accelerometer is obsolete. You may consider it for further designs.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
698件の閲覧回数
diazmarin09
NXP TechSupport
NXP TechSupport

Hello,

I hope all is great with you.

Such functions are used as a reference. To read and write data using the I2C module, you need to create your own functions or use a driver.

In this case, I would like to recommend the examples below as a reference for your design. The source code is attached.

FXLS8471Q - Accelerometer orientation detection function example code

MMA8451Q - Bare metal example project

 

Please note that the MMA8451Q accelerometer is obsolete. You may consider it for further designs.

Regards,

David

0 件の賞賛
返信