BMM150 threshold limit value

https://github.com/BoschSensortec/BMM150-Sensor-API/blob/master/examples/generic/low_threshold/low_threshold_interrupt.c 

The low threshold example uses a 0x0A value, which corresponds to 10 in decimal, so 10*6 = 60 uT is the low threshold limit the example have set, but it doesn't specify whether it's a positive or a negative limit, or for which axis the limit is.

/*! low threshold limit */
uint8_t low_threshold;

/*! high threshold limit */
uint8_t high_threshold;

Also, both low and high threshold limit are uint8_t, so I would like to know if it's possible to use a negative limit in order to get a interrupt, since both the raw and compensated micro tesla values of the magnetometer are sometimes negative.

Best reply by BSTRobin

Hello jorgazam,

Sorry for the delay reply.
After our check, there was a mistake in BMM150 sensor API. The definition of BMM150_INT_ASSERTED_HIGH_THRES in bmm150_defs.h API should be equal to 0x0038 rather than 0x0380.

We will update BMM150 sensor API.

View original
1
9 replies
Resolved