Hello paraas,
I think you missed interrupt map. 🙂
I attached my example for any motion feature.
As you also use API, so you can easily apply it.
Please check below functions in my code 🙂
"/* Enable the selected sensors. */ rslt = bmi2_sensor_enable(sens_list, 2, &bmi2_dev);
/* Set feature configurations for any-motion. */ rslt = set_feature_config(&bmi2_dev);
/* Map the feature interrupt for any-motion. */ rslt = bmi2_map_feat_int(&sens_int, 1, &bmi2_dev);
"
Please let me know if you have further questions 🙂
Thank you.
Minhwan Oh
... View more