FXLS896xAF library - why is set_mode() not public?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXLS896xAF library - why is set_mode() not public?

660 Views
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...

 

Labels (1)
0 Kudos
Reply
3 Replies

621 Views
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

574 Views
andrewneil
Contributor III

Thanks - when will the next version be out?

0 Kudos
Reply

619 Views
andrewneil
Contributor III

Thanks.

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

0 Kudos
Reply