Thanks for the prompt reply. Yes, as mentioned, it's not impossible to make sense of the APIs by looking at the code and datasheet, but the datasheet/code is not a perfect match, and it's taken me a bit of time to figure out basic things like how the code is organized, what virtual sensors use which data structure, how to port it to an embedded platform, etc. Other parts of the Bosch code are better documented. Is there a way to use the BHY2 Sensor APIs to put the BHI260 in low power mode (deep sleep) until a wake up IMU event happens? In the board I'm using, the BHI260AB is connected to the main processor and the PMIC using the HIRQ pin. We need to conserve battery when the device is not worn, so we plan to use the PMIC to put the rest of the board in the lowest possible power mode, set the BHI260 to deep sleep and lowest clock, and have the entire system wake up when a movement happens. I have not found any example about sleep/wake, and the APIs do not seem to have specific code. And so far I have not found a description in the datasheet. There are multiple references to the various sleep states, but I must have missed something.
... View more