"How to turn off the sensor in Nordic Connect SDK?"

I have a question. The device currently under development has a BMI270 sensor, and we are using the sensor driver included in the NCS. Is there a way to suspend or turn off the BMI270?

From what I've found, it seems like using:

pm_device_action_run(bmi270_dev, PM_DEVICE_ACTION_SUSPEND);

pm_device_action_run(bmi270_dev, PM_DEVICE_ACTION_TURN_OFF);

should work, but it doesn't seem to be applied in practice. Upon analyzing the sensor code, it seems that this part is not actually implemented. Is this correct? If so, how can I turn off the sensor?

I would appreciate your help.

Related