FXLS896xAF library - why is set_mode() not public?

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

FXLS896xAF library - why is set_mode() not public?

619件の閲覧回数
andrewneil
Contributor III

The FXLS8967AF accelerometer requires the device to be in STANDBY before (almost) any register can be modified.

The library has a set_mode() function to do this, in fxls896xaf_driver.c, but it is local to that file. Why?

Surely, set_mode() should be public?

@adrian_chmiel made the same point here: 

https://community.nxp.com/t5/Sensors/Accelerometer-FXLS8974-bug-in-library/m-p/1409692/highlight/tru...

 

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

580件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Andrew,

Thanks again for your valuable input, you are right. We are going to implement this in our next update.

Best regards, Tomas

533件の閲覧回数
andrewneil
Contributor III

Thanks - when will the next version be out?

0 件の賞賛
返信

578件の閲覧回数
andrewneil
Contributor III

Thanks.

As a workaround/alternative, setting the mode could be included in the settings list with sensor_burst_write().

0 件の賞賛
返信