From the github, we provide motion examples related to any-motion feature for user to follow, examples/bma456/generic/motion.c .
If you scroll down BMA456 API page, you could find how to enabling-and-mapping-line-interrupt-to-that-of-bma456-sensor-interrupt .
Please try to run you function success, then consider how to use it better. From my side, I don't think there much difference.
... View more