What interrupt do you want to use?
From your description of the requirement, i think you can use either flat detect interrupt (BMI160_ACC_FLAT_INT) or orientation interrupt (BMI160_ACC_ORIENT_INT).
If you enable orientation interrupt, you can get status from register 0x65 - 0x66.
Before using interrupt you need to enable it and map to interrupt pin, which is through register 0x50 - 0x57.
But actually, there is already function call in the API you are currently use to take care of those setting. You just need to call it.
... View more