FXLS896xAF library - why is set_mode() not public?

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

FXLS896xAF library - why is set_mode() not public?

659 次查看
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 回复数

620 次查看
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

573 次查看
andrewneil
Contributor III

Thanks - when will the next version be out?

0 项奖励
回复

618 次查看
andrewneil
Contributor III

Thanks.

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

0 项奖励
回复